Skip to content

Instantly share code, notes, and snippets.

View rcsheets's full-sized avatar

Charley Sheets rcsheets

View GitHub Profile
@rcsheets
rcsheets / gist:99e7eb180c045cec4bda
Created March 4, 2016 04:32
Tried to run sudo-humans "npm install" on sudoroom.org
rcsheets@sudoroom:~/sudo-humans$ npm install
npm WARN deprecated lodash@1.3.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
-
> leveldown@0.10.6 install /home/rcsheets/sudo-humans/node_modules/level/node_modules/leveldown
> node-gyp rebuild
make: Entering directory '/home/rcsheets/sudo-humans/node_modules/level/node_modules/leveldown/build'
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/builder.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_impl.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_iter.o
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Yes, https://plus.google.com/117194945140374921497 is really me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWX8REAAoJEK6WDxQUlM8LB08P/js2pFRDHgAxRv/D+7SEs/TI
08dWLWlXCrRVRkYGMvu6J+mD2VhVjTv5WoQJPFy0GIVODgbp9xdYBdEWvabfqJT9
vUUmZMWlDQ35V4yRvi4w0RWazzsQ7F5RDnjuZzd/XTQZQHr885RpGylmbe8kRz/T
@rcsheets
rcsheets / gist:9fd4e03801cda2817871
Created October 31, 2015 04:59
Skype 4.3.0.37 dlopens
rcsheets@starbuck:~$ ltrace -e dlopen /usr/bin/skype
libQtCore.so.4->dlopen("libicui18n.so.52", 1) = 0
libQtCore.so.4->dlopen("libicui18n", 1) = 0
libQtCore.so.4->dlopen("icui18n.so.52", 1) = 0
libQtCore.so.4->dlopen("icui18n", 1) = 0
libQtCore.so.4->dlopen("libXrandr.so.2", 1) = 0xf7fb9408
libQtCore.so.4->dlopen("libXfixes.so.1", 1) = 0
libQtCore.so.4->dlopen("libXfixes", 1) = 0
libQtCore.so.4->dlopen("libXfixes.so", 1) = 0
libQtCore.so.4->dlopen("libXfixes", 1) = 0
#!/usr/bin/env perl
use warnings;
use strict;
use v5.12;
# have:
# time [PID]: [sessionID-1] db=databaes,user=user,remote=remote TYPE: rest
# want:
# time|user|database|session ID|log entry type|rest
for host in $(cat list_of_systems.txt)
do
your_script.sh $host < commands.txt
done
df -l | grep -E '^/dev/'
if test -z "$1"
then
echo "No remote server specified"
else
if test -t 0
then
# do something interactive?
else
# do something noninteractive?
fi

Keybase proof

I hereby claim:

  • I am rcsheets on github.
  • I am rcsheets (https://keybase.io/rcsheets) on keybase.
  • I have a public key whose fingerprint is 8214 5D9B 0159 2DF0 FDC9 F8D3 AE96 0F14 1494 CF0B

To claim this, I am signing this object:

function a($foo) {
// PHP Notice: Undefined variable: foo
return $foo;
}
function b($foo = NULL) {
return $foo;
}
// PHP Warning: Missing argument 1 for a()
smartctl 6.2 2013-07-26 r3841 [FreeBSD 10.0-RELEASE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: SandForce Driven SSDs
Device Model: KINGSTON SKC300S37A60G
Serial Number: 50026B723A0593C8
LU WWN Device Id: 5 0026b7 23a0593c8
Firmware Version: 507KC4
User Capacity: 60,022,480,896 bytes [60.0 GB]