Skip to content

Instantly share code, notes, and snippets.

View Siss3l's full-sized avatar
🦊

Sissel Siss3l

🦊
View GitHub Profile
@dan-palmer
dan-palmer / swap-commands.txt
Created July 10, 2012 09:24
Enable Disable OSX Swap etc
# check swap usage
sysctl vm.swapusage
# disable encrypted swap - SNOW LEOPARD
sudo defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no
# disable encrypted swap - LION
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes
# disable swap
@petarov
petarov / ArchLinux-USB-Powersave.md
Last active June 11, 2023 10:58
Arch Linux Hints and Tricks

Mouse and Keyboard power off

Do you use an usb mouse and keyboard and have laptop_mode installed under your Arch linux ? Then maybe you have the same problems as me - mouse and keyboard getting inactive every 2 seconds or so.

To solve this, go to /etc/laptop-mode/conf.d and copy usb-autosuspend.conf to /etc/laptop-mode/conf.d/board-specific. After that run lsusb and get the ID of the usb device you want, e.g., 093a:2500 .

Open the board-specific/usb-autosuspend.conf file and find the AUTOSUSPEND_USBID_BLACKLIST conf option. Put the desired usb IDs there. You might need to run sudo laptop_mode afterwards to reload the configs.

@lufehr
lufehr / algorithm.cpp
Created September 12, 2012 22:55
Blog - C++ STL Algorithm accumulate()
// addition
template <class InputIterator, class T>
T accumulate (InputIterator first, InputIterator last, T init)
{
while (first!=last) init = init + *first++;
return init;
}
// general Operation
template <class InputIterator, class T, Class binaryOperation>
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@weisi
weisi / bmp2rle.py
Created October 11, 2012 05:17
Black-and-white Windows Bitmap -> CompuServe RLE converter
#!/usr/bin/env python3
# Weisi Dai <[email protected]>
# 09055029, Xi'an Jiaotong University
# Oct 11, 2012
# Released under MIT License
# Reads a black-and-white Windows Bitmaap, parses it and converts it to CompuServe RLE format.
import struct
from types import * # assert
@banaslee
banaslee / XGH - de-de.txt
Last active May 3, 2025 05:37
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Quelle: http://gohorseprocess.wordpress.com
Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f
1. Ich denke, also ist es nicht XGH.
In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller.
2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller.
@xdamman
xdamman / top domains
Last active February 23, 2022 20:23
363202,HOTMAIL.COM
187090,GMAIL.COM
99806,SKYNET.BE
60011,TELENET.BE
59293,YAHOO.COM
56286,YAHOO.FR
22528,HOTMAIL.FR
17766,PANDORA.BE
12912,MSN.COM
11061,SCARLET.BE
@agaricusb
agaricusb / gist:4490499
Created January 9, 2013 04:09
Spigot CB jenkins #spigot log
<Aikar> md_5: https://gist.github.com/4490134 posted my log of it too, but i dont have any Bukkit patches yet is why that failed >_>
<md_5> Aikar is the -3 patch granularity or what?
<md_5> oh shortcut for 3way
<Aikar> yea
<TheReverend403> SuPaHsPii: Then they'd take that out of your plugin and let it load on Libigot? ;)
<md_5> Aikar post rebuildpatches too
<Aikar> md_5: i will when i write it, working on that now :P
<SuPaHsPii> TheReverend403: Then I would just keep updating it
<snowmon6> md_5, any other required conversions?
<SuPaHsPii> Litterally, I would fight to the end of LULZ
anonymous
anonymous / Exploit.java
Created January 11, 2013 08:49
/*
Java 0day 1.7.0_10 decrypted source
Originaly placed on https://damagelab.org/index.php?showtopic=23719&st=0
From Russia with love.
*/
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.security.AccessController;
@jpatters
jpatters / HeidiDecode.js
Last active March 7, 2025 03:33
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));