Skip to content

Instantly share code, notes, and snippets.

View bsormagec's full-sized avatar
:shipit:
Hello World!

Burak Sormageç bsormagec

:shipit:
Hello World!
  • Laravel, Blockchain, Web3, Solidity, NodeJs
  • Toronto,Canada
  • X @bsormagec
View GitHub Profile
@bsormagec
bsormagec / setup_wp.sh
Created December 4, 2017 21:34 — forked from emmanuelstroem/setup_wp.sh
setup_wordpress_ubuntu
#!/bin/sh
export DEBIAN_FRONTEND="noninteractive"
# command line arguments
if [ $# -gt 0 ]; then
echo "Your command line contains $# arguments"
domain_name="$1"
else
echo "Your command line contains no arguments"
domain_name="emmanuelopio"
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@bsormagec
bsormagec / Vagrantfile
Created November 12, 2017 09:13 — forked from saboyutaka/Vagrantfile
vagrant for AmazonLinux, php71, laravel, nginx, mysql, redis
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2".freeze
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mvbcoding/awslinux"
# Mount shared folder
config.vm.synced_folder ".", "/vagrant/www"
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: pantybay
name: pantybay
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
@bsormagec
bsormagec / Vagrantfile
Created November 12, 2017 09:13 — forked from neilndev/Vagrantfile
Laravel 5.4, apache2 and redis
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
@script = <<SCRIPT
# Variables
db_host=127.0.0.1
root_passwd=sat
db_name=uprojectdb
@bsormagec
bsormagec / laravel-5.md
Last active November 12, 2017 19:37 — forked from alemohamad/laravel-5.md
Laravel Starter Kit

Install Laravel 5 through Composer

First install Composer, then:

$ composer create-project laravel/laravel <project-name>

After that we can start a webserver, and test the default index page:

@bsormagec
bsormagec / golang.sh
Created November 1, 2017 12:29 — forked from jacoelho/golang.sh
Install golang debian/ubuntu
#!/bin/bash
export GOLANG_VERSION=1.9
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
export GOLANG_DOWNLOAD_SHA256=d70eadefce8e160638a9a6db97f7192d8463069ab33138893ad3bf31b0650a79
apt-get update -qq
apt-get install -y --no-install-recommends \
g++ \
@bsormagec
bsormagec / 3_nodes.sh
Created October 10, 2017 17:33 — forked from aitoroses/3_nodes.sh
configuring glusterfs
# Assumming we have 3 nodes
NODE1=10.0.1.1
NODE2=10.0.1.2
NODE3=10.0.1.3
# Configure the server
ssh root@NODE1 apt-get install -y glusterfs-server
ssh root@NODE2 apt-get install -y glusterfs-server
ssh root@NODE3 apt-get install -y glusterfs-server
ssh root@NODE1 gluster peer probe NODE2
@bsormagec
bsormagec / webm.md
Created September 26, 2017 08:18 — forked from ndarville/webm.md
4chan’s guide to converting GIF to WebM - https://boards.4chan.org/g/res/41212767

Grab ffmpeg from https://www.ffmpeg.org/download.html

It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.

The most trivial operation would be converting gifs:

ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  • -crf values can go from 4 to 63. Lower values mean better quality.
  • -b:v is the maximum allowed bitrate. Higher means better quality.
@bsormagec
bsormagec / nginx.conf
Created September 25, 2017 07:34 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048