Skip to content

Instantly share code, notes, and snippets.

View maman's full-sized avatar
🔥

Achmad Mahardi maman

🔥
View GitHub Profile
@maman
maman / phantomjs19.json
Last active December 22, 2015 09:45
PhantomJS 1.9.8 scoop install script
{
"homepage": "http://phantomjs.org/",
"version": "1.9.8",
"license": "BSD",
"hash": "da36853ece7d58b6f50813d3e598d8a16bb191b467ac32e1624a239a49de9104",
"url": "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-windows.zip",
"extract_dir": "phantomjs-1.9.8-windows",
"bin": "phantomjs.exe"
}

Keybase proof

I hereby claim:

  • I am maman on github.
  • I am maman (https://keybase.io/maman) on keybase.
  • I have a public key whose fingerprint is 27D4 9376 37EA 760B DC90 2F0F 6120 DE5D 0E79 699D

To claim this, I am signing this object:

<?php
require_once '../vendor/autoload.php';
use Pimple\Container;
$c = new Container();
/* Starting Session First */
session_cache_limiter(false);
session_start();
  1. Akses website https://openshift.redhat.com/app/ dan pastikan anda sudah menjadi member.
  2. Setelah account aktif (sudah terferivikasi) maka kita sudah bisa create applikasi di dalam OpenShift
  3. Dalam pembuatan aplikasi di dalam openshift ini kita diwajibkan membuat namespace dan domain namesebagai penamaan aplikasi yang akan kita instal di openshift (exp: namespace-domainname.rhcloud.com)
  4. Pembuatan namespace ini ada dua cara, yang pertama melalui Tab menu Application yang ada di website openshift - yang kedua melalui command line / console. Pada kasus yang saya demokan ini kami menggunakan command line dalam pembuatan namespace, instalasi ruby dan sekaligus upload aplikasinya yaitu dashing.
  5. Install client tools (rhc) melalui command line : gem install rhc
  6. Setelah berhasil instal rhc lakukan rhc setup yang berfungsi untuk login kedalam account openshift yang sudah anda buat. Setelah kita memasukkan username dan password anda maka akan muncul generate a taken now? (yes/no) - ketikkan `Yes
namespace ReportSamples {
class HelloWorld {
public static void Main() {
Document document = new Document();
PdfWriter.GetInstance(document, new FileStream("HelloWorld.pdf", FileMode.Create));
document.Open();
document.Add(new Paragraph("Hello World!"));
document.Close();
System.Diagnostics.Process.Start("HelloWorld.pdf");
}
@maman
maman / app.scss
Created August 4, 2013 12:25
front-end dev workflow
/* Import */
@import "compass";
@import "global";
@import "normalize";
@import "foundation";
@maman
maman / rtorrent-0.9.2_canvas_color.patch
Created July 2, 2013 05:40
rtorrent 0.9.2 color patch
diff --git a/src/command_network.cc b/src/command_network.cc
index 82155b7..3e163b3 100644
--- a/src/command_network.cc
+++ b/src/command_network.cc
@@ -241,6 +241,15 @@ initialize_command_network() {
CMD2_VAR_BOOL ("log.handshake", false);
+ CMD2_ANY ("colors.done_fg_color", tr1::bind(&ui::Root::get_done_fg_color, control->ui()));
+ CMD2_ANY_VALUE_V ("colors.done_fg_color.set", tr1::bind(&ui::Root::set_done_fg_color, control->ui(), tr1::placeholders::_2));
@maman
maman / configure.diff
Last active December 18, 2015 06:09
Homebrew recipe for ncursesw - ncurses with wide-chars support
--- configure 2011-04-01 10:35:51.000000000 +1100
+++ configure 2011-08-04 17:33:06.000000000 +1000
@@ -3216,7 +3216,7 @@
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
-for ac_prog in mawk gawk nawk awk
+for ac_prog in mawk gawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@maman
maman / Form1.vb
Created March 18, 2013 14:22
VB Balap Dokar
Public Class Form1
Dim flag, finish As Boolean
Dim mobil As String
Dim rand As New Random
Dim bet, score As Integer
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
bet = Label2.Text
score = ComboBox1.Text
Randomize()
If Racecar1.lari(rand.Next(50), 300, "Merah") = True Then
@maman
maman / README.md
Created March 17, 2013 09:04
TinyWM made with Autohotkey

tiny AHK-Based Window helper, to maximize productivity. the default keybinds are :

  • Alt + w to resize and move window to top-half.

  • Alt + x to resize and move window to bottom-half.

  • Alt + s to resize and move window to full center.

  • Alt + a to resize and move window to left-half.

  • Alt + d to resize and move window to right-half.

  • Ctrl + Alt + Space to toggle taskbar