Skip to content

Instantly share code, notes, and snippets.

View mufid's full-sized avatar

Mufid mufid

View GitHub Profile

Internet penuh dengan hate speech menjelang pemilu. Ada apakah?

Wajar, wajar, kaya baru kenal internet aja :)) Di US, internet awal-awal dipakai untuk militer dan akademisi. Begitu dibuka ke publik, internet memiliki wajah yang berbeda. Yes, i am also mentioning Usenet.

Lantas gimana? Biarin aja. Pengguna internet di Indonesia akan tumbuh menjadi dewasa (Begitupun kamu!) seiring berjalannya waktu. Malesbanget dan 1cak mungkin perwujudan dari 9gag dan/atau 4chan di Indonesia (Itu belum seberapa, site/komunitas lain tidak bisa saya sebut di sini). Hate speech, parody, meme, segalanya bermunculan. Meanwhile, kita bisa duduk-duduk diam menikmati lelucon yang mereka sajikan.

-- Let's be serious here. Jika lu orang yang beriman, lu pasti percaya mereka yang berperilaku jelek akan tergantikan. Ya, begitulah bumi ini tercipta, kan? Ah, terlalu filosofis. Terserah. Anyway, tidak perlulah terlalu lebay menanggapi hate speech di internet (Yth. Ibu Negara :) ). Suatu saat nanti, pasti akan muncul media yang sangat obj

~ fid@lab
$ ps haux
root 1 0.0 0.2 93504 4752 ? Ss 11:07 0:01 /sbin/init
root 2 0.0 0.0 0 0 ? S 11:07 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 11:07 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S 11:07 0:00 [kworker/0:0]
root 5 0.0 0.0 0 0 ? S< 11:07 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S 11:07 0:00 [migration/0]
root 8 0.0 0.0 0 0 ? S 11:07 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 11:07 0:00 [rcuob/0]
@mufid
mufid / golput.md
Last active August 29, 2015 13:57

Gw membantu rekan-rekan yang mencoba mengurangi angka golput dengan membuat artikel publik di sini. Cheers! Advertise problem ini ya! :D

Jadi, alasan golput itu adalah karena tidak percaya dengan pemerintah. Jadi ada 2 solusi atas ini:

  • solusi pertama adalah dengan memilih salah satu partai/ca-wa-pres/caleg DAN mengawal kinerja mereka. ANDAI kinerja mereka buruk di tengah pemerintahan, maka kita akan lakukan petisi / aksi protes.
  • solusi kedua adalah dengan tidak memilih, karena toh semua partai juga korupsi. TETAPI, jangan lupa seharusnya kita bisa memilih yang least evil dari semua evil.
  • solusi ketiga adalah dengan membuat pesta pemilu, mungkin itu adalah seminar / talkshow yang membahas kenapa kita harus gak golput.

Sederhana? Tetapi kedua solusi ini sepertinya tidak meng-cover masalah utama: tidak percaya (lagi) dengan pemerintah, menganggap siapapun yang terpilih, sama saja.

#!/bin/env ruby
# MIT License
# Debug purpose
first = true;
# Some dummy class
class Student
attr_accessor :id # Retrieved from myself.txt
attr_accessor :full_name # Retrieved from myself.txt
body {
background: red !important;
}
@mufid
mufid / README.md
Created December 4, 2014 15:32
Homakov's No-captcha Recaptcha Clickjacking

Having Fun with Java's Null

So lately i have been diving really deep (or not really) into Java. I found Java's null is interesting. I think, i hate NullPointerException very much. And most of the time, i hate my own way to deal with those things.

Btw, if you hate compiling Java's code just to test a one-line command, you may use [JavaRepl], which will give you an interactive mode of Java compiler.

String Concatenation

This is interesting. If you run

@mufid
mufid / gist:c92b876d28437400597a
Created May 7, 2015 01:20
ruby-descriptive-statistics-sample.rb
#!/usr/bin/env ruby
require "rubygems"
require 'descriptive_statistics'
arr = []
ARGF.each_with_index do |line, idx|
# print ARGF.filename, ":", idx, ";", line
arr << line.to_i if line.to_i > 0
@mufid
mufid / g_rbt_asia_fetcher.rb
Created July 20, 2015 02:07
g_rbt_asia_fetcher.rb
class GRbtAsia < Fetcher
BASE_URL = "https://rbt.asia/g"
PAGE_TEMPLATE = "https://rbt.asia/g/g?task=page&page=%{page}"
THREAD_TEMPLATE = "https://rbt.asia/g/thread/%{thread}"
def fetch_page page_num
puts "Start fetch page #{page_num}"
html = RestClient.get(PAGE_TEMPLATE % {page: page_num})
doc = Nokogiri::HTML(html)
@mufid
mufid / php.ini
Created July 14, 2012 04:59
php.ini Development (Uniform)
[PHP]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; About php.ini ;
; Uniform Server Development php.ini ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.