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
svn propset svn:ignore '*' sess/ |
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
:%s/^M//g (To get ^M: ctrl+V ctrl+M) |
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 strings on file | |
egrep --color '^string1|^string2' file | |
// Another grep |
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
$ ssh -L 3333:remote-host:5432 remote-host |
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
-- Show all tables | |
> SELECT TABLE_NAME FROM TABS | |
-- List fields from a table | |
> SELECT * | |
FROM user_tab_cols | |
WHERE table_name = 'table_name' | |
-- List some fields fields from a table | |
> SELECT column_name, data_type, FROM user_tab_cols WHERE table_name = 'table_name' |
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
// Lintian checks | |
lintian -IivEcm --pedantic *.changes | |
// Build twice in a row | |
09:13 < jwilk> xnox: "debian rules binary && debian/rules clean && debian/rules binary" | |
09:13 < jwilk> xnox: Or, alternatively: "dpkg-buildpackage && dpkg-buildpackage" | |
09:13 < jwilk> xnox: Or: "pbuilder --build --twice /path/to/.dsc" | |
$ sudo DIST=sid pbuilder create | |
$ sudo DIST=sid pbuilder build *dsc |
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
margin: top, right, bottom, left; |
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
// Empty a file from the command line | |
$ cat /dev/null > t | |
// Use last parameter | |
$ ls /home/acme/norad | |
$ rm !$ | |
#Send a file as an attachment (ssmtp previously configured) | |
mpack -s "Un subject" un_fichero mailto:[email protected] [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
<?php | |
/** | |
* | |
* @author nebiros | |
*/ | |
class App_Util | |
{ | |
public function cleanUpText( $input, $lowercase = true, $glue = "-" ) | |
{ |
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 python | |
import paramiko | |
paramiko.util.log_to_file('/tmp/paramiko.log') | |
host = "example.com" | |
port = 22 | |
transport = paramiko.Transport((host, port)) | |
username = "root" | |
password = "g00d" | |
transport.connect(username = username, password = password) | |
filepath = '/tmp/log.log' |
OlderNewer