See the blog post Quick and dirty PHP autoloading using Composer for details of how to use this.
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
#!/usr/bin/env bash | |
# Utility to change the connection method for a git repo. | |
# === Colour Definitions === | |
red='\e[0;31m' | |
green='\e[0;32m' | |
purple='\e[0;35m' | |
orange='\e[0;33m' | |
# No Color, i.e. turn off color |
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
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Build demo-app' | |
sh 'sh run_build_script.sh' | |
} | |
} |
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
#!/usr/bin/env python3 | |
import serial | |
import sys | |
import os | |
import threading | |
import traceback | |
if len(sys.argv) not in (2, 3): | |
print(f"Usage: {sys.argv[0]} <path> [baud]") |
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
$ iptool | |
lo (loopback; up; ID: 1): | |
127.0.0.1/8 (host) | |
::1/128 (host) | |
eth0 (Ethernet; up; ID: 2; MAC addr: 00:xx:xx:xx:yy:yy): | |
192.168.1.0/24 | |
1d67:bd71:56d9:13f3:5499:25b:cc84:f7e4/64 | |
wlan0 (Ethernet; disabled; ID: 3; MAC addr: 00:xx:xx:xx:yy:yy): |
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
incredulous weevil | |
armoured mist frog | |
sand blaster toad | |
quantum coherence oyster snail | |
waxy monkey frog | |
panda ant | |
monkey puzzle tree | |
spiral shit fish | |
phase-shifting macaque | |
great tit |
I hereby claim:
- I am unixnut on github.
- I am unixnut (https://keybase.io/unixnut) on keybase.
- I have a public key whose fingerprint is 46B4 C821 A27D ED28 A39E 02C4 268F B0E0 A12E 6D06
To claim this, I am signing this object:
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
if nc -z localhost http | |
then | |
echo port is open | |
else | |
echo port is closed | |
fi |
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
$ ps uww | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
alastair 4643 1105 0.0 959876 13656 pts/0 Dl+ 22:04 27:16 pbzip2 tmp/au04-bin.tar | |
... | |
$ time pbzip2 tmp/au04-bin.tar | |
real 9m49.925s | |
user 103m30.551s |
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 | |
# Use with GDM (SuSE, Ubuntu, RHEL, CentOS) | |
# place into /etc/gdm/Init/ | |
if [ -x /usr/local/sbin/console_vnc ] ; then | |
/usr/local/sbin/console_vnc | |
else | |
echo warning: /usr/local/sbin/console_vnc not found | |
fi |
NewerOlder