Skip to content

Instantly share code, notes, and snippets.

View bkcsoft's full-sized avatar

Kim "BKC" Carlbäcker bkcsoft

  • Sweden
  • 17:42 (UTC +02:00)
View GitHub Profile
@bkcsoft
bkcsoft / PKGBUILD
Created August 30, 2013 18:24
vobcopy PKGBUILD for ArchBSD
# $Id$
# Maintainer: Daenyth
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tino Reichardt <milky-archlinux@mcmilk.de>
pkgname=vobcopy
pkgver=1.2.0
pkgrel=4
pkgdesc="Copies DVD .vob files to harddisk, decrypting them on the way"
arch=('i686' 'x86_64')
# Maintainer: birdflesh <antkoul at gmail dot com>
# Contributor: Army <uli.armbruster@gmail.com>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: dale <dale@archlinux.org>
# Contributor: Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com>
pkgname=ttf-ms-fonts
pkgver=2.0
pkgrel=10
pkgdesc="Core TTF Fonts from Microsoft"
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
printf 1 "Usage: $(basename $0) [build-args [-- run-args [-- cmd-args] ] ]"
printf 1 " NOTE!!! the -rm-flag is hardcoded for build!"
fi
BUILD_ARG=()
RUN_ARG=()
CMD_ARG=()

slow

This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.

slow 3G                   # Slow network on default eth0 down to 3G wireless speeds
slow reset                # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet  with a high latency
slow dsl -b 1mbps         # Simulate DSL with a slower speed than the default

slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.

{
"name": "Docker-compose",
"cmd": "docker-compose",
"args": ["build"],
"sh": true,
"targets": {
"build": {
"args": ["build"]
},
"run": {
openmanage:
from: jdelaros1/openmanage
volumes:
- /lib/modules:/lib/modules
ports:
- "1311:1311"
restart: always
container_name: osma81
privileged: true
package main
import (
"errors"
"path/filepath"
"archive/zip"
"io"
"log"
"net/http"
"os"
package main
import (
"fmt"
"github.com/russross/blackfriday"
)
func main() {
package main
import (
"errors"
"path/filepath"
"archive/zip"
"io"
"log"
"net/http"
"os"

Keybase proof

I hereby claim:

  • I am bkcsoft on github.
  • I am bkc (https://keybase.io/bkc) on keybase.
  • I have a public key ASAVpEhTfD47nOSsmPEnxWaxEKA9qrKKa-zBZCfO_ddd7Ao

To claim this, I am signing this object: