Skip to content

Instantly share code, notes, and snippets.

@nofxx
nofxx / PKGBUILD
Last active December 9, 2017 23:43
AEON PKGBUILD
pkgbase=('aeon-git')
pkgname=('aeon-git')
_aeon='aeon'
pkgver=0.9.14.0.r204.2c54434
pkgrel=1
arch=('x86_64' 'i686' 'armv7h')
url="http://aeon.cash/"
license=('custom:Cryptonote')
depends=('boost-libs>=1.45' 'miniupnpc>=1.6' 'libunwind'
def self.crc16(buf)
crc = 0xffff
buf.each_byte do |b|
crc = (crc >> 8) ^ CRC_LOOKUP[(crc ^ b) & 0xff]
end
~crc
end
@nofxx
nofxx / PKGBUILD
Created March 14, 2017 20:39
ignition-transport 3
# Maintainer: Benjamin Chrétien <chretien dot b plus aur at gmail dot com>
pkgname=ignition-transport
pkgver=3.0.1
pkgrel=1
pkgdesc="The transport library combines ZeroMQ with Protobufs to create a fast and efficient message passing system"
arch=('i686' 'x86_64')
url="http://ignitionrobotics.org"
license=('Apache')
groups=('development')
depends=('protobuf' 'protobuf-c' 'zeromq' 'uuid' 'ignition-msgs')
@nofxx
nofxx / .xinitrc
Last active March 9, 2017 09:39
Really quiet plymouth on rpi 3 and bbb
xset s off # don't activate screensaver
xset -dpms # disable DPMS (Energy Star) features.
xset s noblank # don't blank the video device
feh --bg-scale ~/torrefare.png & unclutter &
exec /usr/bin/chromium --kiosk --incognito --disable-translate http://localhost:9292
@nofxx
nofxx / arch.sh
Created June 29, 2015 21:00
Archlinux Rise
# Pkgs on servers:
# ----------------
# 1 - Setup disks
# 2 - Change vars:
app="niceapp"
name="aakira"
sshkey="ssh-rsa..."
@nofxx
nofxx / mongodb.service
Created January 26, 2015 02:54
Systemd mongodb service for servers
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitNPROC=64000
@nofxx
nofxx / PKGBUILD
Last active June 2, 2021 02:47
Tesseract with training tools on archlinux
# Tesseract with training tools
#
# You must install one of tesseract-data-* packages or whole tesseract-data
#
# Based on ABS tree:
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>
_langs=(afr ara aze bel ben bul cat ces chi_sim chi_tra chr dan deu ell
eng enm epo epo_alt equ est eus fin fra frk frm glg grc heb hin hrv hun
@nofxx
nofxx / errbit-unicorn.service
Created January 5, 2015 19:15
errbit unicorn systemd service
[Unit]
Description=Errbit Unicorn Server
Requires=mongodb.service
After=mongodb.service network.target
[Service]
# Change here: user, group and directory to errbit root
User=errbit
Group=errbit
WorkingDirectory=/var/www/apps/errbit
@nofxx
nofxx / morse.rb
Last active May 10, 2021 11:31
Morse Code in ruby
class String
MORSE_CODE = {
a: '.-', b: '-...', c: '-.-.', d: '-..', e: '.', f: '..-.',
g: '--.', h: '....', i: '..', j: '.---', k: '-.-', l: '.-..',
m: '--', n: '-.', o: '---', p: '.--.', q: '--.-', r: '.-.', s: '...',
t: '-', u: '..-', v: '...-', w: '.--', x: '-..-', y: '-.--', z: '--..'
}
def to_morse_code
self.downcase.each_char.map { |c| MORSE_CODE[c.to_sym] }.join
@nofxx
nofxx / files.py
Last active November 13, 2016 22:35
GNOME Terminator clickable paths open in Emacs
# Clickable Files by nofxx
"""files.py - Clickable Files URIs open in Emacs"""
import re
import terminatorlib.plugin as plugin
import subprocess
# Every plugin you want Terminator to load *must* be listed in 'AVAILABLE'
AVAILABLE = ['FileURLHandler']
class FileURLHandler(plugin.URLHandler):