This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"strconv" | |
) | |
func cf(a string) (s string) { | |
var e bytes.Buffer | |
r, _ := strconv.ParseInt(a[0:2], 16, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcode-select --install | |
brew install bash | |
echo /usr/local/bin/bash >> /etc/shells | |
chsh -s /usr/local/bin/bash | |
brew install awscli git ssh-copy-id wget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 704F6787-1C66-4D63-3838-CE1E576A94BF | |
Thu Dec 1 20:33:33 2016 | |
*** MCA Error Report *** | |
CPU Machine Check Architecture Error Dump (CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz, CPUID: 0x506E3) | |
CATERR detected! No MCA data found. | |
*** Device Tree *** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Installing dependencies for mitmproxy: pkg-config, sqlite, gdbm, openssl, xz, python3, openssl@1.1, protobuf | |
pkg-config | |
sqlite | |
gdbm | |
openssl | |
xz | |
python3 | |
openssl@1.1 | |
protobuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
ssid = 'Delorean' | |
passphrase = 'hoverboardsdonotworkonwater' | |
puts OpenSSL::PKCS5.pbkdf2_hmac_sha1(passphrase, ssid, 4096, 32).unpack("H*").first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Documentation at https://www.sublimetext.com/docs/themes.html | |
{ | |
"variables": {}, | |
"rules": [ | |
// Hide sidebar heading | |
{ | |
"class": "sidebar_heading", | |
"opacity": 0.0, | |
"font.size": 0, | |
"fg": "#101010", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package styles | |
import ( | |
"github.com/alecthomas/chroma" | |
) | |
// Dracula Style | |
var Dracula = Register(chroma.MustNewStyle("dracula", chroma.StyleEntries{ | |
chroma.Comment: "#6272a4", | |
chroma.CommentHashbang: "#6272a4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Hello React</title> | |
<script src="https://unpkg.com/react@^16/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/react-dom@^16/umd/react-dom.production.min.js"></script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE=/var/www/domain.com | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
commit=$(git rev-parse --short HEAD) | |
BRANCH_DIR="$BASE/$branch" |