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
ramazanpolat / build_install_python3.6.7.sh
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.
View build_install_python3.6.7.sh
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 https://github.com/deadsnakes/python3.6
cd python3.6
./configure --enable-optimizations
# make command will take 10 mins
make
View apistar_multipart.py
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
View coin_info.py
__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">
<template>
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);
View copyall.sh
START_DATE=`date`
SOURCE_DIR=/RMData/lbosdata/00001/
DEST_DIR=/RMData_new/lbosdata/00001/
echo "Source Dir:$SOURCE_DIR"
echo "Destination Dir:$DEST_DIR"
read -p "Press any key to continue, CTRL+C to break ..."
cd $SOURCE_DIR
DIRS=`find ./ -type d | tail -n 100 | sort`
@ramazanpolat
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
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
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 : https://build.opensuse.org/package/view_file/server:database/mongodb?file=mo…
View mongod
#!/bin/sh
# Copyright (c) 1995-2004 SUSE Linux AG, Nuernberg, Germany.
#
# Author: Andreas Schneider <asn@cynapses.org>
#
# /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.