Skip to content

Instantly share code, notes, and snippets.

Luu Gia Thuy luugiathuy

Block or report user

Report or block luugiathuy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luugiathuy
luugiathuy / slide.html
Created Apr 6, 2015
Jekyll layout for reveal.js
View slide.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
{% if page.title %}
{{ page.title }} | {{ site.title }}
{% else %}
{{ site.title }}
@luugiathuy
luugiathuy / redis.conf
Created Nov 2, 2014
Redis configuration file
View redis.conf
# 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
View 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 / nginx_configuration
Last active Apr 6, 2018
nginx configuration
View 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;
}
View Preferences.sublime-settings
{
"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",
View Sublime Text 3 Settings
{
"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 / .rubocop.yml
Created Feb 1, 2015
Configuration file of Rubocop for Rails development
View .rubocop.yml
Documentation:
Enabled: false
Style/AlignHash:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/LambdaCall:
Enabled: false
AllCops:
Exclude:
@luugiathuy
luugiathuy / Guardfile
Last active Aug 29, 2015
Guardfile for guard-rspec
View Guardfile
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
View nginx_no_ssl
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
You can’t perform that action at this time.