Skip to content

Instantly share code, notes, and snippets.

@meysius
meysius / elixir.md
Last active March 18, 2020 06:24
Elixir

Installation

$ brew install elixir
$ elixir --version

# Run interactive elixir
$ iex

# Running a elixir script

To create a systemd (systemctl) job, put your service description file in:

/lib/systemd/system/name.service
or 
/etc/systemd/system/name.service

Then to enable it do: sudo systemctl enable name

Everytime, you edit the service definition file, you have to reload the daemon:

https://medium.com/@sulmanweb/setting-up-visual-studio-code-for-ruby-on-rails-development-beb0cb8c3749
extensions:
- Ruby
- Rufo (Ruby Formatter)
gems:
- Rufo
- Rubocop

Create a branch

$ git checkout -b name from_branch

Delete a branch

REMOTELY -> $ git push origin --delete name
LOCALLY  -> $ git branch -D name
  • Put this in /lib/systemd/system/bitcoind.service
[Unit]
Description=Bitcoin daemon
After=network.target

[Service]
ExecStart=/usr/bin/bitcoind -conf=/home/deploy/.bitcoin/bitcoin.conf -pid=/home/deploy/.bitcoin/bitcoind.pid
RuntimeDirectory=bitcoind
User=deploy
@meysius
meysius / sidekiq-systemd-service.md
Last active September 21, 2019 02:44
sidekiq-systemd-service
# /lib/systemd/system/sidekiq.service
#
# systemd unit file for CentOS 7, Ubuntu 15.04
#
# Customize this file based on your bundler location, app directory, etc.
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu).
# Run:
#   - systemctl enable sidekiq
#   - systemctl {start,stop,restart} sidekiq
@meysius
meysius / seo-cheat-sheet.md
Last active November 24, 2022 13:56
SEO CHEATSHEET

URLS

  • The more specific the better -> buy-slippers better than shopping
  • Seperate keywords -> baseball-games better than baseballgames
  • Heyphen better than underscore
  • Use keywords dont over do this
  • Use extension .html

Title TAGS