Skip to content

Instantly share code, notes, and snippets.

https://aws.amazon.com/blogs/database/managing-postgresql-users-and-roles/
class Icu4cAT63 < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "https://ssl.icu-project.org/"
url "https://ssl.icu-project.org/files/icu4c/63.1/icu4c-63_1-src.tgz"
mirror "https://github.com/unicode-org/icu/releases/download/release-63-1/icu4c-63_1-src.tgz"
version "63.1"
sha256 "05c490b69454fce5860b7e8e2821231674af0a11d7ef2febea9a32512998cb9d"
bottle do
cellar :any
@lightsuner
lightsuner / godaddy-ssl-howto
Created June 9, 2016 10:08 — forked from ideaoforder/godaddy-ssl-howto
GoDaddy + Nginx SSL
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
http://support.godaddy.com/help/article/3601/generating-a-certificate-signing-request-nginx
http://support.godaddy.com/help/article/4976/rekeying-an-ssl-certificate
# Be sure to remember to chain them!
cat gd_bundle-g2-g1.crt >> yourdomain.crt
# Move 'em
sudo mv yourdomain.crt /etc/ssl/certs/yourdomain.crt
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
@lightsuner
lightsuner / gist:b9506a87c88007262f80
Created August 27, 2015 06:28
Required apache >= 2.4.7 and mpm-itk >=2.4.7-02
<?php
class Deploy {
/**
* A callback function to call after the deploy has finished.
*
* @var callback
*/
public $post_deploy;
@lightsuner
lightsuner / .sh
Last active August 29, 2015 14:20
Git alias list
git config --global alias.c-p cherry-pick
git config --global alias.rmd "! git ls-files --deleted -z | xargs -0 git rm"
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /"
#!/bin/sh
curl -XDELETE 'http://localhost:9200/records' && echo
curl -XPUT 'http://localhost:9200/records' -d '{
"settings": {
"analysis": {
"analyzer": {
"test_analizer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["english_morphology"]
@lightsuner
lightsuner / gist:37f6f35830fd27df2afb
Created February 20, 2015 21:45
expert-social-network backup log 2015-02-21_00:38:10
appbackup@DGDEV11112014:/vol$ ./run_selectel_manual_backup.sh
coping attachments
mysql dump
Creating elasticsearch snapshot
{
"snapshot" : {
"snapshot" : "2015-02-21_00:38:10",
"indices" : [ "records" ],
"state" : "SUCCESS",
"start_time" : "2015-02-20T21:40:53.479Z",
[program:jms_job_queue_runner]
command=/usr/local/rvm/bin/rvm default do bundle exec sidekiq -e production --queue elasticsearch-records
process_name=elasticsearch_records_indexer
numprocs=1
directory=/var/www/expert-social-network-production/current/
autostart=true
autorestart=true
startsecs=5
startretries=10
user=root
@lightsuner
lightsuner / after_inherited.rb
Created October 16, 2014 10:06
After Inherited callback
module App::AfterInherited
# Ruby 2.1
# http://stackoverflow.com/questions/7093992/how-to-have-an-inherited-callback-in-ruby-that-is-triggered-after-the-child-clas?answertab=active#tab-top
# http://t-a-w.blogspot.com/2007/04/settracefunc-smoke-and-mirrors.html
# end - module/class definition ended
# usage:
#
# class A