Skip to content

Instantly share code, notes, and snippets.

View ekilah's full-sized avatar

Monroe Ekilah ekilah

View GitHub Profile
@ekilah
ekilah / tsserver-deal-web-5.1.3.log
Last active October 24, 2023 00:40
TS error logs for https://github.com/microsoft/TypeScript/issues/55673. I added whitespace to `tsconfig.json` at about `17:36:16`
This file has been truncated, but you can view the full file.
Info 0 [17:35:36.607] Starting TS Server
Info 1 [17:35:36.607] Version: 5.1.3
Info 2 [17:35:36.607] Arguments: /Users/monroe/.nvm/versions/node/v16.15.0/bin/node /Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/js-language-service.js -id=1698107736441 -debug-name=typescript --pluginProbeLocations /Users/monroe/dev/ekilah/deal-web,/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/typescript --globalPlugins tsc-ide-plugin
Info 3 [17:35:36.607] Platform: darwin NodeVersion: v16.15.0 CaseSensitive: false
Info 4 [17:35:36.607] ServerMode: undefined hasUnknownServerMode: undefined
Info 5 [17:35:36.614] Binding...
Err 6 [17:35:36.617] Process: Require is used /Users/monroe/dev/ekilah/deal-web/node_modules/typescript/lib/
Info 7 [17:35:36.638] event:
{
"seq": 0,
This file has been truncated, but you can view the full file.
Info 0 [16:40:35.653] Starting TS Server
Info 1 [16:40:35.654] Version: 5.2.2
Info 2 [16:40:35.654] Arguments: /Users/monroe/.nvm/versions/node/v16.15.0/bin/node /Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/js-language-service.js -id=1698104435420 -debug-name=typescript --pluginProbeLocations /Users/monroe/dev/ekilah/deal-web,/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/typescript --globalPlugins tsc-ide-plugin
Info 3 [16:40:35.654] Platform: darwin NodeVersion: v16.15.0 CaseSensitive: false
Info 4 [16:40:35.654] ServerMode: undefined hasUnknownServerMode: undefined
Info 5 [16:40:35.663] Binding...
Err 6 [16:40:35.667] Process: Require is used /Users/monroe/dev/ekilah/deal-web/node_modules/typescript/lib/
Info 7 [16:40:35.708] event:
{
"seq": 0,
@ekilah
ekilah / .gitconfig
Created January 5, 2018 07:34
git config
[user]
name = YOUR NAME
email = YOUR@EMAIL.COM
[color]
ui = auto
[push]
default = simple
[alias]
co = checkout
st = status
@ekilah
ekilah / .bashrc
Last active December 1, 2021 20:25
git tools: terminal prompt, editor switching, & autocomplete
# git prompt start
alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'"
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
@ekilah
ekilah / mouse_script.lua
Last active July 18, 2023 16:11
Logitech Gaming Software Lua script to use a mouse (ie: G502) to toggle leaning in games that don't let you set leaning to a toggle, instead of a hold, in-game
-- this script will toggle Q and E with the g502's left (11) and right (10) scroll wheel buttons.
-- that includes disabling one when the other is pressed, and vice versa.
isLeftPressed = false
isRightPressed = false
function OnEvent(event, arg)
--OutputLogMessage("event = %s, arg = %s\n", event, arg);
-- left pressed
@ekilah
ekilah / .gitconfig
Created August 22, 2016 09:02
Git alias for amending the last commit with all current changes, without having to edit the commit message
[alias]
amend = !git add . && git commit --amend --no-edit
@ekilah
ekilah / .monitrc
Created July 31, 2016 19:28
monit wrapper script to start a non-daemonized process like lita
check process lita with pidfile /usr/local/var/run/lita.pid
start program = "/full/path/to/litadaemonscript/litadaemon start"
stop program = "/full/path/to/litadaemonscript/litadaemon stop"
@ekilah
ekilah / backup_slack.rb
Created January 7, 2016 23:25
save slack history
#!/usr/bin/env ruby
require 'httparty'
require 'json'
require 'ap'
require 'fileutils'
# require 'Date'
API_TOKEN = "FILL THIS IN WITH YOUR API KEY"
BASE_URL = "https://slack.com/api/"
@ekilah
ekilah / admob_workaround.m
Last active November 4, 2021 19:32
admob video ads seem to use `[MPRemoteCommandCenter sharedCenter]` and `[MPNowPlayingInfoCenter defaultCenter]`, which messes with apps that play music using the same tools. Using Heyzap Mediation, you can attempt to get around this issue using our network callbacks to know when AdMob fetches and finishes, then manually reset things. shared for h…
// register for heyzap ad network callbacks as early as you can
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(admobCallbackNotification:) name:HZMediationNetworkCallbackNotification object:@"admob"];
- (void) adMobCallbackNotification:(NSNotification *)notif {
NSString *cosnt callback = notif.userInfo[HZNetworkCallbackNameUserInfoKey];
if ([callback isEqualToString:HZNetworkCallbackAvailable] || [callback isEqualToString:HZNetworkCallbackDismiss]) {
@ekilah
ekilah / .gitconfig
Created August 27, 2015 23:09
Git alias to push current branch to upstream branch of the same name
[alias]
pushup = "!gitbranchname() { git symbolic-ref --short HEAD; }; gitpushupstream() { git push --set-upstream origin `gitbranchname`; }; gitpushupstream"