Skip to content

Instantly share code, notes, and snippets.

View jessb321's full-sized avatar

Jess jessb321

  • Australia
  • 04:53 (UTC +10:00)
View GitHub Profile
@jessb321
jessb321 / Sublime Text 3 Build 3103 License Key - CRACK
Created July 18, 2016 03:48
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
require 'mechanize'
require 'logger'
require 'io/console'
require 'json'
SETTINGS = ".ed_profile_scraper.yml"
COOKIES = ".ed_profile_scraper.cookies"
BASE_URL = "https://companion.orerve.net/"
@jessb321
jessb321 / nvm-install.sh
Created October 21, 2016 06:57 — forked from snandam/nvm-install.sh
Remove node, npm, nvm and install again
#!/bin/bash
# node-reinstall
# credit:
# http://stackoverflow.com/a/11178106/2083544
# https://gist.github.com/brock/5b1b70590e1171c4ab54
## program version
## Update versions accordingly. https://github.com/creationix/nvm/releases
VERSION="0.31.0"
@jessb321
jessb321 / README.md
Created December 3, 2016 06:34 — forked from davidzou2131/README.md
DET NSW EMU Batch Password Reset Tool

DET NSW EMU Batch Password Reset Tool

About

This tool is for batch resetting DET NSW student passwords though EMU, in batch.

Requirements

  • A DET NSW account with EMU access
  • A CSV file of DET usernames and passwords to reset to
  • Python 3
  • Python Requests module.
@jessb321
jessb321 / getCSV.ps1
Last active December 30, 2016 01:21
Get latest systems.csv from eddb.io and process it.
# Ask user if they want to use the python script for CSV parsing
$python = Read-Host 'Do you want to use the python script to process the csv? (Requires python obviously) (y/n)'
# Functions
Function Download {
"Downloading the latest dump!"
$wc = New-Object System.Net.WebClient
$wc.Headers.add('Accept-Encoding', 'gzip, deflate, sdch')
$wc.DownloadFile($url, $output)
# Functions
Function Download {
"Downloading the latest dump!"
$wc = New-Object System.Net.WebClient
$wc.Headers.add('Accept-Encoding', 'gzip, deflate, sdch')
$wc.DownloadFile($url, $output)
Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
"Finished downloading the latest dump!"
unzip
@jessb321
jessb321 / setInterval.js
Created January 15, 2017 06:37 — forked from richardkundl/setInterval.js
An alternative to Javascript's evil setInterval: - Doesn't care whether the callback is still running or not - Ignores errors - Isn't that flexible Thanks: http://www.thecodeship.com/web-development/alternative-to-javascript-evil-setinterval/
function interval(func, wait, times){
var interv = function(w, t){
return function(){
if(typeof t === "undefined" || t-- > 0){
setTimeout(interv, w);
try{
func.call(null);
}
catch(e){
t = 0;
@jessb321
jessb321 / install.sh
Created February 10, 2017 04:00 — forked from mkubenka/install.sh
OpenVPN Access Server Letsencrypt
#!/bin/sh
apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt
$.fn.textWidth = function(){
const text = $(this).html();
const testElem = document.createElement('span');
testElem.style.opacity = 0;
$(testElem).html('<span>'+text+'</span>');
document.body.appendChild(testElem);
$(testElem).remove();
return width;
};