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
find . -name "*.avi" -print0 | xargs -0 -I {} mv {} . |
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
X-Mailman-Version: 2.1.13 | |
Precedence: list | |
List-Id: <list.ruxcon.org.au> | |
List-Unsubscribe: <https://ruxcon.org.au:9754/cgi-bin/mailman/options/list>, <mailto:[email protected]?subject=unsubscribe> | |
List-Archive: <https://ruxcon.org.au:9754/cgi-bin/mailman/private/list> | |
List-Post: <mailto:[email protected]> | |
List-Help: <mailto:[email protected]?subject=help> | |
List-Subscribe: <https://ruxcon.org.au:9754/cgi-bin/mailman/listinfo/list>, <mailto:[email protected]?subject=subscribe> | |
Sender: [email protected] | |
Errors-To: [email protected] |
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
mlambie@blaster:/root/bin$ snmpwalk -v1 -c public localhost 1.3.6.1.4.1.8072.1.3.2.4.1 -On | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.1 = STRING: /var/backups/pfsense/config-snarl-20110228.xml | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.2 = STRING: Mon Feb 28 10:00:01 +0800 2011 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.3 = STRING: 17320 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.1 = STRING: 0 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.2 = STRING: 0 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.3 = STRING: 0 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.1 = STRING: /var/backups/ironport/C160-00219BFB6D96-88YJDH1-20110228T115752.xml | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.2 = STRING: Mon Feb 28 11:57:52 +0800 2011 | |
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.3 = STRING: 10249 |
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
function authme { | |
ssh $1 'cat >>.ssh/authorized_keys' <~/.ssh/id_dsa.pub | |
} |
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
# Every hour force an update check | |
0 * * * * root /usr/lib/update-notifier/update-motd-updates-available --force > /dev/null 2>&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
<VirtualHost *:80> | |
ServerName www.domain.com | |
ServerSignature Off | |
RewriteEngine On | |
RewriteRule ^(.*)$ http://domain.com$1 [L,R=301] | |
</VirtualHost> |
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
mencoder -endpos 01:00:00 -ovc copy -oac copy input.avi -o first_hour.avi | |
mencoder -ss 01:00:00 -oac copy -ovc copy input.avi -o remainder.avi |
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
# The desired array | |
frequencies = ["hourly", "daily", "weekly", "monthly"] | |
# Shorthand conversion into array | |
frequencies = %w{hourly daily weekly monthly} | |
# Note the delimiter is not important, but must match | |
frequencies = %w"hourly daily weekly monthly" | |
frequencies = %w|hourly daily weekly monthly| |
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
mlambie@prowl:~$ grep mlambie /etc/passwd | |
mlambie:x:1000:1001:Matthew Lambie,,,:/home/mlambie:/bin/bash | |
mlambie@prowl:~$ grep mlambie /etc/passwd | sed 's/Matthew/Andrew/' | |
mlambie:x:1000:1001:Andrew Lambie,,,:/home/mlambie:/bin/bash |
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
** What did you do to get good at Rails? | |
ML: The only thing you can do is cut code. You can read all the books, | |
watch all the screencasts and subscribe to all the blogs in the world, | |
but until you start writing your own code, you won't get experience and | |
you won't become proficient in Rails. | |
** Who taught you what you know? | |
ML: Railscasts with Ryan Bates is the obvious one, but lately I've really |