Skip to content

Instantly share code, notes, and snippets.

View Pierozi's full-sized avatar

Pierre Tomasina Pierozi

View GitHub Profile
@plentz
plentz / nginx.conf
Last active November 1, 2024 06:31
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@greenido
greenido / gce-vpn-install.sh
Last active March 31, 2022 14:11
Installing vpn on GCE
#!/bin/sh
#
# Automatic configuration of a VPN on GCE debian-7-wheezy server.
# Tested only on debian-7-wheezy.
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Thx to: https://github.com/sarfata/voodooprivacy/blob/master/voodoo-vpn.sh for the code/idea
#
@MoOx
MoOx / index.js
Last active October 20, 2024 20:10
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@pwaller
pwaller / docker-compose.yml
Last active February 20, 2018 01:07
selenium hub docker-compose file
hub:
image: selenium/hub
ports:
- "127.0.0.1:4444:4444"
chrome:
image: selenium/node-chrome-debug
links: [hub]
external_links:
- myapplication_frontend_1:pdftables
@nicolai86
nicolai86 / main.go
Last active November 1, 2020 16:43
AWS es Proxy in go
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
@MatthiasKunnen
MatthiasKunnen / create_labels.sh
Last active May 18, 2018 15:50 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
@mrook
mrook / build.yml
Created December 29, 2016 08:41
Sample Phing build.yml
---
project:
_basedir: "."
_default: phpunit
_name: "Phing Build Tests"
items:
-
property:
-
_name: tests.dir
@rezan
rezan / self_route.vcl
Last active February 28, 2024 12:56
Self routing Varnish Cache cluster example
# Self routing cluster example
vcl 4.0;
import directors;
backend node1 {
.host = "node1.example.com";
.port = "80";
}
@whizzzkid
whizzzkid / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Last active December 3, 2022 15:43
[XPS 15 Early 2017 9560 kabylake] Making Nvidia Drivers + (CUDA 8 / CUDA 9 / CUDA 9.1) + Bumblebee work together on linux ( Ubuntu / KDE Neon / Linux Mint / debian )
# Instructions for 4.14 and cuda 9.1
# If upgrading from 4.13 and cuda 9.0
$ sudo apt-get purge --auto-remove libcud*
$ sudo apt-get purge --auto-remove cuda*
$ sudo apt-get purge --auto-remove nvidia*
# also remove the container directory direcotory at /usr/local/cuda-9.0/
# Important libs required with 4.14.x with Cuda 9.X
$ sudo apt install libelf1 libelf-dev
@Hywan
Hywan / Pi.php
Last active March 4, 2017 15:04
Address RFC 52 from Hoa
<?php
require 'vendor/autoload.php';
use Hoa\File;
use League\CommonMark;
const DIRECTORY_TO_SCAN = '../Acl';
const NAMESPACE_TO_SCAN = 'Hoa\\\Acl\\\\';
const DOCUMENTATION_SECTION = 'Examples';