Skip to content

Instantly share code, notes, and snippets.

@erkurn
erkurn / settings.json
Last active October 25, 2022 14:11
VSCode Settings
{
"workbench.colorTheme": "Default Dark+",
"workbench.startupEditor": "none",
"php.validate.executablePath": "D:\\laragon\\bin\\php\\php-8.1.10-Win32-vs16-x64\\php",
"git.ignoreMissingGitWarning": true,
"editor.fontSize": 25,
"editor.lineHeight": 60,
"editor.fontWeight": "normal",
"editor.fontLigatures": false,
"terminal.integrated.profiles.windows": {
@erkurn
erkurn / README.md
Created December 19, 2019 10:49 — forked from arikfr/README.md
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
@erkurn
erkurn / forge.sh
Created December 19, 2018 05:29
Laravel Forge Setup Script
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#
@erkurn
erkurn / AWS Swarm cluster.md
Created August 7, 2018 03:01 — forked from ghoranyi/AWS Swarm cluster.md
Create a Docker 1.12 Swarm cluster on AWS

This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.

Prerequisites

You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.

$ docker --version
Docker version 1.12.0, build 8eab29e

You also need Docker machine installed.

@erkurn
erkurn / Connection.php
Created April 27, 2018 07:12 — forked from jsor/Connection.php
Async MySQL Client
<?php
namespace Jsor\MysqlAsync;
use React\EventLoop\LoopInterface;
use React\Promise\Deferred;
class Connection
{
private $loop;
@erkurn
erkurn / .vimrc
Created May 23, 2017 11:56
My Vimrc
set number
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'ctrlpvim/ctrlp.vim'
@erkurn
erkurn / docker-compose.yml
Created May 15, 2016 13:52
Tested For Scaling up container, laravel friendly
version: '2'
services:
mysqlserver:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=
web:
@erkurn
erkurn / data.php
Last active December 25, 2015 13:20 — forked from anonymous/data.php
<?php
class data extends CI_controller{
public function __construct(){
parent::__construct();
$this->load->model('m_daftar');
}
public function daftar(){
@erkurn
erkurn / SassMeister-input.scss
Created November 11, 2015 06:21
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
#header {
background-color: #FFF;
.logo {
height: 50px;
float: left;
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(