Skip to content

Instantly share code, notes, and snippets.

Christian Ferrier xioustic

Block or report user

Report or block xioustic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xioustic
xioustic / boxstarter-updates.bat
Last active Aug 29, 2015
Boxstarter: Install Boxstarter, Chocolatey, and Windows Updates Rebooting as Necessary
View boxstarter-updates.bat
START iexplore http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Xioustic/d458c703774fe4ef5926/raw/b6a01dc4a62ed698df2a384213de0430a2c8eccd/boxstarter-updates.txt
@xioustic
xioustic / Todo.md
Last active Oct 9, 2016
boxstarter profile
View Todo.md
@xioustic
xioustic / 2016-11-05.md
Last active Nov 5, 2016
Phoenix ISP Speeds
View 2016-11-05.md

Tests taken from speedtest.net and pingtest.net. Chrome on wireless laptop. Location near South Mountain Community Library.

CenturyLink (C1100Z Modem)

$34.95 Deal (40 Mbps)

SpeedPing 23ms
Down 11.92
Up 4.86
Grade B*
Ping 35ms
Jitter 5ms

View test.js
/* wsHook.js
* https://github.com/skepticfx/wshook
* Reference: http://www.w3.org/TR/2011/WD-websockets-20110419/#websocket
*/
var wsHook = {};
(function() {
// Mutable MessageEvent.
// Subclasses MessageEvent and makes data, origin and other MessageEvent properites mutatble.
function MutableMessageEvent(o) {
@xioustic
xioustic / subl.bat
Last active May 4, 2017
subl terminal alias for windows
View subl.bat
REM Place this somewhere on your PATH
@echo off
"C:\PATH\TO\Sublime Text\sublime_text.exe" %*
View tpb_searchjson.js
qsaArr = (el, query) => Array.prototype.slice.call(el.querySelectorAll(query))
qsArr = (el, query) => Array.prototype.slice.call(el.querySelector(query))
var results = qsaArr(document, '#main-content > #searchResult > tbody > tr');
var resultsJson = results.map((r) => {
let obj = {}
obj.el = r
obj.name = r.querySelector('.detName').textContent.trim()
obj.category = r.querySelector('.vertTh').textContent.trim()
obj.magnet = qsaArr(r, 'td > a').map(e => e.href)[0]
View keybase.md

Keybase proof

I hereby claim:

  • I am xioustic on github.
  • I am xioustic (https://keybase.io/xioustic) on keybase.
  • I have a public key ASBdkzgaeGYJyIthtHJ6u6kQ4Bbwo6aYonOQHAJAIdwy7Qo

To claim this, I am signing this object:

@xioustic
xioustic / google_maps_timeline_to_csv.js
Last active Feb 19, 2018
think it's good to go...
View google_maps_timeline_to_csv.js
// hello
// i need to do taxes and i have to log my mileage retroactively
// my accountant said google timeline is fine
// google timeline is slow to iterate through by hand
// it's also slow to log by hand
// this script handles enough that i can put it in a csv file and work on it from there
var STOP_DATE = '2017-01-01'
var DEBUG = false
@xioustic
xioustic / selfcrypted.sh
Created Jun 16, 2018
self encrypted bash script
View selfcrypted.sh
# gets the line number in this script of the "PAYLOAD:" line
echoPayloadLinenum() {
echo $(grep --text --line-number '^PAYLOAD:$' $0 | cut -d ':' -f 1)
}
# prints only the payload
echoPayload() {
local payload_linenum=$(echoPayloadLinenum)
local crypted_linenum=$((payload_linenum + 1))
View mavericklabel_asset_tags_incremental_price_quote.js
// MaverickLabel Asset Tags Incremental Price Quote
// https://www.mavericklabel.com/products/asset-tags-price.html
// incrementally increases quantity for a quote
// when stopped, prints csv output
var gather, STOP
function start_iteration() {
STOP = 0
var gather = []
var old_price = false
You can’t perform that action at this time.