Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
Working at full tilt on @katastream.

Berkant Ipek berkant

👀
Working at full tilt on @katastream.
View GitHub Profile
@berkant
berkant / cloud-init.cfg
Last active Jul 27, 2021
This is to initialize my (remote) development machine.
View cloud-init.cfg
## template: jinja
#cloud-config
{% if v1.distro_release == 'focal' %}
users:
- name: owner
shell: /usr/bin/bash
ssh_import_id: gh:berkant
sudo: ALL=(ALL:ALL) NOPASSWD:ALL
@berkant
berkant / Dockerfile
Last active Jul 23, 2019
Sourcegraph Tweaked Dockerfile and NGINX Configuration for NGINX Reverse Proxy
View Dockerfile
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.
View runtime_gosched.go
package main
import (
"fmt"
"time"
"runtime"
)
func printTime() {
for i := 0; i < 5; i++ {
@berkant
berkant / main.go
Last active Aug 30, 2018
tr.wikipedia.org Reverse Proxy in Go
View main.go
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
)
var (
@berkant
berkant / bot.js
Created Jul 24, 2018
Spys.One Socks Proxy Scraper
View bot.js
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: