Skip to content

Instantly share code, notes, and snippets.

View JanJastrow's full-sized avatar

Jan Jastrow JanJastrow

View GitHub Profile
@JanJastrow
JanJastrow / build.sh
Created November 17, 2023 23:19
Polished Crystal 9bit Build Script
#!/bin/bash
cd /root/polishedcrystal
WEB="/var/www/html"
# Update branch & clean
COMMIT_ID_BEFORE=$(git rev-parse HEAD | cut -c 1-8)
git pull
git checkout 9bit
COMMIT_ID_AFTER=$(git rev-parse HEAD | cut -c 1-8)

Keybase proof

I hereby claim:

  • I am janjastrow on github.
  • I am jan_j (https://keybase.io/jan_j) on keybase.
  • I have a public key ASA3eHxAfq8aPJL4wbvI13gKeCLEmDoezm_OwCHLniQc4Ao

To claim this, I am signing this object:

@JanJastrow
JanJastrow / backup_tumblr.sh
Created April 8, 2016 14:07 — forked from doersino/backup_tumblr.sh
Simple way of backing up one or multiple Tumblr blogs to date-prefixed folders; downloads and removes required software (except Python) automatically. http://neondust.tumblr.com/post/97723922505/simple-tumblr-backup-script-for-mac-os-x-and-linux
#!/bin/bash
# http://neondust.tumblr.com/post/97723922505/simple-tumblr-backup-script-for-mac-os-x-and-linux
# https://gist.github.com/doersino/7e3e5db591e42bf543e1
# BLOGS is a space-separated list of the blogs you want to backup. You can omit
# the ".tumblr.com" part if you want.
BLOGS="neondust.tumblr.com aufgeloest.tumblr.com hejlisten.tumblr.com"
# OUT is the directory where the backups will be stored. For each blog, a date-
# prefixed subdirectory will be created here.
meter{
display: block;
border: 1px outset;
height: 20px;
width: 100px;
overflow: hidden;
}
meter div
{
display: block;
@JanJastrow
JanJastrow / gist:87182177c418a73571b7
Created February 19, 2015 18:02
My FireTV KODI Keyboard
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<Home>
<keyboard>
<menu>XBMC.ActivateWindow(Favourites)</menu>
</keyboard>
</Home>
<FullscreenVideo>
<keyboard>
<menu>SmallStepBack</menu>
@JanJastrow
JanJastrow / gist:8214953
Last active January 30, 2017 21:27
Install ffmpeg with a lot of stuff!
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libebur128 --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg --with-libass
@JanJastrow
JanJastrow / gist:8129199
Created December 26, 2013 02:58
Had to check wether the password contains an 0 or an O… Did it by javascript, but could never use it because of motherflipping restrictions…
<td class="td2" id="pass_pass"><b>3NV`-0NDj+</b></td>
<script type="text/javascript">
function check_me() {
var passwort = document.getElementById('pass_pass').firstChild.innerHTML;
/* Liest den Inhalt des ersten Unterelements der ID 'pass_pass' aus und speichert in Variable 'passwort' */
/* Prüft, ob eine 0 (Null) im Passwort vorhanden ist. */
if (passwort.indexOf("0") != -1) { /* Kontrolliert, ob eine 0 in der Variable 'passwort' gefunden wurde */
/* Ersetzt in der Variable 'passwort' das "0" gegen "<span style='color: #ff00ff;'>0</span>" */