See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NAME="System eth0" | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static | |
NM_CONTROLLED=yes |
$ sudo sysctl -w net.inet.ip.forwarding=1 | |
$ sudo natd -interface en1 | |
$ sudo ipfw add divert natd ip from any to any via en1 |
=== VSFTPd with chroot and nginx compatibility === | |
* curator: Mayur Pipaliya [ mayur {at} pipaliya {dot} com ] | |
* copyleft (ɔ) distribute, alter and use at your own risk. | |
* apply necessary alternation accordingly. | |
~~ Install vsftpd, nginx & nano editor ~~ | |
$ sudo apt-get install vsftpd nginx nano |
<?php | |
/** | |
* Rule 2 : Naming | |
*/ | |
$mf = new Form(); //is bad | |
$monitoringForm = new Form(); //is good | |
//this is bad | |
foreach ($people as $x) { |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
#!/ffp/bin/bash | |
# https://linhost.info/2013/10/download-test-files/ | |
SOURCES=( | |
"http://ns0.multikabel.net/100mb.nul" | |
"http://servermars.nl/100mb.bin" | |
"http://speedtest.tweak.nl/100mb.bin" | |
"http://cachefly.cachefly.net/100mb.test" | |
"http://mirror.leaseweb.com/speedtest/100mb.bin" |
#################################################################################################### | |
# This function copies a folder (and optionally, its subfolders) | |
# | |
# When copying subfolders it calls itself recursively | |
# | |
# Requires WebClient object $webClient defined, e.g. $webClient = New-Object System.Net.WebClient | |
# | |
# Parameters: | |
# $source - The url of folder to copy, with trailing /, e.g. http://website/folder/structure/ | |
# $destination - The folder to copy $source to, with trailing \ e.g. D:\CopyOfStructure\ |
#!/bin/sh | |
# This pre-commit hook will prevent you from committing any line (or filename) containing | |
# the string NOCOMMIT. Use that tag in comments around source code you want to avoid | |
# accidentally committing, like temporary IP addresses or debug printfs. | |
# | |
# To add it to an existing repository, save it to .git/hooks/pre-commit (or append, if | |
# that file already exists). Remember to make executable (chmod +x ...) | |
# | |
# To automatically add this pre-commit hook to every repository you create or clone: |