This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
from pathlib import Path | |
import datetime | |
import frontmatter | |
posts_root = os.environ['HOME'] / Path('dev/brainblog/content/post') | |
for post in posts_root.iterdir(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#"IcePick", orginally "gardnert/aws-glacier-multipart-upload" | |
#./icepick.sh [filename] | |
#defaults | |
#byteSize=4294967296 # MAX Glacier, 4GB? | |
#byteSize=104857600 # 100MB otherwise timeouts? wrooong, not power of 2 so glacier will not accept it | |
byteSize=134217728 # 128MB, power of two, sweet spot to reduce uploading timeouts | |
account="-" | |
vaultName="testvault" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box1$ cat speedtest-iperf | |
#!/bin/bash | |
IPERF=iperf3 | |
IPERF_SERVER=7001 | |
TEST_SECONDS=10 | |
CLIENT_CMD="$IPERF -c localhost -p $IPERF_SERVER -d -t $TEST_SECONDS" | |
SERVER_CMD="$IPERF -1 -s -p $IPERF_SERVER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Inspired on: https://www.bountysource.com/issues/31269729-libwx_osx_cocoau-3-1-dylib-not-found | |
KICAD_LIBS_TOFIX="libwx_osx_cocoau_gl-3.0.0 libwx_osx_cocoau_adv-3.0.0 libwx_osx_cocoau_aui-3.0.0 libwx_osx_cocoau_adv-3.0.0 libwx_osx_cocoau_html-3.0.0 libwx_osx_cocoau_core-3.0.0 libwx_osx_cocoau_stc-3.0.0 libkicad_3dsg.2.0.0 libGLEW.2.0.0 libcairo.2 libpixman-1.0 libwx_baseu_net-3.0.0 libwx_baseu-3.0.0 libwx_baseu_xml-3.0.0" | |
#KICAD_LIBS_TOFIX=`find /Applications/Kicad/kicad.app/Contents/Frameworks/ -iname *.dylib | xargs otool -L | grep executable_path | awk '{print $1}' | awk -F'/' '{print $4}'` | |
for kicadlib in $KICAD_LIBS_TOFIX; | |
do | |
echo "Fixing ${kicadlib} broken path on pcbnew..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod-pcgr | |
spec: | |
containers: | |
- name: pcgr | |
image: sigven/pcgr:0.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Useless dock, cannot drive 2 monitors and LVDS at once :____( | |
# 2 invocations because the Intel graphics card can only handle two outputs at a time | |
xrandr -d :0.0 --output HDMI-2 --auto --primary --output LVDS-1 | |
xrandr -d :0.0 --output HDMI-3 --auto --right-of HDMI-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kops create cluster \ | |
--node-count 1 \ | |
--zones ap-southeast-2a \ | |
--master-zones ap-southeast-2a \ | |
--dns-zone umccr.nopcode.org \ | |
--node-size t2.small \ | |
--master-size t2.small \ | |
--topology private \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Espressif ESP32 promiscuous mode and packet injection experiments | |
// by brainstorm at nopcode org | |
#include "freertos/FreeRTOS.h" | |
#include "esp_wifi.h" | |
#include "esp_wifi_internal.h" | |
#include "lwip/err.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_event_loop.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(HiveR) | |
require(plyr) | |
require(colorspace) | |
require(classInt) | |
require(feather) | |
require(dplyr) | |
require(grid) | |
require(igraph) | |
require(Matrix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "GDB bcftools", | |
"type": "cppdbg", | |
"request": "launch", | |
"launchOptionType": "Local", | |
"targetArchitecture": "x64", | |
"program": "/Users/romanvg/dev/bcftools/bcftools", |