I hereby claim:
- I am gboudreau on github.
- I am gboudreau (https://keybase.io/gboudreau) on keybase.
- I have a public key whose fingerprint is EEEC EA5D AB9D BA25 21C6 5248 4536 901B F6B0 FCFA
To claim this, I am signing this object:
<script src="http://sladex.org/blowfish.js/ext/blowfish.js"></script> | |
<script> | |
var password = 'a'; | |
var key = 'uyI5Dj9g8VCOFDnBRUbr3g'; | |
var encrypted_password = blowfish.encrypt(password, key, {cipherMode: 0, outputType: 0}); | |
console.log("Encrypted password: " + encrypted_password); | |
</script> |
<?php | |
/** | |
* Use this script to check and fix a list of files that were copied, using rsync, from a bad (BAD!) hard drive to another hard drive (let's call that one the savior drive). | |
* Since the bad drive is so bad, the data that was copied off that drive might have been corrupted. | |
* So we'll find which of the listed files are wrong (different MD5 checksum on both drives), and fix them. | |
* | |
* Lucky for us, the dying drive is SO BAD that it never generates the same read errors, and when it does generate errors, the byte it reads is always exactly 0x10 (decimal 16) less than it should be. | |
* This very particular way of dying allows us to detect which of the two drive has the correct byte, and thus write a correct file on the savior drive. | |
* Hooray! |
<?php | |
$file = '/mnt/hdd5/persistent-app-data/downloading/vvgoor1586DSFGKL.part10.rar'; | |
while (TRUE) { | |
exec("sync ; sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'"); | |
$data1 = file_get_contents($file); | |
exec("sync ; sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'"); | |
$data2 = file_get_contents($file); |
#!/bin/bash | |
function switch_files { | |
mv $1.png $1.tmp.png | |
mv $1-inverse.png $1.png | |
mv $1.tmp.png $1-inverse.png | |
mv [email protected] [email protected] | |
mv [email protected] [email protected] | |
mv [email protected] [email protected] | |
} |
#!/bin/sh | |
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
#!/bin/bash | |
# Detect package type from /etc/issue | |
_found_arch() { | |
local _ostype="$1" | |
shift | |
grep -qis "$*" /etc/issue && _OSTYPE="$_ostype" | |
} | |
# Detect package type |
<?php | |
function gh_symlink($target, $link) { | |
return symlink($target, $link); | |
} | |
$use_alt_symlinks_creation = FALSE; | |
function gh_symlink2($target, $link) { | |
global $use_alt_symlinks_creation; | |
$success = !$use_alt_symlinks_creation && symlink($target, $link); |
Sampling process 64900 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling Übersicht (pid 64900) every 1 millisecond | |
Process: Übersicht [64900] | |
Path: /Applications/Übersicht.app/Contents/MacOS/Übersicht | |
Load Address: 0x1075a4000 | |
Identifier: tracesOf.Uebersicht | |
Version: 0.1 (5) | |
Code Type: X86-64 | |
Parent Process: launchd [616] |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
{ | |
echo "## System information" | |
uname -a 2>&1 | |
echo | |
echo "## Samba version" | |
/usr/sbin/smbd --version |