Skip to content

Instantly share code, notes, and snippets.

Ramazan Polat ramazanpolat

Block or report user

Report or block ramazanpolat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ramazanpolat /
Last active Oct 27, 2018
Build and install python 3.6.7 from source on Ubuntu 16.04 LTS(Xenial). Includes SSL/TLS for pip.
apt install build-essential -y
apt install zlib1g-dev -y
apt install libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.5 libgdm-dev libdb4o-cil-dev libpcap-dev -y
apt update
apt upgrade
git clone
cd python3.6
./configure --enable-optimizations
# make command will take 10 mins
import os
from typing import Any
from apistar import App, Route, http
from apistar.codecs.multipart import MultiPartCodec
from werkzeug.datastructures import FileStorage
UPLOAD_FOLDER = os.path.join('.', 'uploads')
PORT = 8080
__coin_info = {
'1ST': {'name': 'FirstBlood', 'status': 'black', 'category': []},
'420G': {'name': 'GanjaCoin', 'status': 'black', 'category': ['drug']},
'4CHN': {'name': 'ChanCoin', 'status': 'black', 'category': ['gambling']},
'2GIVE': {'name': '2GIVE', 'status': 'black', 'category': ['riba']},
'ABY': {'name': 'ArtByte', 'status': 'white', 'category': []},
'ADA': {'name': 'Cardano', 'status': 'white', 'category': []},
'ADT': {'name': 'adToken', 'status': 'white', 'category': []},
'ADX': {'name': 'AdEx', 'status': 'white', 'category': []},
'AEON': {'name': 'Aeon', 'status': 'white', 'category': []},
View webpack.config.js
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
View designer.html
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<polymer-element name="my-element">
View MoTools.cs
public class MoUtils
private static readonly Random random = new Random();
public DataTable MergeDataTable(DataTable dt1, DataTable dt2)
DataTable dtMerged = new DataTable();
foreach (DataColumn dc in dt1.Columns)
dtMerged.Columns.Add(dc.ColumnName, dc.DataType);
echo "Source Dir:$SOURCE_DIR"
echo "Destination Dir:$DEST_DIR"
read -p "Press any key to continue, CTRL+C to break ..."
DIRS=`find ./ -type d | tail -n 100 | sort`
ramazanpolat / tokumx.conf
Created Nov 12, 2013
Sample TokuMX configuration file.
View tokumx.conf
# tokud.conf
dbpath = /data/mx
port = 37017
#where to log
logpath = /var/log/tokumx.log
logappend = true
rest = true
ramazanpolat / mongodb.conf
Created Nov 12, 2013
Sample MongoDB configuration file.
View mongodb.conf
# mongo.conf
dbpath = /data/db
#port = 27017
#where to log
logpath = /var/log/mongodb.log
logappend = true
rest = true
ramazanpolat / mongod
Last active Dec 28, 2015
MongoDB init script for SLES. Put your mongodb binary files in: /usr/local/mongodb/ Save this file as "mongod". # cp mongod /etc/init.d/ # chmod +x /etc/init.d/mongod # cp mongod.conf /etc/ # chkconfig --add mongod # service mongod {start|stop|restart|status} Original :…
View mongod
# Copyright (c) 1995-2004 SUSE Linux AG, Nuernberg, Germany.
# Author: Andreas Schneider <>
# /etc/init.d/mongodb
# and its symbolic link
# /(usr/)sbin/rcmongodb
# Template system startup script for some example service/daemon mongodb
You can’t perform that action at this time.