Skip to content

Instantly share code, notes, and snippets.

@coolswitcher
coolswitcher / xld_filename.md
Created January 30, 2018 07:05 — forked from robpataki/xld_filename.md
File naming convention for XLD encoding

Compilations:

%A - %T  -  %n - %a - %t

Albums by 1 artist

%A - %T  -  %n - %t
@coolswitcher
coolswitcher / install.txt
Last active October 24, 2017 09:49
Create deb file from compiled source files
apt-get install checkinstall
curl --silent --output /usr/local/pkg https://gist.githubusercontent.com/coolswitcher/6870f51e0281881917318a626ae647a0/raw/af73d87204ba03d184f4924f0fe266c573550930/pkg
chmod +x /usr/local/pkg
Use:
- compile source (configure, make ...)
- run pkg or pkg "pkgname"
@coolswitcher
coolswitcher / rsyncd.socket
Created August 30, 2017 11:39 — forked from tchollingsworth/rsyncd.socket
rsyncd systemd units
[Unit]
Description=rsyncd Service Sockets
[Socket]
ListenStream=873
Accept=yes
[Install]
WantedBy=sockets.target
@coolswitcher
coolswitcher / memcached@.service
Created August 26, 2017 21:32
Multiple memcached instances systemd script
[Unit]
Description=memcached daemon for %i
After=network.target
[Service]
ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached_%i.conf
[Install]
WantedBy=multi-user.target
@coolswitcher
coolswitcher / memcached
Last active August 25, 2017 21:40
Multiple instances of memcached server
#! /bin/bash
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon
Process: Sequel Pro [31101]
Path: /Applications/Sequel Pro.app/Contents/MacOS/Sequel Pro
Identifier: com.sequelpro.SequelPro
Version: Snapshot r50a0f18540 (4749)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Sequel Pro [31101]
User ID: 501
Date/Time: 2017-01-10 11:41:48.657 +0300
@coolswitcher
coolswitcher / 0_reuse_code.js
Created February 28, 2016 18:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@coolswitcher
coolswitcher / memcached
Created August 29, 2015 14:42
memcahed init script mod for multiple instances
#! /bin/bash
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon
@coolswitcher
coolswitcher / searchd
Created August 29, 2015 14:39
searchd init script for ubuntu/debian
#! /bin/bash
### BEGIN INIT INFO
# Provides: searchd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start searchd daemon