Skip to content

Instantly share code, notes, and snippets.

View shazron's full-sized avatar
😆

Shazron Abdullah shazron

😆
View GitHub Profile
@shazron
shazron / .zshrc
Created March 23, 2022 07:36
iterm2-add-working-directory-name-as-tab-title
if [ $ITERM_SESSION_ID ]; then
precmd() {
echo -ne "\033]0;${PWD##*/}\007"
}
fi
@shazron
shazron / launch.json
Created January 9, 2020 04:48
vscode jest launch config (excludes node_modules and internal node files)
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
@shazron
shazron / findgrep
Created November 28, 2019 17:14
Recursively find files of a certain filename, and search for a string in the file. Exclude folders such as node_modules
find . -type d -name FOLDER_TO_EXCLUDE_FROM_SEARCH -prune -o -type f -name FILENAME_TO_FIND -print | xargs grep PATTERN_TO_SEARCH_IN_FILE
@shazron
shazron / aoe2hd.md
Created May 16, 2019 03:03 — forked from yocontra/aoe2hd.md
Age of Empires II HD - For Mac OSX
@shazron
shazron / delete_all_greenkeeper_branches.sh
Last active April 8, 2021 13:44
Delete all Greenkeeper branches
#!/bin/bash
# Description:
# Delete all `greenkeeper/*` branches of your remote.
# Instructions:
# Run the script with the `--help` flag.
ORIGIN=origin
DRY_RUN=0
THIS=`basename "$0"`
@shazron
shazron / update_all.sh
Last active September 4, 2018 07:34
Update named repos in a Github Organization
#! /bin/bash
# simple update, nothing fancy, gets things done
# run from the parent folder CWD (all repos will are siblings)
# EDIT: this is the Org for the repos
GH_ORG="adobe"
# EDIT: this is the base url for the repos (Github.com)
BASE_URL="https://github.com/$GH_ORG"
# EDIT: add the repo name to this list
@shazron
shazron / cordova-ios-webview-roadmap.csv
Created August 2, 2018 14:43
Cordova iOS WebView Roadmap
Cordova iOS 4 >>> Cordova iOS 5 >>> Cordova iOS 6
UIWebView deprecated UIWebView removed
WKWebView Engine Plugin Integrated Into Platform WKWebView Engine Plugin only
Bridge WebView Plugin Added Bridge WebView Plugin Removed
@shazron
shazron / openwhisk_60s_runc_workaround.md
Last active January 23, 2018 04:26
OpenWhisk in 60 Seconds (runc workaround)
@shazron
shazron / getUserMedia is not supported in WKWebView.brisk
Created July 27, 2017 21:04
Brisk file to dupe an Apple Radar for "getUserMedia is not supported in WKWebView"
{
"reproducibility_id": 1,
"expected": "Access to the microphone and camera",
"description": "One of the big announcements for the web in iOS 11 is support for getUserMedia in Safari (see https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Safari_11_0/Safari_11_0.html#//apple_ref/doc/uid/TP40014305-CH13-SW8 for announcement). Sadly, it appears that getUserMedia is not enabled for applications that use a WKWebView.\n",
"configuration": "iOS 11 beta 4",
"product_id": 579020,
"attachments": [
],
"steps": "Call `getUserMedia` in a page loaded into a WKWebView",
@shazron
shazron / gist:4975c0beaa6537c2e74bbe3ecaed109f
Created March 29, 2017 23:38
Creative SoundBlaster E1 crash log on macOS Sierra 10.12.4
Anonymous UUID: E7AB4B75-313B-7007-77E9-E813615CA3EC
Wed Mar 29 16:29:52 2017
*** Panic Report ***
panic(cpu 2 caller 0xffffff800ae011bd): Kernel trap at 0xffffff7f8b69612d, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000d7c, CR3: 0x000000044962b04d, CR4: 0x00000000001627e0
RAX: 0x0000000000000100, RBX: 0xffffff81a82ce000, RCX: 0x0000000000000100, RDX: 0x0000000000000100
RSP: 0xffffff91f66db6d0, RBP: 0xffffff91f66db740, RSI: 0xffffff91f66db768, RDI: 0x0000000000000000
R8: 0x0000000000000002, R9: 0xffffff81a82d462c, R10: 0xffffff81a82d3624, R11: 0x0000000000000001