Tuesday, September 26, 2023

sunvox color theme

R G B
255 255 255
29 30 22
80 80 32
241 231 236

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

schism tracker bash rc alias

alias schism='schismtracker --video-size=640x480'

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

TTS AI tool

elevenlabs

elevenlabs

audio transcription

Audio Transcription

Revoldiv

this 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

Bash Shortcuts

Bash Shortcuts

most important - ctrl U delete line

Monday, September 4, 2023

Videosnap : recording vid using CLI

recording video using CLI: VideoSnap

videosnap

Wednesday, August 23, 2023

Musicals with gpt

Here’s a fun idea. Make musicals using chat gpt. These are the steps:

  1. Make a list of your favourite songs
  2. get the lyrics
  3. Paste them into chatgpt
  4. Figure out the order you want your songs to be in, maybe ask chatgpt to order them for you if your lazy.
  5. 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

Restaurants Blog

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.

  1. Salvador Dali
  2. Albert Einstein
  3. Charlie Chaplin
  4. Friedrich Nietzsche
  5. Tom Selleck
  6. Hulk Hogan
  7. Mark Twain
  8. Burt Reynolds
  9. Groucho Marx
  10. Rollie Fingers
  11. Clark Gable
  12. Salvador Allende
  13. Carl Jung
  14. John Waters
  15. Frank Zappa
  16. Jules Verne
  17. Theodore Roosevelt
  18. Mahatma Gandhi
  19. John Bolton
  20. John Lennon
  21. Freddie Mercury
  22. Ron Swanson (Fictional)
  23. Daniel Day-Lewis
  24. Sam Elliott
  25. Fu Manchu (Fictional)
  26. Martin Luther King Jr.
  27. John Oates
  28. Ernest Hemingway
  29. Vincent Price
  30. Richard Pryor
  31. Robert Goulet
  32. Alex Trebek
  33. Johnny Depp (as Captain Jack Sparrow)
  34. John Belushi
  35. Salvador Larroca
  36. Salvador Perez
  37. Mark Spitz
  38. Zorro (Fictional)
  39. Friedrich Engels
  40. Albert Camus
  41. Gene Shalit
  42. Yosemite Sam (Fictional)
  43. Rollie Fingers
  44. Ron Burgundy (Fictional)
  45. Bill Murray
  46. John Travolta (as Vincent Vega)
  47. Salvador Sobral
  48. John Bolton
  49. Friedrich Hayek
  50. Wilford Brimley
  51. Eddie Murphy
  52. Sam Elliott
  53. Yosemite Sam (Fictional)
  54. Alex Trebek
  55. Hulk Hogan
  56. Clark Gable
  57. Albert Einstein
  58. Charlie Chaplin
  59. Benito Mussolini
  60. Lionel Messi
  61. Burt Reynolds
  62. Salvador Dali
  63. John Lennon
  64. Freddie Mercury
  65. Groucho Marx
  66. Tom Selleck
  67. Ernest Hemingway
  68. Vincent Price
  69. John Waters
  70. Jules Verne
  71. Robert Goulet
  72. Zorro (Fictional)
  73. Friedrich Nietzsche
  74. Sam Elliott
  75. Yosemite Sam (Fictional)
  76. Richard Pryor
  77. Carl Jung
  78. Salvador Perez
  79. Mark Twain
  80. John Travolta (as Vincent Vega)
  81. Gene Shalit
  82. Rollie Fingers
  83. John Oates
  84. Daniel Day-Lewis
  85. Albert Camus
  86. Ron Burgundy (Fictional)
  87. Sam Elliott
  88. Alex Trebek
  89. Benito Mussolini
  90. Burt Reynolds
  91. Salvador Dali
  92. Lionel Messi
  93. Groucho Marx
  94. Charlie Chaplin
  95. Tom Selleck
  96. Eddie Murphy
  97. Bill Murray
  98. Vincent Price
  99. John Lennon
  100. 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.