Skip to content

Instantly share code, notes, and snippets.

package main
import(
. "bytes"
"crypto/aes"
"crypto/rand"
. "crypto/block"
"os"
"io"
"io/ioutil"
p: (obj) ->
if console and console.debug
console.debug obj
Array::index: (member) ->
for element, index in this
if element is member
return index
null
> cat ~/.rvm/log/ruby-1.9.1-p376/make.error.log
[2010-07-19 19:09:49] make
eval.c: In function ‘ruby_cleanup’:
eval.c:139:5: warning: passing argument 1 of ‘ruby_init_stack’ discards qualifiers from pointer target type
./include/ruby/ruby.h:995:6: note: expected ‘VALUE *’ but argument is of type ‘volatile VALUE *’
vm_dump.c:240:1: warning: ‘vm_stack_dump_each’ defined but not used
ossl.c:118:1: error: expected ‘)’ before ‘*’ token
ossl.c:119:1: error: expected ‘)’ before ‘*’ token
make[1]: *** [ossl.o] Error 1
make: *** [mkmain.sh] Error 1
@kiko
kiko / sync
Created August 21, 2010 17:00 — forked from manveru/sync
#!/usr/bin/env ruby
require 'open-uri'
require 'cgi'
require 'pp'
require 'yaml'
require 'rake'
module GitHub
module Connectivity
diff --git a/lib/ver/methods/clipboard.rb b/lib/ver/methods/clipboard.rb
index e29267f..bbde245 100644
--- a/lib/ver/methods/clipboard.rb
+++ b/lib/ver/methods/clipboard.rb
@@ -71,7 +71,7 @@ module VER
record.insert(:insert, string)
buffer.insert = buffer.at_insert.linestart
else
- pastie_string_after!(record, count, string)
+ pastie_string_after!(buffer, record, count, string)
diff --git a/src/command_network.cc b/src/command_network.cc
index c2e7963..7390afa 100644
--- a/src/command_network.cc
+++ b/src/command_network.cc
@@ -618,6 +618,15 @@ initialize_command_network() {
CMD2_VAR_BOOL ("log.handshake", false);
CMD2_VAR_STRING ("log.tracker", "");
+ CMD2_ANY ("colors.done_fg_color", std::bind(&ui::Root::get_done_fg_color, control->ui()));
+ CMD2_ANY_VALUE_V ("colors.done_fg_color.set", std::bind(&ui::Root::set_done_fg_color, control->ui(), std::placeholders::_2));
function! g:EditFileInNewTerm(file_name)
call system("urxvtc -e vim ".a:file_name." &")
endfunction
command! -complete=file -nargs=1 E call g:EditFileInNewTerm(<f-args>)
diff --git a/chroot-bin/croutonclip b/chroot-bin/croutonclip
index a280419..226f26d 100755
--- a/chroot-bin/croutonclip
+++ b/chroot-bin/croutonclip
@@ -5,6 +5,7 @@
#
# Synchronizes clipboard between X displays, making use of crouton's WebSocket
# server and Chromium extension to synchronize the clipboard with Chromium OS
+# Define XMETHOD variable (x11, xephyr or cros) in prior to run this script.
@kiko
kiko / build
Last active August 29, 2015 14:22
<snip>
=> autossh-1.4e_1: running pre-install hook: 00-lib32 ...
=> autossh-1.4e_1: running pre-install hook: 02-script-wrapper ...
=> autossh-1.4e_1: running do_install ...
mkdir -p -m 755 /usr/bin
mkdir -p -m 755 /usr/share/doc/autossh
mkdir -p -m 755 /usr/share/examples/autossh
mkdir -p -m 755 /usr/man/man1
cp autossh /usr/bin
(defproject phonecat "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[ring-server "0.4.0"]
[reagent "0.6.0-rc"]
[reagent-forms "0.5.24"]