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
#include <stdio.h> | |
int main(int argc, char* argv[]) { | |
printf("HelloWorld!!\n"); | |
return 0; | |
} |
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
ma <- function(x,n=5){filter(x,rep(1/n,n), sides=2)} |
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
Manual installation | |
1. copy dropbearmultin in /usr/sbin | |
2. create dropbearmulti aliases (call ./dropbearmulti) | |
Dropbear multi-purpose version 0.51 | |
Make a symlink pointing at this binary with one of the following names: | |
'dropbear' - the Dropbear server | |
'dbclient' or 'ssh' - the Dropbear client | |
'dropbearkey' - the key generator | |
'dropbearconvert' - the key converter |
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
#returns version (append 'M' if local workspace is modified) | |
svnversion | |
#otherwise | |
svn info <repo-url> --username <user> | grep 'Last Changed Rev' | awk '{ print $4; }' |
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
#include | |
#include <sys/ioctl.h> | |
#include | |
#include | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <net/if_arp.h> | |
#include <net/if.h> | |
#include | |
#include |
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
#from local to remote with local compression | |
#(less bandwidth, more local processing) | |
tar zcvf - /home/app | ssh root@192.168.1.1 "cat > /tmp/backup.tar.gz" | |
#from local to remote with remote compression | |
#(more bandwidth, less local processing) | |
tar cvf - /home/app | ssh root@192.168.1.1 "gzip > /tmp/backup.tar.gz" |
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
#create a gzip compressed archive | |
tar -czvf archive.tgz source1/ [source2/ ...] | |
#extract files from a gzip compressed archive | |
tar -xzvf archive.tgz | |
# c: create archive | |
# x: extract archive | |
# v: verbose | |
# z: compress/uncompress using gzip (*.tar.gz or *.tgz files) |
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
#back to the previous folder | |
cd - |
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
#visualizza thread creati dal processo pid | |
pidstat -p <pid> -t | |
#visualizza priorita' associata a processo/thread | |
chrt -p <pid> |
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
0 PRINT CHR$(205.5+RND(.));:GOTO |
OlderNewer