Skip to content

Instantly share code, notes, and snippets.

View AlifArnado's full-sized avatar

alif benden arnado AlifArnado

  • Ghost Protocol
  • Ghost City
View GitHub Profile
@AlifArnado
AlifArnado / Koneksi_MongoDB.php
Last active November 1, 2015 05:21
test gits
<?php
// create object Class MongoDB
$mongo = new MongoClient();
$db = new Mongo();
$db = $mongo->percobaan;
$collection = $db->profil;
$collection->remove(array('_id' => new MongoId("DB003")), true);
@AlifArnado
AlifArnado / gmail.php
Created November 6, 2015 04:38 — forked from tutweb/gmail.php
Mendapatkan list email dari Gmail dengan PHP
<?php
function check_email($username, $password)
{
//Connect Gmail feed atom
$url = "https://mail.google.com/mail/feed/atom";
// Send Request to read email
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
@AlifArnado
AlifArnado / MySQL.sublime-build
Created November 8, 2015 15:54
MySQL Build using Editor Sublime Text 2
{
"cmd": ["mysql", "-uroot", "-proot", "-e", "source $file", "-v"],
"selector": "source.sql"
}
@AlifArnado
AlifArnado / iseng.php
Last active November 16, 2015 03:58
Flag indonesia blur picture
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iseng</title>
<!-- <link rel="stylesheet" href="style.css"> -->
</head>
<body>
<div>
@AlifArnado
AlifArnado / Preferences.sublime-settings
Created November 18, 2015 19:23
setting user in sublime text 3
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/SyntaxHighlighterReloaded (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"fallback_encoding": "UTF-8",
"findreplace_small": true,
@AlifArnado
AlifArnado / nmapScan.php
Created November 20, 2015 13:33
Testing Call System Nmap Using PHP
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Scanner Port Using NMap PHP</title>
<link rel="stylesheet" href="">
</head>
<body>
<form method="POST" action="">
@AlifArnado
AlifArnado / zsh.md
Created November 23, 2015 13:09 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@AlifArnado
AlifArnado / my.js
Created November 23, 2015 17:14
Pemisah harga menggukan titik
function tandaPemisahTitik(b){
var _minus = false;
if (b<0) _minus = true;
b = b.toString();
b=b.replace(".","");
b=b.replace("-","");
c = "";
panjang = b.length;
j = 0;
for (i = panjang; i > 0; i--){
@AlifArnado
AlifArnado / create_captcha_php.php
Created November 27, 2015 17:11
membuat captcha menggunakan php image
<?php
session_start();
$_SESSION['count'] = time();
$image;
?>
<title>demo.php</title>
<body style="background-color:#ddd; ">
<?php
@AlifArnado
AlifArnado / addToSet_MongoDB.json
Created November 29, 2015 06:08
menambahkan data didalam subquery dengan MongoDB
> db.investori.find().pretty();
{
"_id" : ObjectId("565a935647bae189db6b9962"),
"item" : "ABC1",
"detail" : {
"model" : "14Q3",
"manufacture" : "XYZ Company"
},
"stok" : [
{