This file contains hidden or 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
// ==UserScript== | |
// @name Local Login - M2 | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author Sam Tay | |
// @match *.dev/*admin* | |
// ==/UserScript== | |
// Credentials |
This file contains hidden or 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
// ==UserScript== | |
// @name Local Login | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author Sam Tay | |
// @match *.dev/*admin* | |
// ==/UserScript== | |
// Set your username and password here |
This file contains hidden or 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
// ==UserScript== | |
//@name Attask Balance | |
//@version 0.1 | |
//@description Auto calculate hours balance | |
//@author Sam Tay | |
//@match https://blueacorn.attask-ondemand.com/task/view* | |
//@grant none | |
// ==/UserScript== | |
jQuery(document).ready(function($) { |
This file contains hidden or 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
cd ~/images-directory | |
mkdir resized | |
for f in *.png; do | |
convert $f -resize 800x600 -gravity center -background "rgba(0,0,0,0)" -extent 800x600 resized/$f | |
done | |
This file contains hidden or 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
### Put this file in ~/.oh-my-zsh/custom/plugins/skel/skel.plugin.zsh | |
### and add to ~/.zshrc -> plugins = (skel) | |
# compdef ba-skel | |
function _ba-skel() { | |
_detect_skel || return 1 | |
_files -W "$(_get_repo_root)/skel/bin" | |
} |
This file contains hidden or 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
# ------------------------------------------------------------------------------ | |
# FILE: m2.plugin.zsh | |
# DESCRIPTION: oh-my-zsh m2 autocomplete file. Adapted from composer plugin | |
# AUTHOR: Sam Tay ([email protected]) | |
# VERSION: 1.0.0 | |
# ------------------------------------------------------------------------------ | |
# Keep this up to date by checking bin-magento list --raw --no-ansi | |
_bin_magento_get_command_list () { | |
bin-magento --raw --no-ansi list | sed "s/[[:space:]].*//g" |
NewerOlder