Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/cmdline-tools/8.0/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin:$PATH
meteor_server=${METEOR_SERVER:-https://my.app}
KEYSTORE_FILE=.keystore
@leoc
leoc / config.ru
Created October 5, 2022 11:24
XML-RPC-TAN handler for hibiscus-server
# copy to: config.ru
# install gems: rack rack-rpc xmlrpc byebug awesome_print
# run: rackup -o 0.0.0.0 -p 3000 config.ru
require 'builder'
require 'rack/rpc'
require 'awesome_print'
require 'byebug'
require 'base64'
(use-package outline-magic :ensure t)
(use-package yaml-mode
:ensure t
:config
(progn
(add-hook 'yaml-mode-hook 'leoc/yaml-outline-hook)
;; Customize folding markers
(set-display-table-slot
standard-display-table
module Turnip
module RSpec
class << self
alias_method :original_run_feature, :run_feature
def run_feature(context, feature, filename)
ValidationReport.add_feature(feature: feature, filename: filename)
original_run_feature(context, feature, filename)
end
end
@leoc
leoc / config.vnc
Last active February 2, 2018 11:20
ClientCutText=0
ConnTime=2018-02-02T10:34:39.974Z
EnableChat=0
Host=127.0.0.1:5900
Password=2e2dbf576eb06c9e
Quality=High
RelativePtr=0
SendKeyEvents=0
SendPointerEvents=0
ServerCutText=0
require 'bundler/inline'
def binary_found?(name)
`which #{name}`
$?.success?
end
def check_binary(name)
return if binary_found?(name)
puts "Missing binary: #{name}"
/*! jQuery v3.3.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,u=n.push,s=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,d=f.toString,p=d.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},v=function e(t){return null!=t&&t===t.window},y={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in y)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode

Keybase proof

I hereby claim:

  • I am leoc on github.
  • I am leocgit (https://keybase.io/leocgit) on keybase.
  • I have a public key whose fingerprint is B229 6F8B 478B 352A F774 EE9E 4D9E 58A5 F8F1 DD52

To claim this, I am signing this object:

@leoc
leoc / shell output
Created August 28, 2014 10:24
Error when running beaker specs for puppet-puma
$ rake acceptance
/home/arthur/.rvm/rubies/ruby-2.1.1/bin/ruby -S rspec spec/acceptance
Hypervisor for debian-7-4 is docker
Beaker::Hypervisor, found some docker boxes to create
Provisioning docker
provisioning debian-7-4
Creating image
Dockerfile is FROM debian:7.4
RUN apt-get update
RUN apt-get install -y openssh-server openssh-client curl ntpdate lsb-release