Skip to content

Instantly share code, notes, and snippets.

View emjayoh's full-sized avatar

Matt Ogram emjayoh

View GitHub Profile
@emjayoh
emjayoh / boxScript.txt
Created January 9, 2017 00:50
Box Starter Script
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
#!/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
@emjayoh
emjayoh / dell-xps-archlinux-install
Created January 26, 2018 08:21
Install ArchLinux on Dell XPS 13 (9360)
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swiss-french keymap
@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
{
"swagger": "2.0",
"info": {
"description": "This is the documentation for the new notes micro-service (MVP).",
"version": "0.1.0",
"title": "Notes",
"contact": {
"email": "rafaellopez@reps2.com"
}
},
#!/bin/bash
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "master" ]; then
echo "WARNING: You are on branch $current_branch, NOT master."
fi
echo -e "Fetching merged branches...\n"
git remote update --prune
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$")
#!/bin/bash
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "master" ]; then
echo "WARNING: You are on branch $current_branch, NOT master."
fi
echo -e "Fetching merged branches...\n"
git remote update --prune
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$")
@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 / 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