Skip to content

Instantly share code, notes, and snippets.

View ekalaya's full-sized avatar

Ekalaya Manullang ekalaya

View GitHub Profile
## How to install mcrypt in php7.2
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
##
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
@ekalaya
ekalaya / sources.list
Created October 30, 2018 03:24
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@ekalaya
ekalaya / ajax_img_rotate.php
Created September 8, 2017 09:13 — forked from symps/ajax_img_rotate.php
Image rotation using PHP, javascript and AJAX
<?php
$image = "images/me.jpg";//your image source
if(isset($_POST["degree"])){
// Rotation Degree
$degree = $_POST["degree"];
// new image
$source = imagecreatefromjpeg($image);
$rotate = imagerotate($source, $degree, 0);
$image = imagejpeg($rotate, realpath($image), 100);
@ekalaya
ekalaya / Aircrack Commands
Created October 11, 2016 20:01 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]