Skip to content

Instantly share code, notes, and snippets.

View 0xdevalias's full-sized avatar
👀
Open to opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to opportunities
View GitHub Profile
@nickhrsn
nickhrsn / simpleSpellChecker.html
Created January 17, 2019 05:15
Simple Spell Checker
<!DOCTYPE html>
<html>
<head>
<title>Simple Spell Checker</title>
</head>
<body>
<p>Simple Spell Checker</p>
<textarea style="width:100%;font-size:20px" cols=15 rows=50 placeholder="Paste Text Here" spellcheck=true></textarea>
@klepas
klepas / document-outliner.js
Created March 21, 2019 02:57
Document outliner JS bookmarklet
javascript:(function()%7Bvar numbering%3D0001%2ClinkColor%3D%27%27%2CclickOutside%3Dtrue%2CshowDetails%3Dfalse%2Ci%3D%5B%27%23h5o-outside%2C%23h5o-outside *%7Bbackground-color%3Atransparent%3Bborder%3Anone%3Bborder-radius%3A0%3Bbottom%3Aauto%3Bbox-shadow%3Anone%3Bbox-sizing%3Acontent-box%3Bclear%3Anone%3B%27%2B(linkColor%3F%27color%3A%27%2BlinkColor%2B%27%3B%27%3A%27%27)%2B%27cursor%3Aauto%3Bdirection%3Altr%3Bfloat%3Anone%3Bfont-family%3Asans-serif%3Bfont-size%3Asmall%3Bfont-stretch%3Anormal%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3Anormal%3Bheight%3Aauto%3Bleft%3Aauto%3Bletter-spacing%3Anormal%3Bline-height%3Anormal%3Bmargin%3A0%3Bopacity%3A1%3Boutline%3Anone%3Boverflow%3Avisible%3Bpadding%3A0%3Bposition%3Astatic%3Bright%3Aauto%3Btext-align%3Aleft%3Btext-decoration%3Anone%3Btext-indent%3A0%3Btext-overflow%3Aclip%3Btext-shadow%3Anone%3Btext-transform%3Anone%3Btop%3Aauto%3Bvertical-align%3Abaseline%3Bvisibility%3Avisible%3Bwhite-space%3Anormal%3Bwidth%3Aauto%3Bword-break%3Anormal%3Bword-spa
@albertorestifo
albertorestifo / sort.js
Created November 28, 2017 15:21
A quick script to sort by stars
const fs = require('fs');
const rp = require('request-promise');
const Promise = require('bluebird');
const list = fs.readFileSync('./list', { encoding: 'utf8' });
const urls = list.split('\n');
const TOKEN = '<YOUR API TOKEN>';
const repos = urls.map((url) => {
@arturovm
arturovm / GAEGoMap.go
Created December 8, 2012 21:31
This is a re-implementation of the GAE Go runtime Map type.
package main
import (
"reflect"
"appengine"
"appengine/datastore"
)
// define Map
@loklaan
loklaan / jest.config.js
Last active November 15, 2019 06:31
Rolling your own babel-jest
/*
Up to you how to let Jest consume this config. I ended up stringifying the export and supplying it to a terminal command.
*/
const path = require('path')
module.exports = {
transform: path.resolve(__dirname, './my-babel-jest.js')
}
@oxbowlakes
oxbowlakes / 3nightclubs.scala
Created May 13, 2011 15:14
A Tale of 3 Nightclubs
/**
* Part Zero : 10:15 Saturday Night
*
* (In which we will see how to let the type system help you handle failure)...
*
* First let's define a domain. (All the following requires scala 2.9.x and scalaz 6.0)
*/
import scalaz._
import Scalaz._
@jacobmix
jacobmix / SyncLoungeDockerGuide.md
Last active April 21, 2020 01:10
SyncLounge Docker guide

Here's how you set up on SyncLounge with Docker (Now with Markdown):
First make sure you got the Docker Hub in your registry:
Regisry

Download the latest SyncLounge image:
Image

Launch the image, and go to advanced settings:
Create Container

### Keybase proof
I hereby claim:
* I am moloch-- on github.
* I am moloch (https://keybase.io/moloch) on keybase.
* I have a public key whose fingerprint is 0E59 543B A7BC 269F 3AAE 707E B705 0578 9B38 EEA6
To claim this, I am signing this object:
@alexellis
alexellis / 2019-10-06-insiders.md
Last active July 16, 2020 09:27
Insiders Update 6th Oct 2019 - FaaS for Rubyists, Managed k3s, GitHub Actions, and PLONK Stack intro

Welcome to this week's Insiders Update! Insiders gain exclusive access to early previews, updates, news, and events on my OSS work.

✅ Join the community on the Insiders Track 👉 through GitHub Sponsors. Just pay whatever you want.

Insiders Update 6th Oct 2019 - FaaS for Rubyists, Managed k3s, GitHub Actions, and PLONK Stack intro

This week's Insiders Update is a bumper edition with two weeks' worth of content, so make a hot drink and get settled in.

@djs55
djs55 / docker-desktop-mutagen-builds.md
Last active July 25, 2020 13:30
Development builds containing the Docker Desktop + Mutagen integration

This is a list of Docker Desktop for Mac development builds which contain mutagen. These are based on Edge, but may contain unexpected bugs. They should be used for testing the Mutagen feature rather than for production work.

2020-07-14: development snapshot: https://desktop-stage.docker.com/mac/edge/46638/Docker.dmg

  • Exclude files from a mutagen sync based on the .dockerignore file.
  • Flush around docker exec as well as docker run for more reliable scripting.
  • Fix a bug which could result in duplicates in the list of synchronised directories.
  • Allow the sync to be bypassed by using :consistent or :cached. In particular this means if you want the previous :delegated behaviour before mutagen, switch to :cached. This