Skip to content

Instantly share code, notes, and snippets.

@yulrizka
yulrizka / devise.id.yml
Created December 25, 2010 03:14
Devise Indonesian translation (terjemahan devise untuk bahasa indonesia)
id:
errors:
messages:
not_found: "tidak ditemukan"
already_confirmed: "sudah di konfirmasi"
not_locked: "tidak dikunci"
devise:
failure:
unauthenticated: 'Anda harus mendaftar atau sign in sebelum melanjutkan .'
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active March 3, 2025 07:58
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@gitaarik
gitaarik / git_submodules.md
Last active March 5, 2025 08:14
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@justinweiss
justinweiss / filterable.rb
Last active January 30, 2025 13:06
Filterable
# Call scopes directly from your URL params:
#
# @products = Product.filter(params.slice(:status, :location, :starts_with))
module Filterable
extend ActiveSupport::Concern
module ClassMethods
# Call the class methods with names based on the keys in <tt>filtering_params</tt>
# with their associated values. For example, "{ status: 'delayed' }" would call
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: 'Akun anda telah berhasil dikonfirmasi. Anda telah login.'
send_instructions: 'Anda akan menerima e-mail berisi instruksi untuk melakukan konfirmasi akun dalam beberapa menit lagi.'
send_paranoid_instructions: "Jika email anda benar-benar terdaftar, anda akan menerima email untuk mengkonfirmasi akun anda dalam beberapa menit lagi."
failure:
already_authenticated: "Anda telah login."
@freeskys
freeskys / devise.id.yml
Created January 26, 2015 22:36
A translation for devise 3.4.1+ in indonesia
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: "Email anda telah berhasil dikonfirmasi."
send_instructions: "Anda akan menerima sebuah email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
send_paranoid_instructions: "Jika email anda telah terdaftar, anda akan menerima email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
failure:
already_authenticated: "Anda telah masuk."
@connorshea
connorshea / pygameinstall.md
Last active December 23, 2024 17:24
Installing Homebrew, Python, and Pygame on OS X
  1. Open the Terminal.
  2. Install Homebrew.
  1. Install Python 2.7 with brew install python
  • Optionally you can also install Python 3 with brew install python3
  • Installing either of these with install pip and pip3 respectively, a package manager for Python.
  1. Install prerequisites for pygame: brew install sdl sdl_image sdl_mixer sdl_ttf portmidi mercurial
  2. Install pygame using pip with pip install hg+http://bitbucket.org/pygame/pygame
@andyrbell
andyrbell / scanner.sh
Last active February 14, 2025 11:03
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@findmory
findmory / README.md
Last active October 3, 2024 06:36
Send Trackpad gestures over Barrier/Synergy using BetterTouchTool

Problem: Controlling a remote Mac desktop using a tool like Barrier or Synergy doesn't allow for trackpad gestures to be sent to the client machine.

Solution: Use Better Touch Tool on host machine to handle the gestures and send a remote command to the client machine.

Steps to setup:

[1] On the CLIENT machine in BTT setup these Named triggers:

@alexhwoods
alexhwoods / localhost.md
Created May 26, 2023 13:43
Route *.localhost traffic to localhost

Route *.localhost traffic to localhost

Inspired and adjusted from this gist.

  1. Install dnsmasq
brew install dnsmasq
  1. Setup