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
| # Attach to a running ssh-agent or start a new one | |
| if [ `find /tmp -maxdepth 1 -name "ssh-*" -user ${USER} | wc -l` == 1 ] ; then | |
| echo "Found ssh-agent, attaching.." | |
| SSHDIR=`find /tmp -maxdepth 1 -name "ssh-*" -user ${USER}` | |
| SSH_AUTH_SOCK=`ls ${SSHDIR}/agent*` ; export SSH_AUTH_SOCK | |
| SSH_AGENT_PID=`echo ${SSH_AUTH_SOCK} | awk -F"." '{print $2+1}'` ; export SSH_AGENT_PID | |
| echo "Agent pid ${SSH_AGENT_PID}" | |
| elif [ `find /tmp -maxdepth 1 -name "ssh-*" -user ${USER} | wc -l` == 0 ] ; then | |
| echo "no ssh-agent found, starting.." | |
| eval `ssh-agent -t 86400` |
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
| #!/bin/bash | |
| if [ $# -ne 3 ] ; then | |
| echo "usage: $0 <interface> <ip/cidr> <gateway>" | |
| echo "ie: $0 eno1 10.0.0.25/24 10.0.0.1" | |
| exit 1 | |
| fi | |
| INTERFACE=$1 | |
| IP=$2 |
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
| javascript:(function(){ | |
| allowCopyAndPaste = function(e){ | |
| e.stopImmediatePropagation(); | |
| return true; | |
| }; | |
| document.addEventListener('copy', allowCopyAndPaste, true); | |
| document.addEventListener('paste', allowCopyAndPaste, true); | |
| document.addEventListener('onpaste', allowCopyAndPaste, true); | |
| })(); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>JavaScript Clock with Offset</title> | |
| </head> | |
| <body onload="startTime()"> | |
| <h2>Offset Clock</h2> | |
| <div id="txt" style="font-size: 24px;"></div> | |
| <script> |
OlderNewer