Skip to content

Instantly share code, notes, and snippets.

ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
@qntmpkts
qntmpkts / qresearch.theme.css
Created July 2, 2018 05:44
Custom css theme useful on /qresearch/ (or can be refactored for other boards)
/*------------------------------------------------------
* Don't hide post count
*------------------------------------------------------*/
.posts_by_id{
display:initial!important;
font-weight:bold;
}
/*------------------------------------------------------
* Fake yous are obvious
@qntmpkts
qntmpkts / 8chjs.min.js
Created July 2, 2018 05:43
http://anonsw.github.io/8chjs before it vanished from the 'net
/*
* q.js v2018.3-6.1
* http://anonsw.github.io/8chjs/
*/
// User Settings
var anonsw = {
qflair: '', // Examples: REAL, →
qcolor: '#ff0',
youcolor: '#cff',
scrollcolor: 'rgba(153, 153, 153, 0.6)',
@qntmpkts
qntmpkts / .bashrc
Last active October 13, 2023 20:14
For use on ChromeOS with zsh and oh-my-zsh installed
# /etc/skel/.bashrc
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
exec /usr/local/bin/zsh
@qntmpkts
qntmpkts / sign-off-gpg-sign-previous-commits.md
Created December 11, 2017 04:12
Sign-off and GPG sign up to N commits ago, including HEAD
# Add sign-off
git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Name  <user@domain.tld>'" HEAD~N..HEAD
# Remove sign-off
git filter-branch --msg-filter "sed /^Signed-off-by:/d" HEAD~N..HEAD
# GPG sign
git filter-branch -f --commit-filter 'git commit-tree -S "$@"' HEAD~N..HEAD
@qntmpkts
qntmpkts / config
Created November 14, 2017 20:54
.ssh/config entry for github.com
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/user/.ssh/id_rsa
@qntmpkts
qntmpkts / install-vsc.sh
Created September 17, 2017 17:53
Install Visual Studio Code Insiders in Crouton Chroot (ChromiumOS/ChromeOS)
#!/usr/bin/env sh
_install_vsc() {
echo "Re-entering chroot to complete installation..."
sudo enter-chroot -n ${1} sudo -S sh -c "curl -L https://go.microsoft.com/fwlink/?LinkID=760865 > /tmp/code-insiders.deb; sudo dpkg -i /tmp/code-insiders.deb; sudo apt-get install -f; rm /tmp/code-insiders.deb;";
if [ $? -eq 0 ]; then
echo "Code install script complete.";
else
echo "Code install script failed.";
exit 1;
@qntmpkts
qntmpkts / .inputrc
Created September 2, 2017 15:37
Historical search for ChromeOS shell
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
@qntmpkts
qntmpkts / m3u8-to-youtube-live.md
Last active April 8, 2024 13:51
Restream m3u8 stream with ffmpeg to youtube live

Setup YouTube Live Event

Head on over to your YouTube live Events page (https://www.youtube.com/my_live_events).

Create a new live event that is unlisted (or private) and of Custom type.

Under Basic ingestion choose 1500 Kbps - 4000 kbps (720p).

Check the Enable 60fps box.

@qntmpkts
qntmpkts / install-crew.sh
Created August 14, 2017 23:14
Install Chromebrew
#!/usr/bin/env sh
_crew_install() {
wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
}
_crew_install