Skip to content

Instantly share code, notes, and snippets.

@bindiry
bindiry / README.md
Last active Feb 21, 2018 — forked from jremus/README.md
My aria2 configuration and init script for Raspbian.
View README.md

Description

Installation

File Locations

  • aria2.conf as /etc/aria2.conf
  • aria2.sh as /etc/init.d/aria2
@bindiry
bindiry / puma.service
Last active Apr 28, 2017 — forked from arteezy/puma.service
Manage Puma with systemd on Ubuntu 16.04 and rbenv
View puma.service
[Unit]
Description=Puma Rails Server
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/app/current
ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb
ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop
@bindiry
bindiry / duolingo.rb
Last active Jun 3, 2016
Duolingo words
View duolingo.rb
#!/usr/bin/env ruby
=begin
1. gem install selenium-webdriver
2. save urls after exec in console of google chrome
$('.skill-tree-row span a').each(function(i, obj){console.log('https://www.duolingo.com/' + $(obj).attr('href'));});
3. $ ruby duolingo.rb
=end
View ubuntu_init.md

Ubuntu Desktop

change sources.list

$ sudo apt-get update
$ sudo apt-get install vim vpnc network-manager-vpnc build-essential gcc g++ git autoconf libtool libssl-dev

install marlin

$ sudo add-apt-repository ppa:noobslab/apps
$ sudo apt-get update
@bindiry
bindiry / .ctags
Last active Sep 3, 2017
Sublime Text 2 settings
View .ctags
--exclude=*.hg*
--exclude=*.cvs*
--exclude=*.svn*
--exclude=*.git*
--exclude=*compiled*
--exclude=*public_html*
--exclude=*.idea*
--exclude=*bower_components*
--exclude=*images*
--exclude=*.DS_Store*