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
# ------------------------------------------------------------------------------ | |
# 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" |
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
### 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 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 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 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 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 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 Better Indeed | |
// @version 0.1 | |
// @description Ignores sponsored links | |
// @author samtay | |
// @match http*://www.indeed.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
// ==UserScript== | |
// @name Free Surfline Forecasts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Unblurr restricted forecast data. They are dumb enough to actually put the real data in the DOM. | |
// @author samtay | |
// @match http*://www.surfline.com/* | |
// @grant none | |
// ==/UserScript== |
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
stack-ghcid() | |
{ | |
ghcid -c 'stack ghci '"$@"'' | |
} | |
_stack-ghcid() | |
{ | |
local CMDLINE | |
local IFS=$'\n' | |
export COMP_LINE="${COMP_LINE/stack-ghcid/'stack ghci'}" |
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
\usepackage{fancyhdr} | |
\usepackage{extramarks} | |
\usepackage{amsmath} | |
%\usepackage{amsthm} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
\usepackage{tikz} | |
\usepackage[plain]{algorithm} | |
\usepackage{algpseudocode} | |
\usepackage{physics} |
OlderNewer