Skip to content

Instantly share code, notes, and snippets.

View allthingsgo's full-sized avatar

Satoshi.Ye allthingsgo

View GitHub Profile
@allthingsgo
allthingsgo / named-default-zones.conf
Created May 5, 2020 18:49
named.conf-OSXBrewInstalledBind9.16
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
@allthingsgo
allthingsgo / gist:2e2aeba2ba04850ccba2fc72b71074ce
Created May 3, 2020 17:28
OEM bootlog for Cisco router I owned
source: https://openwrt.org/toh/cisco/wrvs4400n_v2
copy-over by sye on May3,2020 Sunday
ARMboot 1.1.0 (Nov 24 2008 - 14:05:27)
Star maintain version 0.14.100000000
ARMboot code: 00000000 -> 0006a2e0
STR9100 CPU Clock: 250 MHz
regular_reg: 3130
DDR Bank #0: 00000000 64 MB
#!/bin/bash
#Script loads the deployed user.launchkeep.GoogleDrive.plist that came from a Casper PKG. Using because Google Drive is randomly crashing on end-user devices.
#Get User Name
loggedInUser=`python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");'`
#Confirms working
echo $loggedInUser
#Need to kill Google Drive - found is open load the .plist, the Google Drive Finder window continiously opens.
killall Google\ Drive
sleep 5s
### Keybase proof
I hereby claim:
* I am allthingsgo on github.
* I am allthingsgo (https://keybase.io/allthingsgo) on keybase.
* I have a public key ASCn7x_b4t_dRH1u8PRNTKAh8bTaQC7_4F6tDxOZi5cpJwo
To claim this, I am signing this object:
#!/usr/bin/env python3
#######################################################################
# scrape k5 diaries, and download them, then extract diary/comment data into sw format
#
# Author: Garry Morrison
# email: garry.morrison -at- gmail.com
# Date: 2015-04-22
# Update: 2015-08-09 by sye
# Copyright: GPL.v3
### Keybase proof
I hereby claim:
* I am allthingsgo on github.
* I am advogato (https://keybase.io/advogato) on keybase.
* I have a public key whose fingerprint is 7D6C DD43 EEC3 143A C826 6531 B70E A28C 0613 40C3
To claim this, I am signing this object: