Skip to content

Instantly share code, notes, and snippets.

@ordoghl
ordoghl / pumaapp.conf
Last active August 1, 2017 08:47
Ubuntu upstart job for Puma w/ rbenv and application deployed to appuser home directory.
# /etc/init/puma.conf - Puma config
description "Puma App Service"
start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345])
stop on (runlevel [!2345])
setuid appuser
setgid appuser
respawn
respawn limit 3 30
env HOME=/home/appuser
env PATH=/home/appuser/.rbenv/shims:/home/appuser/.rbenv/bin:/usr/local/bin:/usr/bin:/bin
@ordoghl
ordoghl / Preferences.sublime-settings
Last active December 19, 2015 23:59
my sublime settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme",
"fade_fold_buttons": false,
"font_face": "Consolas",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
@ordoghl
ordoghl / 256_vim_color_scheme_tmux
Created August 7, 2013 12:44
256 color scheme in vim using in tmux
# put in .zshrc:
alias tmux="TERM=screen-256color-bce tmux"
# put int .vimrc
set t_Co=256
set t_Co=256
colorscheme distinguished
syntax on
call pathogen#infect()
set autoindent
set copyindent
set tabstop=2
set expandtab
set shiftwidth=2
set number
@ordoghl
ordoghl / polymorphic_ass_grape_entity
Created September 19, 2013 14:02
Polymorphic association in a grape entity
require_relative 'customer.rb'
require_relative 'contact.rb'
require_relative 'agent.rb'
module Api
module V1
module Entities
class Ticket < Grape::Entity
expose :id
@ordoghl
ordoghl / redis.service
Created October 4, 2016 14:27
redis systemd unit file
Description=Redis In-Memory Data Store
After=network.target
[Service]
Type=forking
User=redis
Group=redis
Environment=statedir=/run/redis
PermissionsStartOnly=true
PIDFile=/run/redis/redis.pid
It is supported well as any USB-sound device.
Long story: by default I've experienced problem with this sound card (clicking sound).
After some investigations I found the problem (wrong sample rate)
and here is the solution: By default sample rate has been was set to 44100 which is wrong for this card.
To check your configuration run this:
pacmd list-sinks
If it does not display:
name_hu name_en num alpha2 alpha3
Aruba Aruba 533 AW ABW
Afganisztán Afghanistan 4 AF AFG
Angola Angola 24 AO AGO
Anguilla Anguilla 660 AI AIA
Åland Åland Islands 248 AX ALA
Albánia Albania 8 AL ALB
Andorra Andorra 20 AD AND
Egyesült Arab Emírségek United Arab Emirates 784 AE ARE
Argentína Argentina 32 AR ARG
layout title permalink
checklist_page
The Side Project Marketing Checklist
/marketing-checklist/

Pre-Launch

Market Research

Keybase proof

I hereby claim:

  • I am ordoghl on github.
  • I am ordoghl (https://keybase.io/ordoghl) on keybase.
  • I have a public key ASBWX9tlKdL6M2-aK29Dgn0tSB9TSa0UIYTw4fu2MTTsKAo

To claim this, I am signing this object: