Skip to content

Instantly share code, notes, and snippets.

View unalkalkan's full-sized avatar

Unal Kalkan unalkalkan

View GitHub Profile
@unalkalkan
unalkalkan / introrx.md
Created July 25, 2017 00:22 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@unalkalkan
unalkalkan / 4chan-wget-scraping.md
Created December 22, 2017 14:22 — forked from tayfie/4chan-wget-scraping.md
how to scrape images from 4chan using wget

How To Scrape Images from 4chan Using Wget

This guide is to save other sorry plebs from needing to RTFM in figuring out how to use wget to scrape images from 4chan and other imageboards. There are lots of image downloaders in existence, but they are usually outdated and broken. You will save time following this guide to learn how to use a powerful and general purpose tool instead.

What Is Wget?

Wget is a command-line file downloader that can handle just about any file downloading task normal and power users will ever need to do. It has versions available for Windows, Mac, and Linux. If it is not already installed on your machine, install it now.

Basic syntax

@unalkalkan
unalkalkan / openvpn-user-remove.bash
Created July 13, 2018 15:29
OpenVPN Server user removing
nano /etc/openvpn/server.conf
[Add this line to server.conf] crl-verify /etc/openvpn/pki/crl.pem
cd /etc/openvpn/
easyrsa revoke [client-name]
easyrsa gen-crl
@unalkalkan
unalkalkan / openvpn-user-add.bash
Last active July 13, 2018 15:29
OpenVPN Server user adding
easyrsa build-client-full [client-name] nopass
ovpn_getclient [client-name] > [client-name].ovpn
@unalkalkan
unalkalkan / CMakeLists.txt
Created July 13, 2018 15:52
A simple CMakeLists file for SDL2 development
cmake_minimum_required(VERSION 3.7)
project(SDL2Boilerplate)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(SDL2Boilerplate main.cpp)
target_link_libraries(SDL2Boilerplate ${SDL2_LIBRARIES})
@unalkalkan
unalkalkan / gist:4a2d31b8730de919a8aaca7007a6050c
Created July 14, 2018 11:53
Downloading a windows steam game in a linux server
steamcmd +@sSteamCmdForcePlatformType windows +login [userid] [password] +force_install_dir [install_dir] +app_update [steam_app_id] validate +quit
@unalkalkan
unalkalkan / Working Effectively with Legacy Code.md
Created July 15, 2018 00:15 — forked from jeremy-w/Working Effectively with Legacy Code.md
Notes on Michael Feathers' *Working Effectively with Legacy Code*.

Working Effectively with Legacy Code

Notes by Jeremy W. Sherman, October 2013, based on:

Feathers, Michael. Working Effectively with Legacy Code. Sixth printing, July 2007.

Foreword:

  • Software systems degrade into a mess.
  • Requirements ALWAYS change.
  • Your goal as a software developer: Create designs that tolerate change.
@unalkalkan
unalkalkan / gist:becf737dc2d30ceb3917ee46a5d2312e
Created July 18, 2018 14:47
xrandr restore default settings
xrandr -s 0
@unalkalkan
unalkalkan / gist:871063c6f41b498d11e1eddc7f294125
Last active July 18, 2018 14:51
xrandr choose resolution
xrandr -s 800x600
@unalkalkan
unalkalkan / serve.go
Created March 24, 2019 14:08 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main