Skip to content

Instantly share code, notes, and snippets.

View v0lkan's full-sized avatar
🎸
totally rocking it 🚀.

Volkan Özçelik v0lkan

🎸
totally rocking it 🚀.
View GitHub Profile
@v0lkan
v0lkan / install-docker.sh
Last active September 3, 2022 00:45
Install Docker on EC2 Linux
# Install Docker:
sudo yum update
sudo yum search docker
sudo yum info docker
sudo yum install docker
# Start the docker daemon:
sudo systemctl start docker
# Check Docker’s status:
@v0lkan
v0lkan / AutoHotKey.ahk
Last active October 10, 2020 11:30
My AutoHotKey Setup to use typographical quotes and dashes on windows.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; map CMD to CTRL because I am on a Windows VM.
LWin::LCtrl
+![::
{
@v0lkan
v0lkan / to-akamai.go
Created March 5, 2020 01:57
to-akamai.go
func ToAkamai(url string) string {
client := &http.Client{
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
}}
resp, err := client.Get(url)
if err != nil {
return ""
@v0lkan
v0lkan / loop.js
Created January 19, 2019 06:13
Promise Loop
/*
* \
* \\,
* \\\,^,.,,. JavaScript: from Zero to Hero
* ,;7~((\))`;;,, <zerotoherojs.com>
* ,(@') ;)`))\;;', an extraordinary course to learn JavaScript
* ) . ),(( ))\;, and related technologies
* /;`,,/7),)) )) )\,,
* (& )` (,((,((;( ))\,
*
@v0lkan
v0lkan / gist:e181067a94ba87d66b6708c358f2c892
Created January 17, 2019 07:03
work-it-do-it-makes-us-stronger.js
const workIt = () => "work it";
const makeIt = () => "make it";
const doIt = () => "do it";
const makesUs = () => "makes us";
function* stepper() {
yield "harder";
yield "better";
yield "faster";
yield "stronger";
@v0lkan
v0lkan / pronounce.txt
Last active August 9, 2019 12:35
pronounciation notes
English Study:
th sound:
think about this thing that thing and those things
@v0lkan
v0lkan / paste
Created July 26, 2018 02:57
pate
latentflip.com/loupe/?code=c3R1ZmYgPSBbJ2xvcmVtJywgJ2lwc3VtJywgJ2RvbGFyJywgJ3NpdCcsICdhaG1ldCddOwoKCm5ld1N0dWZmID0gc3R1ZmYubWFwKCh3aGF0KSA9PiB7CiAgIHJldHVybiB3aGF0ICsgJyAnICsgJ015IG1hbiEnOyAKfSk7Cgpjb25zb2xlLmxvZyhuZXdTdHVmZik7!!!PGJ1dHRvbj5DbGljayBtZSE8L2J1dHRvbj4%3D
@v0lkan
v0lkan / zerotoherojs.com-outline.js
Last active January 18, 2023 18:49
“JavaScript: from Zero to Hero” Course Outline
/*
*
*/
(function closure() {
const courseOutline = [
{
title: 'Introduction',
lessons: [
{ title: 'About “JavaScript: from Zero to Hero”' },
@v0lkan
v0lkan / ifaces.js
Last active March 18, 2019 02:53
Returns the non-local network IPv4 interaces on the machine as an Array
const os = require('os');
// for lo-dashers:
// _(os.networkInterfaces()).values().flatten().where({ family: 'IPv4', internal: false }).pluck('address');
// should give a similar output.
//
// or for burrito-lovers:
// pluck(query(flatten(values(os.networkInterfaces())))({family: 'IPv4', internal: false}))('address');
//
// or for ramda-lovers:
@v0lkan
v0lkan / rafraf.js
Last active May 5, 2018 16:03
Double requestAnimatioFrame FTW!
const rafraf = (callback) => {
if (!window.requestAnimationFrame) {return null;}
return window.requestAnimationFrame(() =>
window.requestAnimationFrame(callback)
);
};