WARNING: May cause file losing.
- bash
- git
- php and composer with symplify/easy-coding-standard installed
- but feel free to replace
php vendor/bin/ecs check
commands with your own "coding standard fixer"
- but feel free to replace
- cowsay
- fortune
# Docker Compose | |
alias dcf='dcf(){ docker-compose -f docker-compose.${1}.yml ${@:2}; }; noglob dcf' # example: dcf local up -d | |
# Linux | |
alias webcam='f(){ if [ $@ = "on" ]; then sudo modprobe uvcvideo; else sudo modprobe uvcvideo -r; fi }; f' # example: webcam off | |
# Dev | |
alias browser_automation='f(){ chromium --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server="direct://" --proxy-bypass-list="*" ${1} }; noglob f' # example: browser_automation localhost | |
# PHP |
#!/bin/bash | |
# .git/hooks/pre-push | |
files=$(git diff --name-only --cached @{u} || git diff --name-only --cached $(git reflog show --no-abbrev $(git rev-parse --abbrev-ref HEAD) | tail -n1 | awk '{print $1;}')) &> /dev/null; | |
existingPhpFiles="" | |
for file in ${files}; do | |
[ -e "$file" ] && [ `mimetype -b "$file"` == "application/x-php" ] && existingPhpFiles="$existingPhpFiles$file "; | |
done |
WARNING: May cause file losing.
php vendor/bin/ecs check
commands with your own "coding standard fixer"#!/bin/bash | |
# title: Mic Toggle | |
# description: Mic Toggle | |
# author: Kevin Kaniaburka (coldic3) | |
# requirements: https://github.com/vlevit/notify-send.sh | |
# notes: Set keyboard shortcut to run this script eg. alt+m. | |
DIR="$( cd "$( dirname "$0" )" && pwd )" | |
if [ -z "`amixer set Capture toggle | grep off`" ]; then |
#!/bin/sh | |
# title: Battery Notification | |
# description: Display a popup when battery is low or fully charged. | |
# author: Kevin Kaniaburka (coldic3) | |
# requirements: acpi, yad | |
# notes: Put this script in autostart! | |
while true | |
do |