Skip to content

Instantly share code, notes, and snippets.

View GrimKriegor's full-sized avatar

Grim Kriegor GrimKriegor

View GitHub Profile
@brodul
brodul / streaming.sh
Created July 25, 2012 19:39
Twitch.tv script for streaming
#! /bin/bash
# originaly from http://tinyurl.com/twitch-linux from taladan
# www.youtube.com/user/taladan
# gist created by brodul
INRES="1280x800" # input resolution
#OUTRES="1024x640" # Output resolution
OUTRES="800x500" # Output resolution
@digitaljhelms
digitaljhelms / gist:4287848
Last active July 19, 2024 03:32
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@olivier-m
olivier-m / adb.sh
Created August 10, 2013 12:05
Remove all Google apps from an android phone. List of delete files from http://forum.xda-developers.com/showthread.php?t=1969755
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh
@ruario
ruario / one-shot-sftp.md
Last active January 19, 2022 17:22
How to upload a file(s), to a remote location in one go with sftp. Useful for automation.

Normally if you want to quickly send a file to a remote directory on an ssh server as a one liner or within a script, the following would suffice:

scp file server:path

Occasionally, you may come across a server that only has sftp enabled and not scp. For example if the OpenSSH server you were connecting to was configured as follows:

Subsystem sftp internal-sftp
@bbx10
bbx10 / ESPWebSock.ino
Last active June 5, 2024 20:16
ESP8266 Web server with Web Socket to control an LED
/*
* ESP8266 Web server with Web Socket to control an LED.
*
* The web server keeps all clients' LED status up to date and any client may
* turn the LED on or off.
*
* For example, clientA connects and turns the LED on. This changes the word
* "LED" on the web page to the color red. When clientB connects, the word
* "LED" will be red since the server knows the LED is on. When clientB turns
* the LED off, the word LED changes color to black on clientA and clientB web
@dllud
dllud / backup-fde-cyanogenmod.md
Created March 4, 2016 00:51
How to backup an encrypted CyanogenMod Android

How to backup and restore an encrypted CyanogenMod Android

The easiest way to backup a CynogenMod (CM) based Android, such as Replicant, is to enter ClockworkMod Recovery (CWMR) and use the backup/restore feature. However that won't work in a device with Full Device Encryption (FDE) because the /data directory is encrypted and therefore unaccessible in CWMR.

Thus we'll have to use backup apps that work within CM, when /data is accessible. The following procedures can be used to backup and restore all your apps, data and settings, using only free software.

Backup

  1. Install oandbackup. Go to preferences > cryptography, enable encryption and set up your OpenPGP email. Back in preferences enable copy own apk and special backups.
  2. Use oandbackup to backup data+apk for all your user apps. Tip: use batch backup with sort and filter.
#!/bin/bash
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/isrgrootx1.pem
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der
wget https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.der
#!/bin/bash
set -e
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der
wget https://letsencrypt.org/certs/letsencryptauthorityx2.der
@dllud
dllud / full-dark-desktop.md
Last active February 8, 2024 20:31
Tips for a full dark desktop interface

Tips for a full dark desktop interface

GTK+ based desktop environments

On GNOME, Unity, Cinnamon, MATE, Xfce, LXDE and all other GTK+ based desktop environments choose a deep-dark theme such as Dorian. If you already run GTK+ 3.20 check out Cloak 3.20 or the darkest variant of Candra 3.20.

These are full-featured themes by killhellokitty that include modifications for Google Chrome (Chromium), Firefox and Thunderbird.

Web browsing

@dllud
dllud / xmpp-servers-tor-hidden-service.md
Last active July 12, 2024 21:19
Public XMPP servers with Tor Hidden Service

Public XMPP servers with Tor Hidden Service

This is a tentative list of public XMPP (Jabber) servers that provide a Tor Hidden Service (.onion address) for connections from within Tor network. By public I mean, servers that are free for everyone to use and place no barriers on registration.

Clearnet domain Tor Hidden Service In-Band registration XEP compliance IM Observatory grade
5222.de jtovcabr2vhflcqg.onion disabled Excellent A
bommboo.de ujvdniabz53upqfx.onion disabled Excellent A
[ch