Skip to content

Instantly share code, notes, and snippets.

View TwanoO67's full-sized avatar

WEBER Antoine TwanoO67

View GitHub Profile
@d33d33
d33d33 / README.md
Last active March 17, 2021 07:18
OVH ingress LB

OVH ingress LB

This gist describe how to deploy a K8S LB at OVH and preserve source IP

Howto

1. Install the NGINX Ingress Controller

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
@FergusInLondon
FergusInLondon / DockerClient.php
Created April 23, 2018 23:41
Example Docker Engine API Client using PHP
<?php
class DockerClient {
/** @param resource */
private $curlClient;
/** @param string */
private $socketPath;
@catherio
catherio / ovpnconvert.sh
Created August 29, 2016 20:04
Convert .ovpn config file for use with Ubuntu's network manager
#!/bin/bash
# This script will extract the certificate and key from an .ovpn file
# into their own files, which makes it possible to use them to configure
# the VPN using Ubuntu's network manager
# Usage example:
# >> ovpnconvert username.dev.ovpn
# You can keep following these instructions here:
@freman
freman / blacklist.scpt
Created December 16, 2015 07:02
Spotify blacklist script.
repeat
if application "Spotify" is running then
tell application "Spotify"
set seenTrack to ""
repeat while player state is playing
if player state is playing then
set theAlbum to album of the current track
set theTrack to name of the current track
set theArtist to artist of the current track
set trackLength to duration of current track
@orrybaram
orrybaram / listenWithMe.js
Last active July 31, 2016 20:54
Add an embedded spotify player that plays the track your currently listening to (or last listened to) Demo at http://orryb.com/projects/currentSpotify/
var ListenWithMe = (function() {
// Add your own config here
var LASTFM_API_KEY = "";
var LASTFM_USERNAME = "";
// Element to inject the widget into
var $playerWrapper = document.getElementById('spotify-player-wrapper');
return {
init: init
}
@haimingpro
haimingpro / YA-OS-X-window-in-pure-CSS.markdown
Created January 20, 2015 05:32
YA OS X window in pure CSS

YA OS X window in pure CSS

Here's another OS X Yosemite window mockup. Maybe useful for me or somebody.

A Pen by oobleck on CodePen.

License.

@emersion
emersion / gitlab-raspberrypi.sh
Last active December 1, 2016 11:26
Gitlab install on Raspberrypi (cross-compiling)
# Gitlab install instructions: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
# Cross-compiling on Rpi: https://raspberrypi.stackexchange.com/questions/1/how-do-i-build-a-gcc-4-7-toolchain-for-cross-compiling
apt-get update -y
apt-get upgrade -y
apt-get install -y sudo
apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate
apt-get install -y git-core
@MadMaxMcKinney
MadMaxMcKinney / bohemianRhapsody
Created November 2, 2013 03:52
Describe song via code.
try
{
Assert(Life.Real);
Assert(Life.Fantasy);
}
catch(LandSlideException ex)
{
#region Reality
while(true)
{
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 19, 2024 11:00
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: