As configured in my dotfiles.
start new:
tmux
start new with session name:
| #ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ([^@]+@[^@]+)# | |
| // this is the most simple case. see more complete regexps in coments below | |
| // http://generator.my-addr.com/generate_ssh_public_rsa_key-private_rsa_key-ssh_pair_online_tool.php | |
| // https://help.ubuntu.com/community/SSH/OpenSSH/Keys | |
| // http://www.ietf.org/rfc/rfc4716.txt |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Since you're using CentOS 5, the default package manager is yum, not apt-get. To install a program using it, you'd normally use the following command:
$ sudo yum install <packagename>
However, when trying to install git this way, you'll encounter the following error on CentOS 5:
| ### INSTALLATION NOTES ### | |
| # 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
| # 2. brew install zsh | |
| # 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
| # 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
| # 5. Install iTerm2 | |
| # 6. In iTerm2 preferences for your profile set: | |
| # Character Encoding: Unicode (UTF-8) | |
| # Report Terminal Type: xterm-256color | |
| # 7. Put itunesartist and itunestrack into PATH |
| # PowerShell Drag & Drop sample | |
| # Usage: | |
| # powershell -sta -file dragdrop.ps1 | |
| # (-sta flag is required) | |
| # | |
| Function DragDropSample() { | |
| [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
| $form = New-Object Windows.Forms.Form | |
| $form.text = "Drag&Drop sample" | |
| $listBox = New-Object Windows.Forms.ListBox |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| console.log("got here"); | |
| var page = require('webpage').create(); | |
| page.onConsoleMessage = function(msg) { | |
| console.log(msg); | |
| }; | |
| page.open("http://facebook.com", function(status) { | |
| if ( status === "success" ) { |
The posts people write in blogs can be classified in two groups:
While first ones can be managed using standart blog engines (livejournal, blogger, etc) via «Edit post» option, that’s hardly
| @{ | |
| # MODULE | |
| Description = 'LINQ for PowerShell' | |
| ModuleVersion = '3.0' | |
| GUID = '03BDA80F-0831-406E-B6AE-59E32D73F190' | |
| # AUTHOR | |
| Author = 'Josh Einstein' | |
| CompanyName = 'Einstein Technologies' |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.