Skip to content

Instantly share code, notes, and snippets.

View phumberdroz's full-sized avatar
:shipit:
Looking for Projects

Pierre Humberdroz phumberdroz

:shipit:
Looking for Projects
View GitHub Profile
@phumberdroz
phumberdroz / docker.tf
Created August 19, 2020 09:44
Terraform populate Docker Credentials in all Namespaces
variable "docker_password" {}
data "kubernetes_all_namespaces" "allns" {}
resource "kubernetes_secret" "docker_secrets" {
for_each = toset(data.kubernetes_all_namespaces.allns.namespaces)
metadata {
name = "gitlab-cloud"
namespace = each.value
}

create a pipeline to extract GEO Info from monitor.ip PUT _ingest/pipeline/

{
    "description": "Adds Geo Info to monitor.ip",
    "processors": [
        {
            "geoip": {
                "field": "monitor.ip",
 "target_field": "monitor.geo"
# context: kube-context # this directive is deprecated, please consider using helmDefaults.kubeContext
#default values to set for args along with dedicated keys that can be set by contributers, cli args take precedence over these
helmDefaults:
tillerNamespace: kube-system
tillerless: true
kubeContext: kube-context
# defaults for verify, wait, force, timeout and recreatePods under releases[]
verify: true
wait: true
[ +23 ms] [/Users/phumberdroz/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +27 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] [/Users/phumberdroz/flutter/] git rev-parse --abbrev-ref HEAD
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] [/Users/phumberdroz/flutter/] git ls-remote --get-url origin
[ +5 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] [/Users/phumberdroz/flutter/] git log -n 1 --pretty=format:%H
@phumberdroz
phumberdroz / ruby.rb
Created May 21, 2017 16:14
Steam Player ID to Battleye Guid Ruby
require 'digest'
steamid=[]
guid = []
string = 'BE'
steamid << "76561198147354524"
steamid.flatten!
steamid.each { |x|
x = x.to_i
Hello people,
I am currently trying to run a VPN thru docker but the public IP is always bound to the main interface so I have:
eth0 <- host ip adress
eth0:1 <- VPN 1
eth0:2 <- VPN 2
so i can connect to the VPN with the IP Address specified (the correct one) but the facing public ip address is always the eth0 IP adress so how can I specify a certain interface to use? e.g. eth0:1? I think I have to use docker network thing but I am not sure.
function queryapi(value) {
if (value.length >= 3 || value.length == 0) {
var url = "api/customers/?search=" + value;
$.getJSON({
type: 'get',
url: url,
success: function(data) {
var newtable = "<tbody>";
data.forEach(function(element) {
newtable = newtable + "<tr><td>" + element.name + "</td><td>" + element.phone + "</td></tr>"
// --- TICKET SYSTEM & LOGGING ----------------------------------------------------------------------------------------------------------------------
// Modify this value to change the initial ticket count.
#define ACE3 0
#define ACRE 0
TICKETS_WEST = 100;
// Max Tickets the Team may ever have - tickets gained beyond that point are lost
TICKETS_SOFTCAP = 100;
TICKETS_HARDCAP = 120;