Skip to content

Instantly share code, notes, and snippets.

View lanuma's full-sized avatar
🏠
Working from home

Angga Lanuma lanuma

🏠
Working from home
View GitHub Profile
@lanuma
lanuma / my.cnf
Created January 23, 2021 15:11 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@lanuma
lanuma / laravel-multiple-env-setup.php
Created April 22, 2018 15:32 — forked from msankhala/laravel-multiple-env-setup.php
Setup Multiple Environment for Laravel 5 Developers Way
<?php
/*
|--------------------------------------------------------------------------
| Follow this instructions:
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
@lanuma
lanuma / README.md
Created February 16, 2018 08:26 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@lanuma
lanuma / git-deployment.md
Created February 16, 2018 08:09 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

@lanuma
lanuma / Python IRC Bot
Created June 26, 2016 09:21
Basic python irc bot that responds to irc server pings, can op/deop, voice/devoice, ban/unban, change topic, send notices, etc.
#!/usr/bin/env python
# victorvortex.py - A simple Python IRC bot
# Authors: mrtux and OldCoder
# License: CC BY-NC-SA 3.0
# Revision: see git rev.
#---------------------------------------------------------------------
# Suggestions.
# These are just suggestions: