Skip to content

Instantly share code, notes, and snippets.

View u1i's full-sized avatar

Uli u1i

View GitHub Profile
@u1i
u1i / cd-tests.sh
Created May 1, 2017 02:42 — forked from markhalliwell/cd-tests.sh
cocoaDialog Tests
#!/bin/bash
# Script: cocoaDialogTests.sh
# Author: Mark Carver
# Created: 2011-09-23
# Updated: 2012-07-24
# Copyright (c) 2012 Mark Carver. All rights reserved.
cocoaDialog(){
# Replace this with your path if it isn't installed in the applications folder.
/Users/Shared/Applications/cocoaDialog.app/Contents/MacOS/cocoaDialog "${@}";

Keybase proof

I hereby claim:

  • I am u1i on github.
  • I am u1i (https://keybase.io/u1i) on keybase.
  • I have a public key ASAmBfCFPLodeS8nOF38Z4qJNcytXAH2xdHA6oW5MWCZDwo

To claim this, I am signing this object:

docker run -d -p 6379:6379 --name mockbin_redis redis
docker run -d -p 8888:8080 --link mockbin_redis:redis brianlow/mockbin
{
"method": "POST",
"url": "http://mockbin.com/request",
"httpVersion": "HTTP/1.1",
"queryString": [
{ "name": "tach", "value": "les" },
{ "name": "adios", "value": "amigos" }
],
"headers": [
{ "name": "Accept", "value": "application/json" },
docker run --restart always --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -d mysql
@u1i
u1i / gist:7664e22e50b120e6cb7cf866f1b26c9c
Created August 23, 2017 11:25
VLC MacOs disable recent files
defaults write org.videolan.vlc NSRecentDocumentsLimit 0
defaults delete org.videolan.vlc.LSSharedFileList RecentDocuments
defaults write org.videolan.vlc.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
@u1i
u1i / adi
Created August 31, 2017 05:56
docker run -it -p 18080:8080 u1ih/adi bash /root/adi
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
@u1i
u1i / gist:baec9d1f1d48e0a0b39978b81daeb17b
Last active September 2, 2017 06:25
nginx proxy and rewrite
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
@u1i
u1i / gist:b7907f936956079088b97d3549af729c
Created September 2, 2017 07:18
Simple nginx docker container with static content
mkdir www
echo "Hello World" > www/index.html
# create a file called Dockerfile
'
FROM nginx
COPY www /usr/share/nginx/html
'