Skip to content

Instantly share code, notes, and snippets.

View Hillsie's full-sized avatar
👋

Hillsie Hillsie

👋
  • Sydney, Australia
  • 03:02 (UTC +10:00)
View GitHub Profile
@dfarrell-bloom
dfarrell-bloom / gist:8446903
Created January 15, 2014 23:33
get an ip from a server with ipchicken
# not super awesome but it works
curl ipchicken.com | grep "[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
@andrewringler
andrewringler / README.md
Created October 1, 2012 04:00
Sorting Algorithms

Animated visualizations of Quicksort, Comb sort, Gnome sort, Selection sort, Bubble sort and Bogosort.

The Viz

  • Array values are represented by line height and color.
  • Current location in a traversal is represented by a pink bar above the array item.
  • Item swaps are signified by a bar of the same color as the array item above that item.
@JohnMichaelMiller
JohnMichaelMiller / acg.alb.sh
Last active November 10, 2020 12:41
AWS CLI code for the Application Load Balancer lab from the acloud.guru AWS Certified Develper Associate course
#!/bin/bash
### AWS CLI code for the Application Load Balancer lab from the
### acloud.guru AWS Certified Develper Associate course
# turn off history expansion
set +H
# Go home
region="us-east-1"
function getTranslationMap(rhyme) {
const rhymes = {
"apples and pears": "Stairs",
"hampstead heath": "Teeth",
"loaf of bread": "Head",
"pork pies": "Lies",
"whistle and flute": "Suit",
};
return rhymes[rhyme.toLowerCase()] ?? "Rhyme not found";
@kevmor11
kevmor11 / settings.json
Created May 5, 2017 18:35
VS Code Settings
// Controls the font size in pixels.
"editor.fontSize": 12,
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'.
"files.autoSave": "off",
// Controls the font family.
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
@nstarke
nstarke / extract-netgear-chk-firmware.md
Created May 12, 2019 14:56
Extract Netgear .chk Firmware

Extract Netgear .chk Firmware

I recently ran into a situation where binwalk -M -e $FIRMWARE failed me. This was for a Netgear firmware image that ended in a .chkextension.

The firmware file name was R7960P-V1.0.1.34_1.0.20.chk.

This is the output when I ran binwalk R7960P-V1.0.1.34_1.0.20.chk:

$ binwalk R7960P-V1.0.1.34_1.0.20.chk
@dmethvin
dmethvin / gist:1676346
Created January 25, 2012 13:51
Breakpoint on access to a property
function debugAccess(obj, prop, debugGet){
var origValue = obj[prop];
Object.defineProperty(obj, prop, {
get: function () {
if ( debugGet )
debugger;
return origValue;
},
@pgilad
pgilad / Instructions.md
Last active March 27, 2024 12:59
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@koistya
koistya / React-Directory-Layout.md
Last active April 7, 2024 19:01
File and folder naming convention for React.js components

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css