An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| # Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
| Hi everyone, I'm Chris Wanstrath. | |
| When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
| then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
| to say that's interesting? Something about Ruby, perhaps. Maybe the | |
| future of it. The future of something, at least. That sounds | |
| keynote-y. | |
| #Bring in the boto library | |
| import boto | |
| #Load the configuration variables from your .boto file | |
| config = boto.config | |
| """ | |
| FAIL. | |
| """" |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| #include<stdio.h> | |
| #include<sys/time.h> | |
| int main() | |
| { | |
| int i; | |
| for(i =0;i < 32; i++) | |
| func(i); | |
| return 0; | |
| } |
| package no.nsb.ombord; | |
| import java.net.DatagramPacket; | |
| import java.net.DatagramSocket; | |
| import java.net.InetAddress; | |
| import java.net.SocketTimeoutException; | |
| import java.net.UnknownHostException; | |
| import org.apache.http.util.ExceptionUtils; |
| // | |
| // libuuid sample program | |
| // | |
| // library install for debian | |
| // $ sudo apt-get install uuid-dev | |
| // | |
| // compile | |
| // $ gcc uuid_test.c -luuid -o uuid_test | |
| // | |
| #include <stdio.h> |
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
| #!/bin/sh | |
| if [ $(ps aux | grep $USER | grep node | grep -v grep | wc -l | tr -s "\n") -eq 0 ] | |
| then | |
| export PATH=/usr/local/bin:$PATH | |
| export NODE_ENV=production | |
| cd /path/to/app && forever --spinSleepTime 10000 start server.js >> forever.log 2>&1 | |
| fi |