Skip to content

Instantly share code, notes, and snippets.

@luugiathuy
luugiathuy / keybase.md
Created November 3, 2018 03:00
keybase.md

Keybase proof

I hereby claim:

  • I am luugiathuy on github.
  • I am luugiathuy (https://keybase.io/luugiathuy) on keybase.
  • I have a public key ASAWSYL7LEIfOINTjvwhZpSoHQdKujltS0qIm2XvOAq_5go

To claim this, I am signing this object:

@luugiathuy
luugiathuy / Preferences.sublime-settings
Created March 3, 2016 01:45
Sublime Text 3 Preferences
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "solid",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"ensure_newline_at_eof_on_save": false,
"font_face": "Inconsolata-dz for PowerLine",
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "solid",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"ensure_newline_at_eof_on_save": false,
"font_face": "Inconsolata-dz for PowerLine",
"font_size": 13,
@luugiathuy
luugiathuy / slide.html
Created April 6, 2015 10:18
Jekyll layout for reveal.js
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
{% if page.title %}
{{ page.title }} | {{ site.title }}
{% else %}
{{ site.title }}
@luugiathuy
luugiathuy / .rubocop.yml
Created February 1, 2015 06:38
Configuration file of Rubocop for Rails development
Documentation:
Enabled: false
Style/AlignHash:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/LambdaCall:
Enabled: false
AllCops:
Exclude:
@luugiathuy
luugiathuy / Guardfile
Last active August 29, 2015 14:14
Guardfile for guard-rspec
guard 'rspec', cmd: 'bundle exec rspec' do
# run every updated spec file
watch(/^spec\/.+_spec\.rb$/)
# run the lib specs when a file in lib/ changes
watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" }
# run the model specs related to the changed model
watch(/^app\/(.+)\.rb$/) { |m| "spec/#{m[1]}_spec.rb" }
# run the view specs related to the changed view
watch(/^app\/(.*)(\.erb|\.haml)$/) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
# run the integration specs related to the changed controller
upstream app_name {
server unix:///tmp/app_name.sock;
}
server {
listen 80;
server_name example.com; # change to match your URL
root /rails/app/folder/public; # change to match your rails app public folder
@luugiathuy
luugiathuy / nginx_configuration
Last active April 6, 2018 18:58
nginx configuration
upstream app_name {
server unix:///tmp/app_name.sock;
}
server {
listen 80;
server_name www.example.com;
return 301 $scheme://example.com$request_uri;
}
@luugiathuy
luugiathuy / redis.conf
Created November 2, 2014 12:05
Redis configuration file
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes