This file contains hidden or 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
var digits = Math.floor(Math.random() * 9000000000) + 1000000000; |
This file contains hidden or 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
http://virtualboxes.org/doc/installing-guest-additions-on-debian/ | |
Follow these steps to install the Guest Additions on your Debian virtual machine: | |
1) Login as root; | |
2) Update your APT database with apt-get update; | |
3) Install the latest security updates with apt-get upgrade; | |
4) Install required packages with apt-get install build-essential module-assistant; | |
5) Configure your system for building kernel modules by running m-a prepare; | |
6) Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom. |
This file contains hidden or 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
http://wiki.centos.org/TipsAndTricks/BecomingRoot | |
-- su -- | |
su - <user> --> gives identity of <user> along with <user>'s environment | |
su <user> --> gives identity of <user> only | |
su - root --> gives identify ot root along with environment | |
su root --> gives identity of root only | |
su - --> gives identity of root along with environment |
This file contains hidden or 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
# vi /etc/sysconfig/netwokr-scripts/ifcfg-eth0 | |
DEVICE=eth0 | |
... | |
BOOTPROTO=static | |
IPADDR=192.168.1.123 | |
NETMASK=255.255.255.0 | |
... |
This file contains hidden or 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
1) # yum install postgresql postgresql-server | |
2) # chkconfig postgresql on | |
3) # service postgresql start | |
4) # sudo -s | |
5) # su - postgres | |
6) $ psql -d template1 -U postgres | |
7) ALTER USER postgres WITH PASSWORD '<newpassword>'; | |
8) \q | |
9) # cd /var/lib/psql/data | |
10) # vi pg_hba.conf |
This file contains hidden or 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
I ran into an issue updating VirtualBox Guest Additions on CentOS 6.5 guest. | |
This error specifically: | |
"Virtualbox Guest Additions installation, Windows System and desktop setup install_x11_startup_app: no script" | |
To resolve this error: | |
1) Remove any old VBoxGuestAdditions-x.x.xx directories in /opt/ | |
ex: # rm -rf /opt/VBoxGuestAdditions-4.3.08 | |
2) Remove symlinks /usr/lib64/VBoxGuestAdditions and /usr/share/VBoxGuestAdditions |
This file contains hidden or 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
$ cd /workspace/TECBlog <---- location of package.json file | |
$ npm install <---- install packages referenced in package.json (only need to run once) | |
$ grunt <---- run commands (theme changes, optimizations, etc.) in Gruntfile.js |
This file contains hidden or 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
<html> | |
<script type="text/javascript"> | |
/** | |
* Secure Hash Algorithm (SHA1) | |
* http://www.webtoolkit.info/ | |
**/ | |
function SHA1(msg) { | |
function rotate_left(n,s) { | |
var t4 = ( n<<s ) | (n>>>(32-s)); | |
return t4; |
This file contains hidden or 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
heroku pgbackups:capture DATABASE --app app1 --expire |
OlderNewer