Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
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
cd /tmp | |
curl -O http://www.primepage.de/stuff/vmware/vmblock-9.0.2-5.0.2-3.10.patch | |
curl -O http://www.primepage.de/stuff/vmware/vmnet-9.0.2-5.0.2-3.10.patch | |
curl -O http://www.primepage.de/stuff/vmware/vmblock.3.11.patch | |
cd /usr/lib/vmware/modules/source | |
tar -xvf vmblock.tar | |
tar -xvf vmnet.tar | |
patch -p0 -i /tmp/vmblock-9.0.2-5.0.2-3.10.patch | |
patch -p0 -i /tmp/vmnet-9.0.2-5.0.2-3.10.patch | |
cd vmblock-only |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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: http://stackoverflow.com/questions/2226920/how-to-monitor-clipboard-content-changes-in-c | |
/// <summary> | |
/// Provides notifications when the contents of the clipboard is updated. | |
/// </summary> | |
public sealed class ClipboardNotification | |
{ | |
/// <summary> | |
/// Occurs when the contents of the clipboard is updated. | |
/// </summary> |
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
http://xdebug.org/install.php#configure-php | |
http://blog.jetbrains.com/phpstorm/2013/08/debugger-configuration-validation-with-phpstorm/ | |
on CentOS: | |
1. You need to install PHP’s devel package for PHP commands execution | |
yum install php-devel | |
yum install php-pear | |
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself. | |
yum install gcc gcc-c++ autoconf automake |
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
/* | |
* exception handling routines (xp 32-bit, partial/incomplete) | |
* | |
* ntdll 5.1.2600.5755 | |
* v2 (updated jan 2011) | |
* | |
* - hawkes <hawkes@sota.gen.nz> | |
* | |
* useful link: http://www.eeye.com/html/resources/newsletters/vice/VI20060830.html | |
* |
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 python2.7 | |
# | |
# Author: Pat Litke (C) 2014 | |
# | |
# This code is released under the WTFPL V2 http://www.wtfpl.net/ | |
# | |
# License: | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
# |
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
# install build deps | |
sudo yum install gcc gcc-c++ make expat-devel gettext-devel libcurl-devel \ | |
libffi-devel libxml2-devel libxslt-devel libyaml-devel postgresql-server \ | |
postgresql-devel readline-devel sqlite-devel openssl-devel ruby-devel \ | |
rubygems autoconf automake bison libtool libpcap-devel | |
# install rbenv | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile |
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
# You should be using open-vm-tools instead of vmware tools, because package manager. | |
# Also I hate third parties that write out of /opt and /usr/local. | |
# open-vm-tools-desktop is badly packaged though, here are the missing links: | |
sudo apt-get install open-vm-tools open-vm-tools-desktop | |
# Reboot, and resize works, but no DnD nor clipboard | |
sudo mkdir /var/run/vmblock-fuse | |
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse" | |
# Now we have /run/vmblock-fuse populated. | |
# Adding an upstart rule in /etc/init is left as an exercise to the reader. |
layout | title |
---|---|
default |
A Great Vim Cheat Sheet |
#A Great Vim Cheat Sheet
Note: If you’re decent at vim and want your mind blown, check out Advanced Vim.