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
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
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
<?php | |
###################################################################### | |
# Phonehome script to obtain IP of home router | |
# | |
# Call with wget from your internal machine | |
# with the command: | |
# wget -t 10 http://yourwebsite/phonehome.php?c=1234&cmd=1 -O /dev/null | |
# | |
###################################################################### | |
$SY = array(); |
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
#!/bin/env sh | |
lines=$(tput lines) | |
cols=$(tput cols) | |
awkscript=' | |
{ | |
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()" | |
lines=$1 |
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
#!/bin/sh | |
git diff --quiet --exit-code | |
if [ $? -ne 0 ]; then | |
echo "Cannot run grrr if you have uncommited changes" | |
exit -1; | |
fi | |
current_branch=`git rev-parse --abbrev-ref HEAD` | |
if [ "$current_branch" == "HEAD" ]; then |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
Use case: Database entries are represented in a table. By grabbing and moving a row up or down the table, you can change the entries' order/position. The changes are submitted automatically via ajax.
- Uses jQueryUI (custom download: sortable is needed)
- newly created elements are added to the top (see route /jobs/create)
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
:: Automatically add ssh keys when cmder starts | |
::cmder\1.1.4.1\vendor\init.bat | |
:: Run ssh-agent initialisation | |
@if "%SSH_AGENT_PID%"=="" ( | |
@bash C:\opt\cmder\1.1.4.1\bin\ssh-agent-init.sh | |
@call ssh-agent-setter.cmd | |
@del ssh-agent-setter.cmd | |
ssh-add %USERPROFILE%/.ssh/20150505_rsa | |
) else ( |
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
<?php | |
use GuzzleHttp\Client; | |
use Config; //using Laravel's Config facade | |
/* | |
|-------------------------------------------------------------------------- | |
| Usage: | |
| | |
| $slack = new Slack; |
OlderNewer