Skip to content

Instantly share code, notes, and snippets.

View unalkalkan's full-sized avatar

Unal Kalkan unalkalkan

View GitHub Profile
@unalkalkan
unalkalkan / docker.md
Created April 27, 2022 09:18 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@unalkalkan
unalkalkan / Dockerfile.armhf.raspbian
Last active May 6, 2021 23:39
Updated Dockerfile for running moonlight-embedded on LibreELEC/Raspberry Pi systems. This Dockerfile clones the repository and builds it instead of obtaining the package from the package manager.
# Moonlight embedded for libreelec
# See https://github.com/clarkemw/moonlight-embedded-launcher for installation instructions
# See https://github.com/irtimmer/moonlight-embedded/wiki/Usage for command instructions
#
# Run syntax:
# docker run -it -v moonlight-home:/home/moonlight-user \
# -v /var/run/dbus:/var/run/dbus --device /dev/vchiq:/dev/vchiq \
# moonlight [action] (options) [host]
#
@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
@unalkalkan
unalkalkan / gist:871063c6f41b498d11e1eddc7f294125
Last active July 18, 2018 14:51
xrandr choose resolution
xrandr -s 800x600
@unalkalkan
unalkalkan / gist:becf737dc2d30ceb3917ee46a5d2312e
Created July 18, 2018 14:47
xrandr restore default settings
xrandr -s 0
@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: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 / 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 / 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