Skip to content

Instantly share code, notes, and snippets.

View mehmetkose's full-sized avatar
:electron:
Reacting

Mehmet Kose mehmetkose

:electron:
Reacting
  • Sour Cream LTD
  • Dublin, Ireland
  • 00:22 (UTC +01:00)
  • X @mehmetkose
View GitHub Profile
@mehmetkose
mehmetkose / javascript-mulakat-sorulari.md
Last active October 11, 2022 20:16
Javascript Mülakat Soruları

# Javascript Mülakat Soruları

1 - Array içindeki rakamları birer arttırın

Array içindeki rakamları birer arttırın

source

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/mobiroller/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
Verifying my Blockstack ID is secured with the address 18h4Xkg9mFhwhLgokzBkggLQ5RD6KAiAvs https://explorer.blockstack.org/address/18h4Xkg9mFhwhLgokzBkggLQ5RD6KAiAvs
@mehmetkose
mehmetkose / iterm-fish-fisherman-meslo-osx.md
Created March 27, 2018 22:28 — forked from ghaiklor/iterm-fish-fisherman-meslo-osx.md
iTerm 2 + fish + fisherman + Material Design + Meslo
@mehmetkose
mehmetkose / server.go
Created October 10, 2017 17:00 — forked from hectorcorrea/server.go
An example on how to generate a local SSL certificate in Go and serve HTTPS traffic with it
// An example on how to generate a local SSL certificate in Go
// and serve HTTPS traffic with it.
//
// Code taken from the book Go Web Programming by Sau Sheong Chang
// https://github.com/sausheong/gwp
//
// Run with `--https` to serve traffic via HTTPS (it will create the certificate
// and private key files if they don't exist)
//
// Run with no parameters to serve traffic via HTTP (no certificates needed)
@mehmetkose
mehmetkose / server.go
Created October 10, 2017 16:58 — forked from bouk/server.go
Go server with automatic Let's Encrypt registration and graceful restarts
package main
import (
"crypto/tls"
"github.com/facebookgo/grace/gracehttp"
"log"
"net/http"
"rsc.io/letsencrypt"
)
@mehmetkose
mehmetkose / https.go
Created October 10, 2017 16:57 — forked from kennwhite/https.go
Simple https http/2 static web server with HSTS & CSP (A+ SSLLabs & securityheaders.io rating) in Go using LetsEncrypt acme autocert
package main
import (
"crypto/tls"
"golang.org/x/crypto/acme/autocert"
"log"
"net"
"net/http"
)
package main
import (
"fmt"
"net/url"
"github.com/PuerkitoBio/goquery"
"time"
"strings"
"strconv"
"math/rand"
@mehmetkose
mehmetkose / Ethereum_testnet.md
Created August 17, 2017 18:01 — forked from 0mkara/Ethereum_private_network.md
Ethereum testnet configuration guide.

Create your own Ethereum testnet

Introduction

We will be using 3 virtual machines as 3 Ethereum node. We used 'Ubuntu Server 14.04 LTS trusty', and 'Ubuntu 15.10 wily' for this experiment. Root Ethereum node will be referred as 'root node', client nodes will be referred as 'client node A' & 'client node B' respectively. On root node port 30303 must be accessible from outside.

Installation

Below are the installation instructions for the latest versions of Ubuntu. This step must be executed and Ethereum go client 'geth' must be installed on every node.

@mehmetkose
mehmetkose / install.sh
Last active August 17, 2017 16:20
ethereum on armbian
cd ~
apt-get update
apt-get upgrade
wget https://storage.googleapis.com/golang/go1.8.3.linux-armv6l.tar.gz
tar -C /usr/local -xzf ~/go1.8.3.linux-armv6l.tar.gz
rm ~/go1.8.3.linux-armv6l.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc