start new:
tmux
start new with session name:
tmux new -s myname
diff -r 55cd783bbc2d src/os_win32.c | |
--- a/src/os_win32.c Sun Jan 05 13:29:26 2014 +0100 | |
+++ b/src/os_win32.c Wed Jan 08 15:32:18 2014 +0900 | |
@@ -232,6 +232,67 @@ | |
static char_u *exe_path = NULL; | |
+ static BOOL | |
+read_console_input( | |
+ HANDLE hConsoleInput, |
<?php | |
function nonBlockingReadLineFromStdIn() | |
{ | |
$read = array(STDIN); | |
$write = array(); | |
$except = array(); | |
var_dump('Before stream select.'); | |
$result = stream_select($read, $write, $except, 0); | |
var_dump('After stream select.', $result); |
Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.
--- | |
-- This file is intended to be used with cmder | |
-- http://bliker.github.io/cmder/ | |
-- | |
-- Replace your existing <path_to_cmder>\config\git.lua with this file | |
-- This will append the branch status to your prompt, e.g. [ahead 1, behind 2] | |
-- It basically takes the output of git status -sb and appends it (with coloring) to the cmder prompt (before the lambda) | |
--- | |
--- |
There is a long standing issue in Ruby where the net/http library by default does not check the validity of an SSL certificate during a TLS handshake. Rather than deal with the underlying problem (a missing certificate authority, a self-signed certificate, etc.) one tends to see bad hacks everywhere. This can lead to problems down the road.
From what I can see the OpenSSL library that Rails Installer delivers has no certificate authorities defined. So, let's go fetch some from the curl website. And since this is for ruby, why don't we download and install the file with a ruby script?
Let's start by getting it out on the table: Sublime Text is great, and version 3 should no longer be considered "abandonware" as of build 3065. Sublime Text served me very, very well over the years. That said, trying out new things is a major part of leveling-up, and in that vein Vim deserves a go. (And have you seen some of those thoughtbot guys flying around in Vim? It's awesome!)
Getting Vim up-and-running on your Windows machine doesn't have to be an all-day project. In this post, we'll walk through:
It's a common confusion about terminal colours... Actually we have this:
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
サポートしない、というのが一番楽だとは思いますが…
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests | |