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
sudo add-apt-repository ppa:michael-gruz/canon-trunk | |
sudo apt-get update | |
sudo apt-get install cnijfilter-common | |
sudo apt-get install cnijfilter-mg5200series |
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
File & Directory chmod value: | |
1) stat --format '%a' <file/directory> | |
2) stat -c %a <file/directory> | |
File & Directory Sizes: | |
du -sh * |
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. In order to fully update your guest system, open a terminal and run | |
yum update | |
as root. | |
2. Install the GNU C compiler and the kernel development packages using | |
yum install gcc |
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 |
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
$ 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
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
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
# 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
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 |