Skip to content

Instantly share code, notes, and snippets.

View raffecat's full-sized avatar

Raffe raffecat

  • Melbourne, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am raffecat on github.
  • I am raffe (https://keybase.io/raffe) on keybase.
  • I have a public key whose fingerprint is 0FD1 D3F5 8878 80A6 A87A 5324 B0BF 0B88 3A84 1576

To claim this, I am signing this object:

@raffecat
raffecat / tsconfig.json
Created November 24, 2017 04:00
tsconfig.json for node.js
{
"files": [
"src/main.ts"
],
"compilerOptions": {
"inlineSourceMap": true,
"alwaysStrict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
defmodule InspectPlug do
@behaviour Plug
def init(opts), do: opts
def call(conn, opts), do: IO.inspect(conn, opts)
end
@raffecat
raffecat / rollup.config.js
Created March 23, 2019 09:44
Rollup Config for Buble with ESLint
import eslint from 'rollup-plugin-eslint';
import buble from 'rollup-plugin-buble';
export default {
input: 'src/entry.js',
output: {
file: 'dist/bundle.js',
format: 'iife'
},
plugins: [
@raffecat
raffecat / [email protected]
Created February 18, 2020 03:06
brew install groovy@2 # /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected]
class GroovyAT2 < Formula
desc "Java-based scripting language"
homepage "https://www.groovy-lang.org/"
url "https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.5.9.zip"
sha256 "fea7dc321a3029c47ffa4aa165055d2bcc78bc280fac4e70ac131c717e45b89b"
bottle :unneeded
keg_only :versioned_formula
@raffecat
raffecat / pymem.py
Created August 8, 2021 10:40
Effect of cache-unfriendly array access in python
import time
import random
size = 1000000 # more zeros, more difference
nums = list(range(size))
inds = list(range(size))
# reset cache
sum(nums)
@raffecat
raffecat / git-setup.sh
Created January 2, 2022 05:38
Git Setup
git config --global user.name "My Name"
git config --global user.email "[email protected]"
git config --global core.autocrlf false
git config --global core.filemode false
git config --global branch.autosetuprebase always
git config --global pull.rebase true
git config --global fetch.prune true # local inaccessible objects
git config --global diff.colorMoved zebra # show "moved" lines
@raffecat
raffecat / doge-core-m1.sh
Last active November 14, 2022 06:12
Building Dogecoin Core on M1 mac
# MacBook Air M1 2020, macOS 12.5.1 Monterey, XCode 14.1
# https://github.com/dogecoin/dogecoin/blob/master/doc/Building-Dogecoin-1.14-for-Mac.md
# https://github.com/dogecoin/dogecoin/blob/master/doc/build-osx.md
git clone [email protected]:dogecoin/dogecoin.git
cd dogecoin
git checkout tags/v1.14.6
brew install boost --build-from-source --HEAD # per Building-Dogecoin-1.14-for-Mac.md
@raffecat
raffecat / flutter.MD
Last active January 31, 2023 04:38
Flutter installation on M1 Mac Monterey 12.6.2
@raffecat
raffecat / log.txt
Last active February 7, 2023 01:32
Build Gigawallet on M1 Mac 7 Feb 2023
mkdir temp
cd temp
git clone [email protected]:dogecoinfoundation/libdogecoin.git
git clone [email protected]:dogeorg/go-libdogecoin.git
git clone [email protected]:dogecoinfoundation/gigawallet.git
cd libdogecoin
git checkout 0.1.1-dogeathon
./autogen.sh