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
link to article
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
Subscribe to:
Posts (Atom)