Skip to content

Instantly share code, notes, and snippets.

View HSchmale16's full-sized avatar
🚙

Henry J Schmale HSchmale16

🚙
View GitHub Profile
@iosifnicolae2
iosifnicolae2 / Readme.md
Last active March 12, 2024 19:42
Youtube is Boring

How To Make Youtube Less Boring

Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):

(()=>{
    markAllVideosAsNotBeingInteresting({
        iterations: 1
    });
})();
@willkill07
willkill07 / fib_lol.cpp
Created September 26, 2017 22:07
Fib Fun
#include <array>
#include <utility>
using Int = unsigned long long;
template<Int N, Int A = 0x0llu, Int B = 0x1llu>
constexpr Int Fib = []() constexpr {
if constexpr(N == 0)
return A;
else if constexpr(N == 1)
#Do not run this !!!
#IO operations
alias less='cat'
alias sed='awk'
#administration
alias apt-get='aptitude'
#file editing
@HSchmale16
HSchmale16 / .vimrc
Created March 18, 2015 00:43
My VimRc
autocmd! bufwritepost .vimrc source%
autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
autocmd! BufNewFile,BufRead *.job setlocal ft=dosini
autocmd! BufNewFile,BufRead *.md setlocal ft=pandoc
set nocompatible
"Henry's Tab Settings"
set expandtab
@FunTimeCoding
FunTimeCoding / phd
Created June 21, 2014 17:46
phabricator daemons init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: phd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: phabricator
# Description: manages phd
### END INIT INFO
@willurd
willurd / web-servers.md
Last active May 4, 2024 07:22
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@pepebe
pepebe / gist:2955410
Created June 19, 2012 17:25
Ubuntu: Convert psd files with imagemagick
Source: http://superuser.com/questions/360434/any-way-to-save-all-psd-layers-separately
Imagemagick will by default convert a psd to multiple images:
convert file.psd file.png
will result in file-0.png, file-1.png etc for each layer. If you wanted a single image, use the flatten switch:
convert file.psd -flatten file.png
Imagemagick is available on osx, windows and linux. And iOS somehow.