Skip to content

Instantly share code, notes, and snippets.

View StefanScherer's full-sized avatar
🌍

Stefan Scherer StefanScherer

🌍
View GitHub Profile
{
"device_name": "My Book Live NAS",
"listening_port" : 0, // 0 - randomize port
"storage_path" : "/DataVolume/cache/btsync/syncStorage",
"pid_file" : "/var/run/btsync.pid",
"check_for_updates" : true,
"use_upnp" : true, // use UPnP for port mapping
@DieterReuter
DieterReuter / compile-docker-1.12.0-on-arm.sh
Last active August 6, 2016 15:38
Upgrade HypriotOS 0.8.3 with Docker 1.12.0 and compile Docker 1.12.0 (plus ARM patch)
#!/bin/bash
set -e
set -x
if [ ! -f ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb ]; then
echo "...ERROR:"
echo " Package ~/docker-engine_1.12.0-0~jessie_armhf-armv6.deb missing"
exit 1
fi
@olov
olov / gist:eb60ab878eb73a7c5e22
Created October 15, 2014 08:55
listenandservetls_nossl30.go
// You don't want to serve HTTPS supporting for SSL3.0 any longer, see:
// http://googleonlinesecurity.blogspot.de/2014/10/this-poodle-bites-exploiting-ssl-30.html
import (
"crypto/tls"
"net/http"
)
// This code supports SSL3.0, TLS1.0, TLS1.1 and TLS1.2
// Chances are you currently do this but want to stop due to the POODLE
err := http.ListenAndServeTLS(addr, "crtfile", "keyfile", handler)
@AlexZeitler
AlexZeitler / command.sh
Last active September 15, 2016 19:55
Removing big files from Git repository history in a batch
# CREATE A BACKUP FIRST!
# Then find the oldest commit containing the unwanted files
# ./replace.sh <PathToFileContainingTheBigFilesToRemove> <OldestCommitSHA>
cd /path/to/your/git/repository
./replace.sh files.txt 9e5bc93
Install-Module -Name xPSDesiredStateConfiguration -Force
[DscLocalConfigurationManager()]
configuration LCM {
Settings {
RebootNodeIfNeeded = $true
ActionAfterReboot = 'ContinueConfiguration'
}
}
@arun-gupta
arun-gupta / gist:c42cacfa3225727f5c71ff4a5dc547dc
Created April 20, 2016 21:46
Create Docker Swarm Cluster
# Docker Machine for Consul
docker-machine \
create \
-d virtualbox \
consul-machine
# Start Consul
docker $(docker-machine config consul-machine) run -d --restart=always \
-p "8500:8500" \
-h "consul" \
anonymous
anonymous / manifest-report.txt
Created September 19, 2017 21:32
Container: nginx
Manifest List: Yes
Supported platforms:
- amd64/linux
- arm/linux (variant: v7)
- arm64/linux (variant: v8)
- 386/linux
- ppc64le/linux
- s390x/linux
@rn
rn / packet.net.md
Last active November 14, 2017 14:52
arm64 server setup

This document outlines steps and common tasks for setting up a arm64 dev machine for LinuxKit.

Notes on packet.net

If you set up a server on packet.net using the docker account please use your name/slackhandle/initials in the machine name. We will garbage collect machine and whack machine not adhering to this policy without warning :).

Deploy a Ubuntu 16.04 LTS server on packet.net and ssh in as root.

@adamstac
adamstac / gist:8347083
Last active November 29, 2017 00:55
Enable HiDPI mode on a VMware Fusion OS X 10.9 Mavericks Vagrant VM
  1. Set "Use full resolution for Retina display" in the VM's Settings > Display
  2. Run this command in Terminal sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
  3. In System Preferences, set the display to "scaled" using the resolution 1292 x 807 (HiDPI)
  4. Enjoy.
@PatrickLang
PatrickLang / README.md
Last active January 29, 2018 07:29
Working on Jenkins setup for Packer based workflow