Skip to content

Instantly share code, notes, and snippets.


Edgar Gonzalez edgar

View GitHub Profile
edgar /
Created Dec 31, 2021 — forked from havenokarma/
Endpoint Security VPN FULL start/stop script for Mac OS X
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
# Usage: ./
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script.
edgar / Yarn Upgrade Indirect
Created Feb 4, 2021 — forked from pftg/Yarn Upgrade Indirect
Update indirect dependencies in yarn.lock. `ruby rejuvenation.rb & yarn install`
View Yarn Upgrade Indirect
$> curl "" | ruby


$> ruby rejuvenation.rb
$> yarn install
edgar / docker-compose.yml
Created Aug 13, 2020
Docker compose file to run Minecraft Bedrock servr
View docker-compose.yml
version: '3.4'
image: itzg/minecraft-bedrock-server
GAMEMODE: creative
LEVEL_SEED: "2006386677"
edgar / openconnect_vpn.zsh
Created Aug 10, 2020
ZSH functions to start/stop OpenConnect
View openconnect_vpn.zsh
# ZSH functions to start/stop OpenConnect VPN client
# In my setup the VPN username is the same as $USER
export VPN_HOST=<your VPN host>
function vpn-up() {
if [[ -z $VPN_HOST ]]
edgar / resque.rake
Created Jul 2, 2020 — forked from ewherrmann/resque.rake
Collection of Resque related custom rake tasks from around the web
View resque.rake
require 'resque/tasks'
namespace :resque do
def del(key)
Resque.redis.keys(key).each { |k| Resque.redis.del(k) }
desc "Resque setup according to installation guide"
task :setup => :environment
edgar / docker-compose.yml
Created Apr 21, 2020 — forked from seanhandley/docker-compose.yml
How To Set Up Docker For Mac (Mojave) with Native NFS
View docker-compose.yml
version: '2'
- "nfsmount:${CONTAINER_DIR}"
driver: local
edgar / latency.txt
Created Aug 12, 2018 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers (~2012)
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
edgar / The Technical Interview Cheat
Created Jul 2, 2018 — forked from tsiege/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
edgar /
Created May 18, 2018
Use Markdown as default language for new docs.
# Add this script in your SublimeText Packages/User directory
import sublime, sublime_plugin
class DefaultSyntaxCommand(sublime_plugin.EventListener):
def on_new(self, view):