Skip to content

Instantly share code, notes, and snippets.

View bamert's full-sized avatar

Nik Bamert bamert

View GitHub Profile
#!/usr/bin/Rscript
library(ggplot2)
library(MASS)
library(scales)
set.seed(16)
memory_bound <- 4.5
comp1 <- c(1/2,3)
comp2 <- c(1/2,3/2)
#!/usr/bin/Rscript
library(ggplot2)
library(MASS)
library(scales)
set.seed(16)
#RK3399 nano pc t4
# 4x 2.0 GHz, 2x 1.5Ghz
rk3399_op_freq <- 2 #GHz
rk3399_ops_per_cyc <-2 #supports fma
#!/usr/bin/Rscript
library(ggplot2)
library(scales)
library(directlabels)
library(wesanderson)
#library(gdata)
AppendMe <- function(dfNames) {
do.call(rbind, lapply(dfNames, function(x) {
cbind(get(x), source = x)
}))
[push]
default = matching
[core]
editor = vim
[user]
name = .............
email = ...............
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
@bamert
bamert / eduroam
Last active March 19, 2019 09:20
eduroam config for netctl. Works at ETH Zurich(Tested March 2019)
# /etc/netctl/eduroam
# replace $user and $hash with your wifi credentials
# $hash is generated from your wifi password with:
# (note that the password string is prepended with the cleartext hash:)
# echo -n '$password' | iconv -t utf16le | openssl md4
Description='eduroam'
Interface='wlp3s0'
Connection='wireless'
Security='wpa-configsection'
@bamert
bamert / espinstall.sh
Created November 19, 2015 20:00
Install script for espOpenSdk on mac osx yosemite. This is NOT my own work. The script was created by user "ficeto" and modified by "ulumu" in the thread http://www.esp8266.com/viewtopic.php?f=9&t=1561. The website is currently down so I thought I'd keep a backup here.
#!/bin/bash
set -e -u
InstallBase=~/Documents/esp
BrewHome=/usr/local
BrewToolsExtra="https://raw.github.com/Homebrew/homebrew-dupes/master/grep.rb"
ImageName=ESPDISK
ImageNameDMG=${InstallBase}/${ImageName}.dmg
# --------------------------