R | G | B |
---|---|---|
255 | 255 | 255 |
29 | 30 | 22 |
80 | 80 | 32 |
241 | 231 | 236 |
Tuesday, September 26, 2023
basic mac shortcuts in csv format
Shortcut | Action |
---|---|
ctrl-cmd-f | FULLSCREEN |
ctrl-cmd-s | Opera:toggle sidebar (for RSS viewer) |
ctrl-tab | next/prev opera tab |
cmd-down | go into folder(or open program) |
cmd-up | go to parent director |
cmd-right/left | go in folder/out folder |
cmd-shift o | Documents |
cmd-shift d | Desktop |
cmd-shift d | Hide/show dock |
cmd-opt l | Downloads |
cmd-shift a | Applications |
cmd-shift g | Go to folder |
cmd-shift u | Utilities |
cmd-shift k | Networks |
cmd-shift c | Computers |
cmd-shift i | Icloud |
cmd-tab | switch program focus |
cmd-l | in browser switch focus to url bar |
cmd-[/] | back/forward webpages |
cmd-shift-t | reopen last closed browser tab |
opt-cmd-b | open bookmarks |
cmd-d | add bookmark |
cmd-shift-h | open browser history |
cmd-j | see browser downloads |
cmd-` | cycle to next terminal window |
cmd-w | close tab |
cmd-h | Hide window |
cmd-q | Quit |
cmd-n | New window |
cmd-opt tab | switch and open program |
cmd-space | spotlight search |
cmd-opt t | toggle toolbar on/off |
cmd-opt s | toggle sidebar on/off |
cmd-left/right | switch views |
fn f3 | mission controll |
cmd-left/right | go to start/end of line |
opt-left/right | jump to next/prev word |
cmd-backspace | delete line |
alt-backspace | delte word |
shift-cmd-left/right | select line |
shift-opt-left/right | select word |
cmd-s | save |
cmd-o | open |
cmd-delete | close textedit without saving |
Wednesday, September 20, 2023
create dir and move everything into it
heres some one liners
mkdir -p todays_songs && mv * todays_songs/
rename to remove that square bracket shit
for f in *; do mv "$f" "$(echo "$f" | sed 's/\[.*\]//')"; done
Thursday, September 14, 2023
raspberry pi adhoc
sudo nano /etc/network/interfaces
find line:
iface default inet dhcp
put a # character in front of the line to temporarily disable requesting an IP address from a DHCP server.
Then add below:
iface default inet static
address 192.168.10.1
netmask 255.255.255.0
pi@raspberrypi ~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
in wpa_supplicant # out all lines of previous wifi
ap_scan=2
network={
ssid="MyHoc"
mode=1
frequency=2432
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=CCMP
psk="CaptainHoc!"
}
to connect on mac
Next click on the Advanced… button and go to the TCP/IP tab.
Select Manually from the Configure IPv4 drop-down menu.
Now fill in 192.168.10.2 for the IP Address and 255.255.255.0 for the Subnet Mask, then click the OK button.
webm to mp3 bash conversion
#!/bin/bash # Check if ffmpeg is installed if ! command -v ffmpeg &> /dev/null; then echo "ffmpeg is not installed. Please install it." exit 1 fi # Loop through all .webm files in the current directory for webm_file in *.webm; do # Check if there are any .webm files if [ -e "$webm_file" ]; then # Extract the base filename without extension base_filename="${webm_file%.*}" # Convert .webm to .mp3 using ffmpeg ffmpeg -i "$webm_file" -vn -acodec libmp3lame -q:a 4 "$base_filename.mp3" # Check if the conversion was successful if [ $? -eq 0 ]; then echo "Conversion of $webm_file to $base_filename.mp3 successful." # Remove the original .webm file rm -f "$webm_file" echo "$webm_file deleted." else echo "Conversion of $webm_file to $base_filename.mp3 failed." fi fi done
Wednesday, September 13, 2023
my .vimrc
packloadall call plug#begin('~/.vim/plugged') Plug 'vimwiki/vimwiki' Plug 'vim-airline/vim-airline' Plug 'matze/vim-move' Plug 'jceb/vim-orgmode' Plug 'tpope/vim-speeddating' Plug 'vim-scripts/utl.vim' Plug 'mattn/calendar-vim' Plug 'vim-airline/vim-airline-themes' Plug 'sainnhe/sonokai' Plug 'morhetz/gruvbox' Plug 'tpope/vim-fugitive' Plug 'plasticboy/vim-markdown' Plug 'sfztools/sfz.vim' Plug 'ap/vim-css-color' Plug '907th/vim-auto-save' Plug 'jiangmiao/auto-pairs' Plug 'ajorgensen/vim-markdown-toc' Plug 'mattn/emmet-vim' Plug 'kshenoy/vim-signature' Plug 'mechatroner/rainbow_csv' Plug 'dhruvasagar/vim-table-mode' Plug 'godlygeek/tabular' Plug 'scrooloose/nerdtree' Plug 'junegunn/goyo.vim' Plug 'reedes/vim-pencil' call plug#end() " Enable folding based on Org mode headings let g:org_special_headline_highlight = 1 let g:org_headline_fold = 1 " Remap vim-move from alt to shift let g:move_key_modifier_visualmode = 'S' autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS set background=dark colorscheme sonokai syntax enable set nobackup set nowb set noswapfile set autoread set wildmenu set ffs=unix,dos,mac set encoding=utf8 set showmatch set backspace=eol,start,indent set autoread set wrap set si set ai filetype plugin on filetype indent on set tabstop=4 set shiftwidth=4 set smarttab set expandtab set nocompatible filetype plugin on syntax on set autowriteall " Automatically save files on change let g:auto_save = 1 " Set the interval for auto-saving in milliseconds (optional) let g:auto_save_silent = 1 " Emmet shortcuts let g:user_emmet_mode='n' let g:user_emmet_leader_key=',' nnoremap:NERDTreeToggle " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif nnoremap :bnext nnoremap :bprev set tags=./tags,tags;/ " Tmux Navigator integration for Vim let g:navigator_no_mappings = 1 nnoremap :TmuxNavigateLeft nnoremap :TmuxNavigateDown nnoremap :TmuxNavigateUp nnoremap :TmuxNavigateRight
setting up smb server raspberry pi
sudo apt-get install samba samba-common-bin sudo nano /etc/samba/smb.conf ## add to bottom [thon2na] path = /home/pi/ writeable=Yes create mask=0777 directory mask=0777 public=no sudo smbpasswd -a pi sudo systemctl restart smbd
Friday, September 8, 2023
audio transcription
Audio Transcription
Revoldivthis website is great for converting mp3 to text
for mac shortcuts you can add on an app called actions. Actions adds extra functionality to shortcuts, one is transcribe audio as of 2023 its kind of buggy and i prefer revoldiv its more accurate.
Thursday, September 7, 2023
Monday, September 4, 2023
Thursday, August 31, 2023
Wednesday, August 23, 2023
Musicals with gpt
Here’s a fun idea. Make musicals using chat gpt. These are the steps:
- Make a list of your favourite songs
- get the lyrics
- Paste them into chatgpt
- Figure out the order you want your songs to be in, maybe ask chatgpt to order them for you if your lazy.
- get chatgpt to create a plot that connects the songs together.
markdown to powerpoint!
making a powerpoint in markdown
using cleaver and node
cleaver
npm install -g cleaver
run it with
cleaver path/to/something.md
tried pandoc and beamer which required latex packages to be installed. latex is too huge. cleaver is better nice and simple outputs it as html.
presenta web based md to slide show website.
Monday, August 21, 2023
Emmet Vim
Emmet vim
Emmet + Vim - The Best Way To Write Html
for vimplug
Plug ‘mattn/emmet-vim’
add to .vimrc
“ Emmet shortcuts let g:user_emmet_mode=’n’ let g:user_emmet_leader_key=’,’
this remaps the awkward ctrl y + comma to just normal mode comma
Tried for ages to get this plugin working and i didnt see the comma!!!! I kept doing ctrl Y nothing happened. html:5 then ,, BOOM boilerplate html !!
a-shell mini vim setup
a-shell can run vim!!
- put .vimrc in ~/documents
- vimplug doesn’t work you gotta install them manually
- git doensn’t work properly instead you use lg2
- path to install plugins is ~/documents/.vim/pack/*/start/
- pickFolder is the command to select a folder
- lg2 clone https://github.com/theplugin
https://github.com/tpope/vim-surround https://github.com/jiangmiao/auto-pairs https://github.com/ap/vim-css-color https://github.com/vimwiki/vimwiki https://github.com/907th/vim-auto-save https://github.com/mattn/emmet-vim https://github.com/plasticboy/vim-markdown
set background=dark syntax enable set nobackup set nowb set noswapfile set number set autoread set wildmenu set ffs=unix,dos,mac set encoding=utf8 set showmatch set backspace=eol,start,indent set autoread set wrap set si set ai filetype plugin on filetype indent on set tabstop=4 set shiftwidth=4 set smarttab set expandtab set nocompatible filetype plugin on set autowriteall set laststatus=2 " Emmet shortcuts let g:user_emmet_mode='n' let g:user_emmet_leader_key=','
Saturday, August 19, 2023
cliptools is great
cliptools lets you dump your entire clip history in one go
https://apps.apple.com/ca/app/cliptools/id1619348240?mt=12
https://www.youtube.com/watch?v=pGAqV0O__4w
Smart Clips
Smart clips are clips you create manually instead of being imported from copied text. They can also use some very powerful special functions embedded in the text. For example, if you have the smart clip **The quick {clip:1} fox.**
and the first copied clip is currently **blue**
, then using the smart clip will paste The quick blue fox.
{clip:N} will paste the copied clip that is at the position N indicated by the number.
{date:M/d/yy} will paste the current date and time using the same formatting as the Paste Date and Paste Time commands. You can also use **|+**
and **|-**
like in those commands.
{ask:Which name?} will prompt you with the text Which name? to enter text that will appear in place of that function.
{pick:this|that|other} will prompt you to choose between this, that or other and then that will appear in place of that function. This prompt will also let you type in any text in addition to choosing from the list.
{random:this|that|other} will randomly choose between this, that or other and then that will appear in place of that function.
{selection} will use the text currently selected at that point in the Smart Clip. If no text is selected it will use the contents of the clipboard instead
Sunday, August 13, 2023
top spots: Restaurants
Top Spots Burlington
Name | Type | Location | Phone | Website | Hours |
---|---|---|---|---|---|
D Hot Shoppe | Jamaican | 4155 Fairview St., Unit 12 Burlington, ON, L7L 2A4 | 905-631-8698 | https://www.dhotshoppe.com | Tuesdays - Saturday 11am-6pm Sunday & Monday (CLOSED) |
Piper Arms | Pub | 4155 Fairview St Unit 1, Burlington | 905.631.0002 | https://piperarmspub.com/piperarmspub/ | Sunday to Tuesday 11 AM - 12 AM Friday to Saturday 11 AM -12 AM |
Saturday, August 12, 2023
100 greatest mustache
"A Tribute to Upper Lip Elegance: Behold the 100 Greatest Mustaches in History!"
Some of these are repeated multiple times.
- Salvador Dali
- Albert Einstein
- Charlie Chaplin
- Friedrich Nietzsche
- Tom Selleck
- Hulk Hogan
- Mark Twain
- Burt Reynolds
- Groucho Marx
- Rollie Fingers
- Clark Gable
- Salvador Allende
- Carl Jung
- John Waters
- Frank Zappa
- Jules Verne
- Theodore Roosevelt
- Mahatma Gandhi
- John Bolton
- John Lennon
- Freddie Mercury
- Ron Swanson (Fictional)
- Daniel Day-Lewis
- Sam Elliott
- Fu Manchu (Fictional)
- Martin Luther King Jr.
- John Oates
- Ernest Hemingway
- Vincent Price
- Richard Pryor
- Robert Goulet
- Alex Trebek
- Johnny Depp (as Captain Jack Sparrow)
- John Belushi
- Salvador Larroca
- Salvador Perez
- Mark Spitz
- Zorro (Fictional)
- Friedrich Engels
- Albert Camus
- Gene Shalit
- Yosemite Sam (Fictional)
- Rollie Fingers
- Ron Burgundy (Fictional)
- Bill Murray
- John Travolta (as Vincent Vega)
- Salvador Sobral
- John Bolton
- Friedrich Hayek
- Wilford Brimley
- Eddie Murphy
- Sam Elliott
- Yosemite Sam (Fictional)
- Alex Trebek
- Hulk Hogan
- Clark Gable
- Albert Einstein
- Charlie Chaplin
- Benito Mussolini
- Lionel Messi
- Burt Reynolds
- Salvador Dali
- John Lennon
- Freddie Mercury
- Groucho Marx
- Tom Selleck
- Ernest Hemingway
- Vincent Price
- John Waters
- Jules Verne
- Robert Goulet
- Zorro (Fictional)
- Friedrich Nietzsche
- Sam Elliott
- Yosemite Sam (Fictional)
- Richard Pryor
- Carl Jung
- Salvador Perez
- Mark Twain
- John Travolta (as Vincent Vega)
- Gene Shalit
- Rollie Fingers
- John Oates
- Daniel Day-Lewis
- Albert Camus
- Ron Burgundy (Fictional)
- Sam Elliott
- Alex Trebek
- Benito Mussolini
- Burt Reynolds
- Salvador Dali
- Lionel Messi
- Groucho Marx
- Charlie Chaplin
- Tom Selleck
- Eddie Murphy
- Bill Murray
- Vincent Price
- John Lennon
- Yosemite Sam (Fictional)
These individuals, both real and fictional, are known for their iconic mustaches that have left an indelible mark on culture and history.