Skip to content

Instantly share code, notes, and snippets.

@Jguer
Jguer / fan-out_ordered.go
Created October 10, 2021 20:59
Ordered Fan-Out and collect in Go
package main
import (
"fmt"
"math/rand"
"os"
"runtime"
"strings"
"sync"
"time"
@Jguer
Jguer / fan-out_with_context.go
Last active September 5, 2023 12:28
Fan-Out with Context in Go
package main
import (
"context"
"errors"
"fmt"
"math/rand"
"os"
"os/exec"
"os/signal"
@Jguer
Jguer / benchmark_test.go
Last active June 8, 2018 08:35
headTohead.go
package srcinfo
import (
"os"
"path/filepath"
"testing"
gopkg "github.com/mikkeloscar/gopkgbuild"
)
@Jguer
Jguer / main.go
Last active March 27, 2017 15:44
RCI Message Board Identity Server
// Compile with go build -o idserv main.go
package main
import (
"bytes"
"flag"
"fmt"
"log"
"net"
"os"
@Jguer
Jguer / gist:01d29a0cb25366175668ca2c9662af21
Created October 15, 2016 18:55
Cube i7 book specifics
Left to Right: KEY_LEFTMETA, KEY_TAB
Right to Left: KEY_LEFTMETA, KEY_A
Down to Up: KEY_LEFTMETA, KEY_B
Up to Down: KEY_LEFTMETA, KEY_D
@Jguer
Jguer / cycle_audio_output.sh
Created January 17, 2016 03:08
Cycles pulse audio output devices
#! /bin/bash
#################################################################################
# File Name : cycle_audio_output.sh
# Created By : jguer
# Creation Date : [2016-01-16 22:55]
# Last Modified : [2016-01-17 00:42]
# Description : Cycles audio output devices
#################################################################################
VERBOSITY=0
NOTIFICATIONS=0
@Jguer
Jguer / organize_wallpapers.sh
Last active December 26, 2015 13:52
Wallpaper folder organizer
#!/bin/sh
# @Author: jguer
# @Date: 2015-12-25 21:48:40
# @Last Modified by: jguer
# @Last Modified time: 2015-12-26 13:48:04
# @Description: Wallpaper folder organizer
# @Credits: tuxtweaks for getopts code
#REQUIRES
# - exiv2
#!/bin/sh
#
# cmus-status-display
#
# Usage:
# in cmus command ":set status_display_program=cmus-status-display"
#
# This scripts is executed by cmus when status changes:
# cmus-status-display key1 val1 key2 val2 ...
#