Skip to content

Instantly share code, notes, and snippets.

View Kartones's full-sized avatar
💻
+ 📖 + 🕹️

Diego Kartones

💻
+ 📖 + 🕹️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Kartones on github.
  • I am kartones (https://keybase.io/kartones) on keybase.
  • I have a public key whose fingerprint is 183E 1F5A 1324 8786 6422 4300 3601 C4A0 ED24 F41D

To claim this, I am signing this object:

  • Update version: sudo pip install --upgrade youtube-dl
  • Download only MP3 audio of a video: youtube-dl <VIDEO-URL> --extract-audio --audio-format mp3
  • For the above, ensure you have: sudo apt-get install ffmpeg
@Kartones
Kartones / no-css
Created December 22, 2016 07:39
Bookmark to remove all CSS, JS and iframesfrom a page. Just paste as new bookmark
javascript:%20var%20el,%20i,%20size;%20%20for(i=0,%20size=document.styleSheets.length;%20i<size;%20i++)%20{%20void(document.styleSheets.item(i).disabled=true);%20}%20%20el%20=%20document.getElementsByTagName('script');%20%20while%20(el.length%20>%200)%20{%20%20void(el[0].parentNode.removeChild(el[0]));%20%20}%20%20el%20=%20document.getElementsByTagName('link');%20%20while%20(el.length%20>%200)%20{%20%20void(el[0].parentNode.removeChild(el[0]));%20%20}%20%20el%20=%20document.getElementsByTagName('iframe');%20%20while%20(el.length%20>%200)%20{%20%20void(el[0].parentNode.removeChild(el[0]));%20%20}%20%20el%20=%20document.getElementsByTagName('*');%20%20for%20(%20i=0,%20size=el.length;%20i%20<%20size;%20i++)%20{%20%20void(el[i].style.cssText%20=%20'');%20%20}
@Kartones
Kartones / sublime-text-cheatsheet.md
Last active January 18, 2021 17:43
Sublime Text 3 Cheatsheet

Keyboard shorcuts

  • CTRL + SHIFT + p: Command panel
  • CTRL + p: File search
  • CTRL + r: Method search inside current file
  • CTRL + g: Go to line #
  • CTRL + SHIFT + [: Fold code
  • CTRL + SHIFT + ]: Unfold code
  • ALT + SHIFT + 2: Double column/file mode
  • ALT + SHIFT + 1: Single column/file mode
@Kartones
Kartones / statsd-local-server.md
Created August 19, 2015 09:55
StatsD local server for testing
@Kartones
Kartones / image-and-video.md
Last active November 22, 2023 20:46
image & video (Imagemagick, ffmpeg, webp...) commands
@Kartones
Kartones / mac-shortcuts.md
Last active December 20, 2023 18:37
Mac Shorcuts (last used 2020)
@Kartones
Kartones / Win 10 Disable Automatic App Updates.bat
Created August 26, 2023 19:28
Win 10 Disable Automatic App Updates.bat
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
setlocal DisableDelayedExpansion
set "batchPath=%~0"
setlocal EnableDelayedExpansion