Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@obfusk
obfusk / sources.list
Created January 4, 2014 19:15
apt sources.list for debian unstable
deb http://ftp.nl.debian.org/debian/ testing main contrib
deb-src http://ftp.nl.debian.org/debian/ testing main contrib
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib
deb http://ftp.nl.debian.org/debian/ testing-updates main contrib
deb-src http://ftp.nl.debian.org/debian/ testing-updates main contrib
@abtrout
abtrout / pass.md
Created July 8, 2014 14:51
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
@tadly
tadly / pacaur_install.sh
Last active August 30, 2023 13:15
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
#
# !!! IMPORTANT !!!
# As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144)
# For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active
# pacaur seems to get occasional updates to fix breaking changes due to pacman updates though.
#
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
@jacobmischka
jacobmischka / ds4led
Created December 30, 2015 04:20
Changes color for ds4 controller lightbar on linux and gives permissions so games can change it too if they support it.
#!/bin/bash
# This isn't really that safe to blindly run,
# as it uses sudo to change system file permissions.
# Hopefully it shouldn't break anything though.
# Usage: ds4led [r value] [g value] [b value]
# or `ds4led orange` to set it to orange.
DS4="0003:054C:05C4.*"
cd /sys/class/leds
@pyk
pyk / README.md
Last active September 18, 2019 17:53
Install Oracle java 8 on debian jessie

Run

wget https://gist.githubusercontent.com/pyk/19a619b0763d6de06786/raw/b09ce3a6626484adb5339597dfd391d0db9fe3cb/install-oracle-java-8-on-debian-jessie.sh
sh install-oracle-java-8-on-debian-jessie.sh

See the following blog post

@TuxSH
TuxSH / screenshot.c
Created May 6, 2016 20:46
screenshots
// taken from d9wip
#define TOP_SCREEN0 (u8*)(*(u32*)0x23FFFE00)
#define TOP_SCREEN1 (u8*)(*(u32*)0x23FFFE00)
#define BOT_SCREEN0 (u8*)(*(u32*)0x23FFFE08)
void Screenshot(const char* path)
{
u8* buffer = (u8*) 0x21000054; // careful, this area is used by other functions in Decrypt9
u8* buffer_t = buffer + 54 + (400 * 240 * 3);
@mpost
mpost / android-cli.bat
Created July 29, 2016 14:47
Register windows context menu entry to adb install apk from explorer
@ECHO OFF
ECHO Running "adb install -r %1"
adb install -r %1
PAUSE
@joegross
joegross / build_local_tmux.sh
Last active August 1, 2019 06:23
Install tmux without root
#!/bin/bash
set -e
TMUX_VERSION=2.2
LIBEVENT_VERSION=2.0.22-stable
NCURSES_VERSION=6.0
mkdir -p $HOME/local
mkdir -p $HOME/src
@yetanotherchris
yetanotherchris / hastebin-client-csharp.cs
Last active April 18, 2023 06:27
A Hastebin client in C#
void Main()
{
// To run Hastebin in Docker:
// docker run --name pastebin -p 801:80 mkodockx/docker-pastebin
string baseUrl = "http://localhost:801/";
var hasteBinClient = new HasteBinClient(baseUrl);
HasteBinResult result = hasteBinClient.Post("Hello hastebin").Result;
if (result.IsSuccess)