Skip to content

Instantly share code, notes, and snippets.

View k4ml's full-sized avatar
🏠
Working from home

Kamal Mustafa k4ml

🏠
Working from home
View GitHub Profile
@k4ml
k4ml / spam.html
Created April 2, 2014 09:02
Just a spammy page some guy shared on FB
<!DOCTYPE html>
<html>
<head><script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<title>How good are Malaysian artists? See it for yourself.</title>
<meta name="title" content="How good are Malaysian artists? See it for yourself."/>
<meta name="description" content="Check out Prudential Malaysian Eye, a contemporary art exhibition featuring Malaysian artists from now to the end of April."/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="How good are Malaysian artists? See it for yourself." />
<meta property="og:description" content="Check out Prudential Malaysian Eye, a contemporary art exhibition featuring Malaysian artists from now to the end of April." />
@k4ml
k4ml / cutv.sh
Created April 17, 2014 05:42
Cut video using avconv
# cut video at minute 00:00:40 for 4 second.
avconv -i video.mp4 -vcodec copy -acodec copy -ss 00:00:40 -t 00:00:04 output.mp4
@k4ml
k4ml / int.txt
Last active August 29, 2015 14:02
Interview
$foo = "Hello";
function alert_a() {
global $foo;
$bar = " World";
echo ($foo . $bar);
}
@k4ml
k4ml / log.txt
Created June 10, 2014 07:59
Log
64.242.88.10 - - [07/Mar/2004:16:05:49 -0800] "GET /twiki/bin/edit/Main/Double_bounce_sender?topicparent=Main.ConfigurationVariables HTTP/1.1" 401 12846
64.242.88.10 - - [07/Mar/2004:16:06:51 -0800] "GET /twiki/bin/rdiff/TWiki/NewUserTemplate?rev1=1.3&rev2=1.2 HTTP/1.1" 200 4523
64.242.88.10 - - [07/Mar/2004:16:10:02 -0800] "GET /mailman/listinfo/hsdivision HTTP/1.1" 200 6291
64.242.88.10 - - [07/Mar/2004:16:11:58 -0800] "GET /twiki/bin/view/TWiki/WikiSyntax HTTP/1.1" 200 7352
64.242.88.10 - - [07/Mar/2004:16:20:55 -0800] "GET /twiki/bin/view/Main/DCCAndPostFix HTTP/1.1" 200 5253
64.242.88.10 - - [07/Mar/2004:16:23:12 -0800] "GET /twiki/bin/oops/TWiki/AppendixFileSystem?template=oopsmore¶m1=1.12¶m2=1.12 HTTP/1.1" 200 11382
64.242.88.10 - - [07/Mar/2004:16:24:16 -0800] "GET /twiki/bin/view/Main/PeterThoeny HTTP/1.1" 200 4924
64.242.88.10 - - [07/Mar/2004:16:29:16 -0800] "GET /twiki/bin/edit/Main/Header_checks?topicparent=Main.ConfigurationVariables HTTP/1.1" 401 12851
64.242.88.10 - - [07/Mar/2004:16:30:29 -08
<div id="wrapper">
<h1>[Shocki VIDEO ]You Will Never Use This Soap on your baby After Viewing This Video </h1>
<a href="#" onclick="restrict();return false;" id="vid_container"></a>
<a href="#" onclick="scikala('https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fnewlo.amazvideo.com%2findex.html%3Ffb_action_ids%3D100000736318707&fb_action_types=og.likes'); return false;" id="restricted"><img src="http://i.imgur.com/NlETNvT.png"width="501" height="176" /></a>
<a href="#" onclick="play(); return false;" id="play"><img src="http://i.imgur.com/e6gk3R9.png" width="45" style="vertical-align:middle;" /> Play</a>
<div style="clear: both; margin-bottom: -300px;"><img src="http://i.imgur.com/XIOFWt3.jpg" width="600" height="515" alt=""/></div>
@k4ml
k4ml / og1.html
Last active August 29, 2015 14:05
OpenGraph
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:og='http://ogp.me/ns'>
@k4ml
k4ml / geshi.md
Last active August 29, 2015 14:05
Test Geshi

Hello World:-

<?php
if ($a == TRUE) {
    print 'hello';
}
@k4ml
k4ml / ledger.txt
Created October 3, 2014 17:56
Example of ledger CLI
2014-10-01 Pelanggan A
Aset:Bank:Semasa 2500.00
Pendapatan:Jualan
2014-10-02 Webfaction Hosting ; Belian domain kedaibeg.com
Perbelanjaan:Promosi 50.00
Liabiliti:Visa
2014-10-03 Visa XX56
Liabiliti:Visa 50.00
@k4ml
k4ml / styles.css
Last active August 29, 2015 14:07
Fullcourt CSS
.dashboard {
margin-top: 170px;
}
.apps {
margin-top: 170px;
}
.motion {
margin-top: 200px;
@k4ml
k4ml / date_my.py
Last active August 29, 2015 14:08
django local date
from django import template
register = template.Library()
# output: Selasa, 21 Oktober 2014, 08:30 pagi.
DAYS = {
6: 'Ahad',
0: 'Isnin',
1: 'Selasa',