Skip to content

Instantly share code, notes, and snippets.

View eculver's full-sized avatar
🧠
Braining

Evan Culver eculver

🧠
Braining
View GitHub Profile
@kachayev
kachayev / concurrency-in-go.md
Last active September 23, 2025 16:12
Channels Are Not Enough or Why Pipelining Is Not That Easy
@rf
rf / convert.js
Last active May 20, 2016 18:15
Symbolicate linux perf output of a node program using the v8 log
var fs = require('fs');
var infile = process.argv[2];
if (!infile) return console.log("need infile");
var data = fs.readFileSync(infile, 'utf8').split('\n');
var outlines = [];
data.forEach(function(item) {
@stupidbodo
stupidbodo / aes_encryption.go
Last active November 29, 2025 03:10
AES Encryption Example in Golang
// Playbook - http://play.golang.org/p/3wFl4lacjX
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
@p3t3r67x0
p3t3r67x0 / openssl_commands.md
Last active May 15, 2025 17:31
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@sdorra
sdorra / keys.go
Created April 17, 2016 19:31
Golang RSA Key Generation
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active February 2, 2026 14:38
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@tuan
tuan / host.js
Created November 1, 2016 17:40
RxJs and window's postMessage for intercommunication
import * as Rx from "rxjs/Rx";
import * as uuid from "uuid";
import {IRequest} from "./common";
let button = document.querySelector("button");
let iframe = document.createElement("iframe");
iframe.src = "/proxy.html";
document.body.appendChild(iframe);
# Like "git branch", but also show colorized (and aligned!) branch descriptions.
# Git branch descriptions can be created using "git branch --edit-description".
gb() {
maxlen=0
branches=$(git for-each-ref --format='%(refname)' refs/heads/ | sed 's|refs/heads/||')
for branch in $branches; do
len=${#branch}
if [ "$len" -gt "$maxlen" ]; then
maxlen="$len"
fi
@statico
statico / 00_statico.link_README.md
Last active September 24, 2023 12:15
Ian's Personal Short Link Bookmark Service
@jorgerance
jorgerance / vars_colours.sh
Created January 14, 2020 03:38
[colors.sh] bash helper for using colors #cli #helper #colors #output
#!/usr/bin/env bash
# Define ANSI color escape code
# color <ansi_color_code>
color() { printf "\033[${1}m"; }
# No Color
NO_COLOR=$(color "0")
NC=${NO_COLOR}