Skip to content

Instantly share code, notes, and snippets.

@qalit
qalit / rc.lua
Created December 8, 2013 08:04
Awesome Theme for Awesome WM
-- {{{ License
--
-- Awesome configuration, using awesome 3.4.10 on Ubuntu 11.10
-- * Tony N <tony@git-pull.com>
--
-- This work is licensed under the Creative Commons Attribution-Share
-- Alike License: http://creativecommons.org/licenses/by-sa/3.0/
-- based off Adrian C. <anrxc@sysphere.org>'s rc.lua
-- }}}
@qalit
qalit / zho.lua
Created December 8, 2013 08:43
theme zho for awesome WM
----------------------------------
-- "Zhongguo" awesome theme --
-- By Tony @ git-pull --
-- based on Zenburn by anrxc --
-- License: GNU GPL v2 --
----------------------------------
-- {{{ Main
theme = {}
@qalit
qalit / TestKoneksi.java
Created December 28, 2013 13:47
Test Konesi JDBC
package BLogin;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.InputMismatchException;
import java.util.Scanner;
@qalit
qalit / .Xdefaults
Created December 28, 2013 13:59
Transparan urxvt console pada Awesome WM
urxvt*foreground: #f2f2f2
urxvt*background: #101010
urxvt*color0: #101010
urxvt*color1: #f13a21
urxvt*color2: #93f91d
urxvt*color3: #ffd00a
urxvt*color4: #004f9e
urxvt*color5: #ec0048
urxvt*color6: #2aa7e7
urxvt*color7: #f2f2f2
@qalit
qalit / mariadb+galera+freebsd
Last active April 27, 2016 04:39
MariaDB + Galera Cluster pada FreeBSD Virtualisasi
Download MariaDB Galera di : downloads.mariadb.org/mariadb-galera/‎
ekstrak file tersebut, lalu compile : #tar xzf mariadb*.tar.gz & cd maria* & make && make install
setelah proses compile dan install selesai, masuk ke direktori hasil instalasi di /usr/local/ : #cd /usr/local/
tambahkan group baru untuk mysql menggunakan perintah pw : #pw groupadd mysql
adduser baru mysql : #useradd -g mysql mysql
masuk ke folder mysql : #cd mysql
set chown : #chown -R mysql .
set chgrup : #chgrp -R mysql .
install mysql mariadb pada user : #scripts/mysql_install_db --user=mysql
set chown root dan mysql : #chown -R root & chown -R mysql data
@qalit
qalit / .bashrc
Created January 3, 2014 18:17
Bash config file
#### GIT && PS1
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red