Notes by voodoo

Displaying notes 21 - 30
Created by voodoo on August 12, 2011 12:47:50    Last update: August 12, 2011 13:03:00
Use fstream and seekg : #include <iostream> #include <fstream> i... With stat : #include <iostream> #include <sys/stat.h> ...
Created by voodoo on August 12, 2011 12:21:39    Last update: August 12, 2011 12:21:39
For OpenSSH , use the -X or -Y switch to enable X11 forwarding (GUI applications can be launched transparently): ssh -X -l username ssh_host # or ssh -Y -l u... This works only if the server side sshd is configured to allow X11 forwarding.
Created by voodoo on August 11, 2011 12:49:55    Last update: August 11, 2011 12:49:55
To diff two directories: diff dir1 dir2 To diff two directories recursively: diff -r dir1 dir2 Version of diff : $ diff -v diff (GNU diffutils) 2.8.1 Copyrig...
Created by voodoo on August 09, 2011 20:21:39    Last update: August 09, 2011 20:21:39
Use the -P switch to scp over an alternate port: $ scp -P 8022 srcFile user@remote_host:/remote/de...
Created by voodoo on August 08, 2011 19:54:34    Last update: August 09, 2011 07:23:45
To install the base qemu system: $ sudo apt-get install qemu But that only installs the emulators matching the host system ( i386 for example). To install the emulator for other architectures like mips , use: $ sudo apt-get install qemu-kvm-extras For Fedora, the command is: $ sudo yum install qemu-launcher
Created by voodoo on August 08, 2011 20:13:13    Last update: August 08, 2011 20:13:13
Find the package name: $ sudo apt-cache search pcre libpcre3 - Perl 5 ... Install the package: $ sudo apt-get install libpcre3-dev Reading pac...
Created by voodoo on August 08, 2011 13:03:53    Last update: August 08, 2011 13:04:12
This error was caused my a missing include ( snprintf was defined in cstdio ). To fix, just add: #include <cstdio>
Created by voodoo on August 08, 2011 12:28:16    Last update: August 08, 2011 12:28:16
$ sudo yum whatprovides pcre-devel Loaded plugi...
Created by voodoo on July 21, 2011 08:12:39    Last update: July 21, 2011 08:12:39
RFC 1918 reserved three blocks of IP addresses for private internets. These come in handy when you create an internal IP network. Range RFC 1918 Name Description 10.0.0.0 - 10.255.255.255 24-bit block A single class A network number 172.16.0.0 - 172.31.255.255 20-bit block 16 contiguous class B network numbers 192.168.0.0 - 192.168.255.255 16-bit block 256 contiguous class C network numbers
Created by voodoo on June 21, 2011 08:19:33    Last update: June 21, 2011 08:34:28
Got "base64: invalid input" error: $ base64 -d base64_encoded.txt >original.bin ba... which can be easily dismissed as "input is invalid base64 encoded" or "partial input". But I know it's valid base64 encoded input! The problem was, the input was base64 encoded on Windows! The error goes away after converting to Unix format with dos2unix . dos2unix < base64_encoded.txt | base64 -d >origina... Version of base64 used: $ base64 --version base64 (GNU coreutils) 8.5 ...
Previous  1 2 3 4 5 6 7 8 9 10 Next