- Identify/acquire a valid GitHub Personal Access Token (PAT)
- Set
GITHUB_USER
andGITHUB_API_TOKEN
e.g. via the following snippet
GITHUB_USER=<username>
GITHUB_API_TOKEN=<PAT goes here>
export GITHUB_USER GITHUB_API_TOKEN
CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; | |
-- Alternatively, you can use ‘CREATE SCHEMA’ instead of ‘CREATE DATABASE’: | |
-- CREATE SCHEMA `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
-- GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password'; | |
-- FLUSH PRIVILEGES; |
# 1. Open Script Editor | |
# 2. Paste the below into the editor | |
tell application "System Events" to tell process "SecurityAgent" | |
set value of text field 1 of window 1 to (the clipboard) | |
click button 1 of group 1 of window 1 | |
end tell | |
# 3. Execute action that pops the password dialog e.g. `ssh example.com` |
import {inject} from 'aurelia-dependency-injection'; | |
import {Loader} from 'aurelia-loader'; | |
@inject(Loader) | |
class Exists { | |
constructor(loader) { | |
this.loader = loader; | |
} | |
/** |
require 'formula' | |
class Neo4jEnterprise < Formula | |
homepage 'http://www.neo4j.org/' | |
url "http://dist.neo4j.org/neo4j-enterprise-3.1.3-unix.tar.gz" | |
sha256 'b784a61228bdc31cbc843009e4d36d3e2aee7662f8b40bd608b8759de26b77d5' | |
version "3.1.3" | |
devel do | |
url "http://dist.neo4j.org/neo4j-enterprise-3.1.3-unix.tar.gz" |
function traverse(o,func,parentPath = '') { | |
Object.keys(o).forEach(i => { | |
func.apply(this,[i,o[i],parentPath, o]); | |
if (o[i] !== null && typeof(o[i])=="object") { | |
//going one step down in the object tree!! | |
traverse(o[i],func, parentPath ? `${parentPath}:${o.clientId || o.name || i}` : o.clientId || o.name || i); | |
} | |
}); | |
} | |
Helpful snippets for OSX / MacOS
ram://2097152
is the size, calculated as follows: * 2048.
1gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://2097152`
2gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://4194304`
3gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://6291456`
4gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://8388608`
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Configures a static IP for a VMware Fusion (currently 8.0) virtual machine | |
# | |
# Usage: | |
# | |
# sudo ./vmware-static-ip.sh <path-to-vmwarevm-dir> | |
# eg. sudo ./vmware-static-ip.sh "/Volumes/Data/Virtual Machines/plusamp-ubuntu-16.04-amd64-docker.vmwarevm" | |
# |
The following terms are used throughout this agreement:
You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
Project - is an umbrella term that refers to any and all GrowNYC (d/b/a Council on the Environment of New York City) projects.
Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with GrowNYC, contributors or maintainers.