Skip to content

Instantly share code, notes, and snippets.

View nsiregar's full-sized avatar
:shipit:
go go go power rangers

Ngalim Siregar nsiregar

:shipit:
go go go power rangers
View GitHub Profile
@nsiregar
nsiregar / create_person.rb
Created February 12, 2021 02:52
STI model inheritance Rails
class CreatePerson < ActiveRecord::Migration[6.0]
def change
create_table :people do |t|
t.string :type
t.string :name
t.integer :age
end
end
end
@nsiregar
nsiregar / fontconfig
Created March 31, 2020 01:25
fontconfig
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
@nsiregar
nsiregar / i3wm_simple_config
Created March 13, 2020 16:42
simple config for i3wm
# comment baris 15 terkait font
focus_follows_mouse no
popup_during_fullscreen smart
default_border pixel 1
# untuk screenshot
# pasang scrot terlebih dahulu
bindsym --release Control+Print exec --no-startup-id scrot -s "$HOME/Pictures/%Y-%m-%d-%s_screenshot_$wx$h.png"
@nsiregar
nsiregar / keybase.md
Created April 29, 2017 23:26
Keybase Proof

Keybase proof

I hereby claim:

  • I am nsiregar on github.
  • I am nsiregar (https://keybase.io/nsiregar) on keybase.
  • I have a public key ASB6LjGxhvRcowgYGhoqebMZPfPk-GB_5-9eSnGBv7Ksjgo

To claim this, I am signing this object: