Skip to content

Instantly share code, notes, and snippets.

@rfunduk
rfunduk / Coverage Badges
Last active October 31, 2022 20:02
Coverage Badges
Coverage Badges
@rfunduk
rfunduk / osx.sh
Last active August 27, 2021 15:00 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh
#
import Darwin
extension Array {
func shuffle() -> Array {
// this will sometimes crash (submitted bug #17127524)
self.sort { _,_ in arc4random_uniform(2) == 1 }
return self
}
mutating func removeAtIndexes( indexes:Int... ) {
indexes.sort(>)
@rfunduk
rfunduk / setup-WxH.applescript
Created August 22, 2013 21:27
Example AppleScript for re-arranging commonly used windows for a screen resolution. Eg. switching between laptop at 1440x900 and external monitor at 2560x1440 is a big pain, requiring a lot of moving around and resizing of windows. So instead you adapt this script, make a setup-1440x900.applescript and a setup-2560x1440.applescript, and run them…
tell application "Flint" to activate -- needs to be in front
tell application "System Events" to tell application process "Flint"
try
get properties of window 1
set size of window 1 to {700, 800}
set position of window 1 to {1700, 300}
end try
end tell
tell application "Adium" to activate -- needs to be in front
@rfunduk
rfunduk / app.service
Last active September 21, 2020 23:49
Manual Elixir red/green deployments
[Unit]
Description=AppName Phoenix
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=ubuntu
Group=www-data

CELO_GENESIS_VALIDATOR_SIGNER_ADDRESS=0xe10A8Cc6c22CDc320c67BD600a1d8a0a46D7f400 CELO_GENESIS_VALIDATOR_SIGNER_BLS_PUBLIC_KEY=bfce6153e2c2dabc724d9ccf5cad8916753dce1a495a29053ff7e5b74b0eace4889d5fd2d5859400d82b6bf29cecc9006b6e37152cb1f4f72e7d0c0897439f4ef886e26b4345d2f3e73bcf08d47f02c02976730620d7f844313c099894176980 CELO_GENESIS_VALIDATOR_SIGNER_BLS_SIGNATURE=c636f7de65c4846b56381933f255bd3bf2df8594c4bb5efde571df36d5fa09eac71992780e7a7f7573b2dd23469a6a00 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_1=0x4C7Cd95d47858D9B28C314D5b70149e2Ab1076C2 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_2=0x88996e9484DB8f9398c8DFaC953585Bc7277eFE5

CELO_VALIDATOR_GROUP_ADDRESS=53065094929515da073d4eb48db6f19bab274015 CELO_VALIDATOR_ADDRESS=52d3fb40936e16c9356591baca577235b9a7ab01 CELO_GENESIS_VALIDATOR_SIGNER_ADDRESS=e2368b04a1d14f286faf8c90153e33dc0b0879fb CELO_VALIDATOR_SIGNER_BLS_PUBLIC_KEY=17a5c4c6a8aa852ab1ac7771e3caa6546da92938bda6d4e0c0ea05da85adbe08ca2ee58e657a82b619d1a729b6510401686ca15382abdbd856716fa867573c35ab8605d2d57b0573ff589c087cf57e5408cbf7be57ce5946a6455b1955d9d300

@rfunduk
rfunduk / group-metadata.json
Created December 12, 2019 19:23
Figment Networks Celo Baklava Group Metadata
{"claims":[{"timestamp":1576178573,"type":"ACCOUNT","address":"0x61D7E2d39B924744FEbC65d141f30E9f644Bd286"}],"meta":{"address":"0xCa21a04402913ad8a0c9fd05c48E7C5865b75AdE","signature":"0xfa3345985c1ac0733969a5e110252d97b80716d84fd38f95323a873fe069797a4c93cb984b04d29c0c8dbb1f6c5e60cc1812e5d188e2585b903fd4e4b9e665631b"}}
@rfunduk
rfunduk / metadata.json
Created December 12, 2019 19:18
Figment Networks Celo Baklava Metadata
{"claims":[{"url":"http://155.138.145.143","timestamp":1576178245,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1576178258,"type":"ACCOUNT","address":"0xCa21a04402913ad8a0c9fd05c48E7C5865b75AdE"}],"meta":{"address":"0x61D7E2d39B924744FEbC65d141f30E9f644Bd286","signature":"0xe5423fb23bf96805e99f103041b48a1c4b15d16ab7297e9bca18fdd87d628d9770a6ee486f02bc6d5ea420a1f0df6bd13c606916267e91f62db13aa4a5d649dd1b"}}
@rfunduk
rfunduk / awesome.rb
Created July 21, 2008 02:08
#44! :P
RubyFringe.teh_awesome? # => true