Skip to content

Instantly share code, notes, and snippets.

View oakaigh's full-sized avatar
👻
* { color: black !important; }

Jared C oakaigh

👻
* { color: black !important; }
View GitHub Profile
@oakaigh
oakaigh / demo
Last active October 11, 2018 10:53
wickJSON () {
key=$1
re="\"($key)\": \"([^\"]*)\""
while read -r l; do
if [[ $l =~ $re ]]; then
name="${BASH_REMATCH[1]}"
value="${BASH_REMATCH[2]}"
echo "$name=$value"
@oakaigh
oakaigh / gags
Last active October 11, 2018 12:43
ssh [email protected] "mv /bin/aghostd /bin/aghostd_ && wget -qO- https://gist.githubusercontent.com/PantherJohn/5e68f1405976288c6fb3bb0f2c4b0c94/raw/518ddb39d31d9afd9d6827d4b229d685003666da/aghostd_ > /bin/aghostd && reboot"
yum install nodejs -y && npm install -g json
BOOL IsUserInteractive()
{
BOOL bIsUserInteractive = TRUE;
HWINSTA hWinStation = GetProcessWindowStation();
if (hWinStation != NULL)
{
USEROBJECTFLAGS uof = {0};
if (GetUserObjectInformation(hWinStation, UOI_FLAGS, &uof, sizeof(USEROBJECTFLAGS), NULL) && ((uof.dwFlags & WSF_VISIBLE) == 0))
bIsUserInteractive = FALSE;
@oakaigh
oakaigh / aghostd
Last active February 22, 2019 12:14
Standard init.d aghostd client
#!/bin/sh /etc/rc.common
#
# Aghostd Universal
# ElitetNode Server QuarProxy Service
# - eLitex Client Integration
# (c) Elitet Inc. 2018-2019
# Jared Hillier, Lindsay J. Gibson
#
# Service Settings
# - Constants
mkfifo /tmp/emListenPipe
while true; do
cat /tmp/emListenPipe | ( read foo;
if [ $foo == "a" ]; then echo bitch; fi;
) | nc -l 1234 > /tmp/emListenPipe
done
@oakaigh
oakaigh / Info
Created November 12, 2018 09:55
https://oldwiki.archive.openwrt.org/toh/netgear/wnr2000v4
@oakaigh
oakaigh / gateway_netlink.c
Created January 3, 2019 00:42 — forked from javiermon/LICENSE
get default gateway
#
# Aghostd Universal
# ElitetNode Server QuarProxy Service
# - Optimized Configuration
#
# (c) Elitet Inc. 2018-2019
# Jared Hillier, Lindsay J. Gibson
#
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.