Skip to content

Instantly share code, notes, and snippets.

@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@spinscale
spinscale / runtime-fields.json
Created March 17, 2021 10:56
Elastic Bytes - Runtime fields
##################
# Runtime fields #
##################
GET /
DELETE orders
PUT orders
{
@dixson3
dixson3 / workspace.sh
Created January 10, 2014 19:11
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
@shearluck
shearluck / pod.yaml
Last active October 17, 2022 07:44
Kubernetes k3s, EC2 spot instance, ECR, Private registry
apiVersion: v1
kind: Pod
metadata:
name: <app-name>
labels:
app: <app-name>
spec:
containers:
- name: <app-name>
image: <account>.dkr.ecr.us-west-2.amazonaws.com/<app-name>:latest
@pkmafia
pkmafia / De-Vonage HT701 Instructions.txt
Created April 3, 2016 22:50
De-Vonage HT701 Instructions
De-Vonage HT701 Basictalk HT701:
Set up a separate router to serve DHCP addresses with NO internet access.
Set it for something different from my main router to eliminate confusion;
This example one is made with ip address 192.168.2.1
Connect a phone to check IP address. Dial *** Then 02
Log on and use password ERgTbCLo
Go to advanced tab and make admin password admin
Clear Vonage firmware boxes
Check Always Skip the Firmware Check
@laszlomiklosik
laszlomiklosik / Maven multi-module build options
Created January 28, 2013 07:29
Maven multi-module build options
# Inspired from http://blog.akquinet.de/2010/05/26/mastering-the-maven-command-line-%E2%80%93-reactor-options/
# Build only specific modules:
mvn clean install -pl sub-module-name2
mvn clean install -pl sub-module-name2,sub-module-name3
# Build only starting from specific sub-module (resume from)
mvn clean install -rf sub-module-name2
# Build dependencies (also make)
curl localhost:9200/_search -d '{
"query" : {
"filtered" : {
"query" : {"match_all" : {}},
"filter" : {
"or" : [
{
"range" : {
"file_size" : {"from" : 10, "to" : 10000}
}
@lsauer
lsauer / gist:2907369
Last active January 17, 2022 09:59
Google Chrome special pages for memory, debug, resources, profiling, downloads...

####lsauer.com


###Overview of all chrome:// pages.

  • List by calling chrome://about/
  • Following is a direct dump from the 'about' page for reference

###List of Pages as per v20.xxx

@chrishuan9
chrishuan9 / tmux_cheatsheet.markdown
Last active January 8, 2022 09:35 — forked from henrik/tmux_cheatsheet.markdown
tmux cheat sheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@stonehippo
stonehippo / FTDI_Basic_Hookup_for_ESP-01.jpg
Last active January 6, 2022 14:09
Notes on using the ESP8266 with the Arduino IDE
FTDI_Basic_Hookup_for_ESP-01.jpg