Skip to content

Instantly share code, notes, and snippets.

View CromonMS's full-sized avatar

Eugene CromonMS

View GitHub Profile
# This is a list of Royalty rates from Spotify grouped by Country of reporting.
# Your numbers may be different.
# It was run against 1239553 database records against a total of 1375245 streams
# The figures are in GBP and after an average distributor cut - So roughly what a Label would recieve.
# You are free to reference these figures, just please attribute them to Cromon Ltd
{
"Albania"=>"0.00029955",
"Algeria"=>"0.00039421",
Verifying my Blockstack ID is secured with the address 1Kqnw28bNRjXz5LZEJk3w76jQdxzDp2bQR https://explorer.blockstack.org/address/1Kqnw28bNRjXz5LZEJk3w76jQdxzDp2bQR
@CromonMS
CromonMS / 1 setup vps
Created August 6, 2018 19:18 — forked from PavloBezpalov/1 setup vps
Deploy Rails 5.1.1 to VPS(Ubuntu 16.04.2 LTS). Nginx mainline + pagespeed, Puma with Jungle, Capistrano3, PostgreSQL 9.6, RVM, Certbot
root# apt-get update
root# apt-get upgrade
// dependencies for Ruby
root# apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev \
libpcre3-dev unzip
// Node.js v7
root# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

Keybase proof

I hereby claim:

  • I am cromonms on github.
  • I am cromon (https://keybase.io/cromon) on keybase.
  • I have a public key ASApJeRa3sYBSdFUloh47fOcM-CEk0BulTVTKC06mRz6ZAo

To claim this, I am signing this object:

@CromonMS
CromonMS / ppl_role_codes.csv
Created January 29, 2018 23:01
PPL Role Codes csv
PPL Code Description
AAA Anatara
ABG Acoustic Bass Guitar
ACC Accordion
ACH Atchere
ACM Accompanist
ACR Alto Crumhorn
ACT Actor
ADF Adufe
AEO Aeolian Harp
@CromonMS
CromonMS / capybara.rb
Created September 17, 2017 18:04 — forked from guzart/capybara.rb
Capybara configuration to run a webpack dev server for e2e testing
# spec/support/capybara.rb
require 'capybara/rails'
require 'capybara/rspec'
# port and url to webpack server
WEB_TEST_PORT = '5005'.freeze
WEB_TEST_URL = "http://localhost:#{WEB_TEST_PORT}".freeze
def capybara_wait_for_webpack_server
10.times.each do |_|
@CromonMS
CromonMS / OUTPUT.md
Created July 29, 2017 11:13 — forked from rmm5t/OUTPUT.md
How to properly introduce a new counter_cache to an existing Rails project.

Fast/efficient approach:

-- execute("UPDATE posts SET comments_count = (SELECT count(1) FROM comments WHERE comments.post_id = posts.id)")
   -> 1.3197s

Slow/naïve approach:

add_alert
airplay
alarm_off
alarm_on
album
android
announcement
aspect_ratio
assessment
assignment
[class^='select2'] {
border-radius: 0px !important;
}
// change the port number to whatever is needed.
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 3000 -j ACCEPT