Skip to content

Instantly share code, notes, and snippets.

View berkant's full-sized avatar

Berkant İpek berkant

View GitHub Profile
@berkant
berkant / bot.js
Created July 24, 2018 11:06
Spys.One Socks Proxy Scraper
var casper = require('casper').create();
// meaning 30 proxies in default
var ProxiesPerPage = 0;
switch(casper.cli.get('count')) {
case 30:
ProxiesPerPage = 0;
break;
case 50:
@berkant
berkant / main.go
Last active August 30, 2018 14:15
tr.wikipedia.org Reverse Proxy in Go
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
)
var (
package main
import (
"fmt"
"time"
"runtime"
)
func printTime() {
for i := 0; i < 5; i++ {
@berkant
berkant / Dockerfile
Last active July 23, 2019 14:25
Sourcegraph Tweaked Dockerfile and NGINX Configuration for NGINX Reverse Proxy
FROM sourcegraph/server:3.6.0
# Reset original entrypoint from base image.
ENTRYPOINT []
# Grab tweaked nginx.conf.
# See https://gist.github.com/0xbkt/aa8d977d2b7f17b091af6d23fad36927.
ADD https://gist.githubusercontent.com/0xbkt/aa8d977d2b7f17b091af6d23fad36927/raw/nginx.conf /etc/sourcegraph/
# Disable self-signed SSL of Management Console.
@berkant
berkant / cloud-init.cfg
Last active April 26, 2024 17:58
Cloud-init config to set up my Ubuntu dev machine.
## template: jinja
#cloud-config
{% if v1.distro_release == 'focal' %}
users:
- name: berkant
shell: /usr/bin/bash
ssh_import_id: gh:berkant
sudo: ALL=(ALL:ALL) NOPASSWD:ALL