This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: sudo ./restore_functionality.sh | |
#ps aux | grep sentinel | awk -F " +" '{print $2}' | xargs kill | |
while true; do | |
launchctl kill SIGKILL system/com.crowdstrike.falcond | |
launchctl kill SIGKILL system/com.crowdstrike.userdaemon | |
launchctl kill SIGKILL system/com.sentinelone.sentineld | |
launchctl kill SIGKILL system/com.sentinelone.sentineld-helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const stepout = (min, max, step = 1) => ( | |
Array( Math.floor((max - min) / step) ).fill().map( ( _, i ) => min + (i * step) ) | |
); | |
export const linspace = (min, max, n = 100) => { | |
const step = (max - min) / (n - 1); | |
return Array( n ).fill().map( ( _, i ) => min + (i * step) ); | |
}; | |
export default stepout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Immitates log rotate. | |
# You should change maxsize and rotatemax to your own use case. | |
rotate() { | |
local file=$1 | |
local rotatemax=9 # The max number of numbered files to keep around | |
local maxsize=2097152 # After the main file passes this threshold rotate occurs | |
local filesize=$(wc -c $file | cut -f 1 -d ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Ergodox layout", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-G1xx", | |
"plate": true | |
}, | |
[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ----------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <ezekiel@lcarsos.com> wrote this file. As long as you retain this notice | |
# you can do whatever you want with this stuff. If we meet some day, and you | |
# think this stuff is worth it, you can buy me a beer in return. | |
# Ezekiel Chopper | |
# ----------------------------------------------------------------------------- | |
if [[ "$#" -lt "1" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CIRCULAR_H | |
#define CIRCULAR_H | |
/** | |
* ---------------------------------------------------------------------------- | |
* "THE BEER-WARE LICENSE" (Revision 42): | |
* <ezekiel@lcarsos.com> wrote this file. As long as you retain this notice | |
* you can do whatever you want with this stuff. If we meet some day, and you | |
* think this stuff is worth it, you can buy me a beer in return. | |
* Ezekiel Chopper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lcarsos on github. | |
* I am lcarsos (https://keybase.io/lcarsos) on keybase. | |
* I have a public key whose fingerprint is C330 88F9 69CB F0FB 5BE1 91F7 3A22 335A 20F5 8908 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
$VIMPATH = "C:\Program Files (x86)\Vim\vim74\gvim.exe" | |
Set-Alias vi $VIMPATH | |
Set-Alias vim $VIMPATH | |
Set-Alias b Set-PSBreakpoint | |
# TODO define a function d to handle both these cases | |
Set-Alias d Remove-PSBreakpoint |