Skip to content

Instantly share code, notes, and snippets.

View fahmiardi's full-sized avatar

Fahmi Ardi fahmiardi

  • API Developer
  • Depok
  • X @f4hem
View GitHub Profile
@xjocrypto
xjocrypto / How to Install GUNBOT V5 Linux
Last active December 25, 2022 06:09
Step by step install of GUNBOT on a Linux server
I have recently been through the process of installing GUNBOT on Ubuntu from scratch. As a newbie I had to re-install
a few times until I got it right as I realise my server was clearly not up-to-date. Hence let me share with you what worked for
me within a matter of minutes.
I would like to share a big thank you to Dante, James Tandy, PPEe to have answered so many of my questions at the install phase.
I hope this tutorial will make it faster than it was for me ;-).
*** If you found the below helpful, you can buy me a Mojito or Amarula drink here :
BTC: L5BkDnM2fZhvzcg7HPjcnetRAvv8G9SM6Lyr1iBY2koVSCwGqxSU
ETH: 0x356A3a7C540B65BEF918e99D76c98731D57cc2a1
@cjthomp
cjthomp / nginx.conf
Created August 30, 2016 20:54 — forked from mreschke/nginx.conf
Nginx config for multiple laravel sites based on /api/v1 url paths
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2...
# This also works perfectly for all static file content in all projects
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config.
# Example:
# http://example.com - Main Laravel site as usual
# http://example.com/about - Main Laravel site about page as usual
# http://example.com/robots.txt - Main Laravel site static content as usual
# http://example.com/api/v1 - Lumen v1 api default / route
# http://example.com/api/v1/ - Lumen v1 api default / route
@osipov
osipov / gist:c2a34884a647c29765ed
Created July 21, 2014 19:12
Install Scala and SBT using apt-get on Ubuntu 14.04 or any Debian derivative using apt-get
sudo apt-get remove scala-library scala
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb
sudo dpkg -i scala-2.10.4.deb
sudo apt-get update
sudo apt-get install scala
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt
<?php
class TransformerAbstract
{
private $fields;
private $allowedFields = array('id', 'name', 'phone', 'email', 'bio', 'num_friends');
private $partialFields = array(
'id' => array('id', 'name'),
'info' => array('name', 'phone', 'email', 'bio'),
'bio' => array('bio')
@mikhailov
mikhailov / gist:9639593
Last active November 10, 2023 22:04
Nginx S3 Proxy with caching
events {
worker_connections 1024;
}
http {
default_type text/html;
access_log /dev/stdout;
sendfile on;
keepalive_timeout 65;
@rrosiek
rrosiek / install_mysql.sh
Last active June 5, 2023 07:08
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
###
#
# install_mysql.sh
#
# This script assumes your Vagrantfile has been configured to map the root of
# your application to /vagrant and that your web root is the "public" folder
# (Laravel standard). Standard and error output is sent to
# /vagrant/vm_build.log during provisioning.
@saetia
saetia / gist:1623487
Last active May 1, 2024 19:55
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat