Skip to content

Instantly share code, notes, and snippets.

View faddat's full-sized avatar

Jacob Gadikian faddat

View GitHub Profile
@sneak
sneak / steemrpi.sh
Last active November 9, 2016 13:37
Script to build steemd on raspberry pi 3 model B
#!/bin/bash
# enable bigger swap on rpi
if [[ ! -e /swapfile ]]; then
fallocate -l 2G /swapfile
mkswap /swapfile
chmod 0600 /swapfile
swapon /swapfile
fi
@elerch
elerch / arch-usb-uefi.md
Last active January 26, 2024 22:20
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
@Titerote
Titerote / ignition_config.yml
Last active June 29, 2018 13:19
Ignition problem on coreos
---
systemd:
units:
- name: etcd2.service
enable: true
dropins:
- name: 40-etcd-cluster.conf
contents: |
[Service]
Environment="ETCD_NAME={{.etcd_name}}"
@kadamski
kadamski / opc_boot.sh
Created February 26, 2016 13:06
Script for booting OrangePI PC in FEL mode
g#!/bin/bash
UBOOTDIR=./u-boot/
KERNELDIR=./linux-sunxi/
INITRAMFS=~/Downloads/buildroot-2015.11.1/output/images/rootfs.cpio.uboot
KERNEL_ADDR=0x42000000
RAMDISK_ADDR=0x43300000
FDT_ADDR=0x43000000
SCRIPT_ADDR=0x43100000

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)
@luxas
luxas / Dockerfile
Last active November 29, 2017 16:10
Build Kubernetes binaries for ARM on amd64
FROM golang:1.5.2
MAINTAINER Lucas Käldström <lucas.kaldstrom@hotmail.co.uk>
# Enable cgo cross-compilation for armel
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/crosstools.list \
&& curl -s http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - \
&& dpkg --add-architecture armel \
&& apt-get update \
&& apt-get install -y build-essential crossbuild-essential-armel rsync upx

Keybase proof

I hereby claim:

  • I am btsfav on github.
  • I am fav (https://keybase.io/fav) on keybase.
  • I have a public key whose fingerprint is D198 BEC3 5EF4 ED06 5288 ABDD A445 EE84 DC1F B297

To claim this, I am signing this object:

Meteor Alternatives Per Feature

This table was created in 2015 so may be quite outdated today.

Feature Meteor Solution Alternative Solutions Description
Live DB Sync [livequery][lq] ([mongo-oplog]), [ddp] RethinkDB, Redis, ShareDB, [npm:mongo-oplog], [firebase], etc. Push DB updates to client/server.
Latency Compensation, Optimistic UI [minimongo][mm] [RethinkDB][lcr], [mWater/minimongo] (fork, not ws but http, browserify) Imitate successful db query on client before it is done.
Isomorphic Code [isobuild] & isopacks browserify Write one code for server/client/mobile.
Isomorphic Packaging [isobuild], atmosphere No more separate packages for server & client. Get bower + npm + mobile.
@faddat
faddat / bash-hacks.sh
Last active September 3, 2015 00:52 — forked from ds0nt/bash-hacks.sh
Awesome bash hacks --- (for web devs & ninjas, for dot-file pride, for pleasing the monospace gods )
#### #### #### #### #### ####
# / ! /
# / e /
# / M /
# / /
# / k /
# / r /
# / o /
# F /
# /
@ds0nt
ds0nt / bash-hacks.sh
Last active September 3, 2015 07:57
Awesome bash hacks --- (for web devs & ninjas, for dot-file pride, for pleasing the monospace gods )
#### #### #### #### #### ####
# / ! /
# / e /
# / M /
# / /
# / k /
# / r /
# / o /
# F /
# /