Skip to content

Instantly share code, notes, and snippets.

View zmiftah's full-sized avatar
💭
Waiting List ...

Zein Miftah zmiftah

💭
Waiting List ...
  • West Java, Indonesia
View GitHub Profile
@zmiftah
zmiftah / emulated_device.txt
Created August 22, 2017 06:42
User Agent List
Emulated Device
Name: Samsung Galaxy Mega 5.8
Reso: 540 x 960
UA: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; ALCATEL ONE TOUCH Fierce Build/JDQ39)
AppleWebKit/534.30 (KHTML, like Gecko)
Version/4.2 Mobile Safari/534.30
@zmiftah
zmiftah / Dockerfile
Created April 2, 2017 05:50
From repo the-control-group/docker-laravel5
FROM php:7.0-apache
MAINTAINER Tony Lea <[email protected]>
EXPOSE 80
RUN docker-php-ext-install pdo pdo_mysql mysqli
RUN apt-get update && \
apt-get install -qqy \
libmcrypt-dev \
@zmiftah
zmiftah / dota2_heroes_list.md
Last active April 17, 2017 06:56
Heroes has Kill Score more then 10 points

Old List

OD Ember Huskar Necro Weaver PA Sniper Jugg

@zmiftah
zmiftah / git_command_history.txt
Last active April 22, 2019 06:30
Git Command History so that I won't forget
Q: How to add files
A: git add -A
Q: How to commit changes
A: git commit -am "Comment"
Q: How to see history of commits
A: git log --oneline --decorate
Q: How to undo `git add -A`
@zmiftah
zmiftah / docker-compose.txt
Created December 22, 2016 02:15
Overview of Docker Compose
Define and run multi-container applications with Docker.
Usage:
docker-compose [-f=<arg>...] [options] [COMMAND] [ARGS...]
docker-compose -h|--help
Options:
-f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
-p, --project-name NAME Specify an alternate project name (default: directory name)
--verbose Show more output
@zmiftah
zmiftah / st3-plugins.md
Last active June 15, 2017 05:58
List of SublimeText 3 Plugins and Settings

Sublime Install

  • Git
  • GitGutter
  • GitStatusBar
  • SidebarEnhancement
  • SublimeLinter
  • SublimeLinter-php

Theme

@zmiftah
zmiftah / PositiveInteger.js
Created October 10, 2016 09:37 — forked from sphingu/PositiveInteger.js
Only Positive Integer allow in Textbox using JQuery
$(".positive-integer").numeric({ decimal: false, negative: false }, function () { alert("Positive integers only"); this.value = ""; this.focus(); });
@zmiftah
zmiftah / xhr_with_promise.js
Created September 27, 2016 03:36
XHR Get Request with Promise
function get(url) {
// Return a new promise.
return new Promise(function(resolve, reject) {
// Do the usual XHR stuff
var req = new XMLHttpRequest();
req.open('GET', url);
req.onload = function() {
// This is called even on 404 etc
// so check the status
@zmiftah
zmiftah / unknown.xml
Created June 21, 2016 06:29
Giberrish VML
<w:drawing>
<wp:anchor distT="0" distB="0" distL="114300" distR="114300" simplePos="0" relativeHeight="251651072" behindDoc="1" locked="1" layoutInCell="1" allowOverlap="1">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
<wp:align>center</wp:align>
</wp:positionH>
<wp:positionV relativeFrom="page">
<wp:align>center</wp:align>
</wp:positionV>
<wp:extent cx="7552690" cy="10692130"/>
@zmiftah
zmiftah / class_singleton.php
Created April 26, 2016 02:20
PHP Design Pattern : Singleton Class
<?php
/**
* Source : http://www.phptherightway.com/pages/Design-Patterns.html
*/
class Singleton
{
/**
* @var Singleton The reference to *Singleton* instance of this class
*/
private static $instance;