Skip to content

Instantly share code, notes, and snippets.


Olivier Wulveryck owulveryck

View GitHub Profile
# default values for arguments
ssh_host="root@remarkable" # remarkable connected through USB
landscape=true # rotate 90 degrees to the right
output_path=- # display output through ffplay
format=- # automatic output format
webcam=false # not to a webcam
measure_throughput=false # measure how fast data is being transferred
itsuart / commands and configs
Last active Jun 29, 2022
linux essentials
View commands and configs
to swap cmd and alt on mac keyboard:
echo 1|sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd
echo options hid_apple swap_opt_cmd=1 | sudo tee -a /etc/modprobe.d/hid_apple.conf
to stop mac from heating too much:
sudo apt install macfanctld
to set dvorak and bind caps lock to ctrl:
ynyBonfennil / file01.go
Last active Sep 12, 2019
Gonum Graph Weighted Undirected Graph : Getting Started
View file01.go
import (
func main() {
self := 0 // the cost of self connection
absent := math.Inf(1) // the wieght returned for absent edges
graph := simple.NewWeightedUndirectedGraph(self, absent)
zznop / mem-loader.asm
Last active Sep 26, 2022
Fun little loader shellcode that executes an ELF in-memory using an anonymous file descriptor (inspired by
View mem-loader.asm
;;; Copyright (C), zznop,
;;; This software may be modified and distributed under the terms
;;; of the MIT license. See the LICENSE file for details.
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF
tkrs / parser.go.y
Created Feb 13, 2018
goyacc tutorial
View parser.go.y
package main
import (
type Expression interface{}
type ParenExpr struct {
posener /
Last active Sep 28, 2022
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
ahmetb /
Last active Sep 6, 2022
Script to clean up Google Container Registry images pushed before a particular date
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
View livecaption.go
// Copyright 2016 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Command caption reads an audio file and outputs the transcript for it.
package main
import (
julz / main.go
Created Nov 20, 2015
containersched minicontainer
View main.go
package main
import (
func main() {
aaronhalford /
Created Nov 28, 2014
Customize ChromeOS Crosh Terminal with Custom Fonts and Solarized Dark Theme

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts