Skip to content

Instantly share code, notes, and snippets.

View emjayoh's full-sized avatar

Matt Ogram emjayoh

View GitHub Profile
@emjayoh
emjayoh / fix_openssl_catalina.sh
Last active January 13, 2021 08:48 — forked from llbbl/fix_openssl_catalina.sh
[Fix missing openssl files in catalina] oh openssl... #ssl #openssl #bash #catalina #macos
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@emjayoh
emjayoh / bash-history-to-zsh-history.js
Created December 23, 2019 05:16 — forked from ycarmel/bash-history-to-zsh-history.js
Bash history to Zsh history
// This is how I used it:
// $ node bash-history-to-zsh-history.js >> ~/.zsh_history
var fs = require("fs");
var a = fs.readFileSync(".bash_history");
var time = Date.now();
a.toString().split("\n").forEach(function(line){
console.log(": "+ (time++) + ":0;"+line);
});
@emjayoh
emjayoh / vscode-setup.md
Created November 17, 2019 04:17 — forked from adambisek/vscode-setup.md
Useful VSCode extensions/settings for React Development

Useful VSCode extensions/settings for React Development

Extensions

  • CoenraadS.bracket-pair-colorizer
  • DavidAnson.vscode-markdownlint
  • DeepScan.vscode-deepscan
  • Dennitz.vscode-generact
  • EditorConfig.EditorConfig
  • GregorBiswanger.package-watcher
#!/usr/bin/env sh
# Download lists, unpack and filter, write to gzipped file
curl -s https://www.iblocklist.com/lists.php \
| grep -A 2 Bluetack \
| sed -n "s/.*value='\(http:.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#' \
| gzip - > bt_blocklist.gz