Skip to content

Instantly share code, notes, and snippets.

View Skarlso's full-sized avatar
🐊

Gergely Brautigam Skarlso

🐊
View GitHub Profile
@Skarlso
Skarlso / README.md
Last active January 24, 2017 07:09
YouTube comment Downloader

Enalbe The following APIs here -> https://console.developers.google.com/apis/

  • Google+ API
  • YouTube Data API

Create a Project under Projects and Assign a credential for yourself. Download the credential file and put it into a file called client_secrets.json.

Install necessary libraries like this:

@Skarlso
Skarlso / README.md
Created February 10, 2017 12:58 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications you can follow me @leonardofed


@Skarlso
Skarlso / haproxy.cfg
Created February 10, 2017 21:38 — forked from thisismitch/haproxy.cfg
Let's Encrypt Auto-Renewal script for HAProxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048
@Skarlso
Skarlso / haproxy.cfg
Last active February 15, 2017 09:06
My haproxy config
global
daemon
# Set this to your desired maximum connection count.
maxconn 2048
# https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#3.2-tune.ssl.default-dh-param
# bit setting for Diffie - Hellman key size.
tune.ssl.default-dh-param 2048
defaults
option forwardfor
@Skarlso
Skarlso / map.cpp
Created February 20, 2017 13:11
Deleting Map Entry by function Pointer
#include <iostream>
#include <map>
#include <string>
#include <iterator>
#include <vector>
#include <functional>
/*
* Generic implementation to erase elements by Callback
@Skarlso
Skarlso / nginxproxy.md
Created April 10, 2017 13:16 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@Skarlso
Skarlso / client.go
Created April 25, 2017 04:38 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@Skarlso
Skarlso / jenkinslog
Last active August 3, 2017 13:35
Filter out Jenkins logs.
#!/usr/bin/env zsh
help() {
echo '
Define somewhere in your secrets:
export JENKINS_SERVER=''
export JENKINS_USERNAME=''
export JENKINS_PASSWORD='' -- token located under your users settings
Usage:
@Skarlso
Skarlso / concurrency-in-go.md
Created October 21, 2017 05:20 — forked from kachayev/concurrency-in-go.md
Channels Are Not Enough or Why Pipelining Is Not That Easy
#!/bin/bash
# Derived from http://weierophinney.net/matthew/archives/134-exuberant-ctags-with-PHP-in-Vim.html
exec etags \
--languages=PHP \
--langmap=PHP:+.phpt \
-h ".php" -R \
--exclude="\.git" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cdf \