Skip to content

Instantly share code, notes, and snippets.

@max-mapper
max-mapper / readme.md
Last active June 3, 2020 00:31
automatically scan for and join open internet enabled wifi networks on linux using node.js (tested on raspberry pi raspbian)
anonymous
anonymous / index.html
Created March 26, 2013 15:55
A CodePen by Antonis Kamamis. Web Audio API experiment - Best viewed in full view and latest chrome This is a Webkit only experiment with Web audio API. The idea came from my After Effects days and this video from Red Giant TV(http://www.redgiantsoftware.com/videos/redgianttv/item/54/) ; In short its animating particles depending on the frequenc…
<canvas class="c"></canvas>
@robmccormack
robmccormack / mrm_fav_hotkeys.md
Last active December 19, 2015 10:19
mrm_Favorite_Hotkeys - hotkeys and quick tips.
@pe3
pe3 / scrape_entire_website_with_wget.sh
Last active March 9, 2024 17:42
Scrape An Entire Website with wget
this worked very nice for a single page site
```
wget \
--recursive \
--page-requisites \
--convert-links \
[website]
```
wget options
@campoy
campoy / letitfail.go
Last active January 6, 2024 07:26
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
@hyrmn
hyrmn / .gitconfig
Last active December 21, 2015 05:49
my .gitconfig
[user]
name = Ben Hyrman
email = ben.hyrman@gmail.com
[core]
autocrlf = true
editor = vim
excludesfile = C:\\Users\\Ben\\Documents\\gitignore_global.txt
[credential]
helper = !~/AppData/Roaming/GitCredStore/git-credential-winstore
[merge]
@jpoehls
jpoehls / GadgetController.cs
Last active December 26, 2015 18:58
Basic ASP.NET MVC controller / data layer interaction architecture example.
class GadgetController : Controller {
// Each MVC controller has a complementing '*ControllerContext' class.
private readonly IGadgetControllerContext _context;
GadgetController()
: this(new GadgetControllerContext()) { }
// Unit testing ctor. Allows passing in mock repositories.
GadgetController(IGadgetControllerContext context) {
_context = context;
@tristanwietsma
tristanwietsma / auth.go
Created May 15, 2014 04:15
Golang web server example
package main
import (
"encoding/base64"
"net/http"
"strings"
)
type handler func(w http.ResponseWriter, r *http.Request)
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 16, 2024 12:40
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@nathansmith
nathansmith / this-is-madness.css
Last active October 6, 2015 10:36
Examples of CSS selector strength.
* {}
tag {}
[attribute] {}
[attribute="value"] {}
.class {}