Skip to content

Instantly share code, notes, and snippets.

View FernandoBoza's full-sized avatar
👋

Fernando Boza FernandoBoza

👋
View GitHub Profile
@ericboehs
ericboehs / gov.va.socks.plist
Created March 9, 2021 18:23
LaunchAgent for continually connecting to SOCKS via autossh
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>gov.va.socks</string>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
// time complexity: O(2n) = O(n) = linear;
// space complexity: O(1) contant;
const longestUniformSubstring = function(s) {
let length = s.length;
let letter = s[0];
let startIndex = 0;
let endIndex = 0;
let resultIndex = 0;
let resultLength = 0;
@timotgl
timotgl / uninstall-razer-synapse.sh
Last active April 16, 2025 13:33
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater
@nick-jonas
nick-jonas / waves-css-anim.scss
Created March 27, 2014 22:39
Animating waves with CSS keyframes
@import "compass/css3/animation";
@import "compass/css3/transform";
$waveWidth:998px;
@include keyframes(waves){
0%{
left:0;
}
100%{