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 / 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 / index.php
Created November 1, 2017 13:46
Multi Site domain for CI 3
// index.php
$domain = $_SERVER['SERVER_NAME'];
$site_id = 0; // default
switch ($domain)
{
case 'www.domain1.com':
$site_id = 1;
break;
case 'www.domain2.com':
$site_id = 2;
@lanuma
lanuma / endian.py
Last active January 25, 2017 16:37
Writeup Agrihack ~ Basic ~ Endian
#!/usr/bin/python
#Angga Lanuma
import re
import telnetlib
def little(x):
return re.findall(r'.{1,2}',x,re.DOTALL)
@lanuma
lanuma / flag.py
Last active December 25, 2016 18:05
3DS CTF | Results does not matter!!!
#!/usr/bin/python
import sys
import hashlib
a = 334453
b = 335624 # 1010001111100001000
hitung_c = a ^ b # a XOR b
c = hitung_c
d = 0x200
e = 318
@lanuma
lanuma / extract_rtp.sh
Created December 16, 2016 20:41
Extract RTP from pcap to raw and convert to wav
#!/bin/bash
pcap_file="voip.pcap"; #nama file pcap
audio_output="suara.wav"; #output audio
raw_file="suara.raw"; #nama raw file hasil extract
if [ $EUID -ne 0 ]; then
echo "This script must be run as root";
exit 1;
fi
@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: