Skip to content

Instantly share code, notes, and snippets.

@Remz-Jay
Remz-Jay / gist:2835011
Last active November 1, 2016 12:02
Gentoo system update & cleaning
emerge --sync && emerge -uDNav --with-bdeps=y @world
emerge --depclean && emerge @preserved-rebuild && revdep-rebuild && eclean-dist
genkernel --oldconfig --menuconfig --splash --save-config --makeopts=-j5 --install all
grub-mkconfig -o /boot/grub/grub.cfg
perl-cleaner --reallyall
@Remz-Jay
Remz-Jay / gist:2835042
Created May 30, 2012 09:25
ffmpeg mkv to itunes m4v conversion (WIP)
ffmpeg -i <input>.mkv -vcodec copy -acodec copy <output>.m4v
@Remz-Jay
Remz-Jay / couchpotato.sh
Created August 6, 2012 21:12
QNAP NAS /opt/etc/init.d scripts (sickbeard, couchpotato, headphones)
#! /bin/sh
### BEGIN INIT INFO
# Provides: CouchPotato
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@Remz-Jay
Remz-Jay / node_debian_init.sh
Created October 15, 2012 09:35 — forked from peterhost/node_debian_init.sh
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@Remz-Jay
Remz-Jay / shell_wizardry.sh
Last active December 17, 2015 05:28
Shell wizardyRandom snippets of one-line awesomeness.
for d in $(find . -type d -name 'aaf-*'); do echo mv $d `echo $d|sed 's/aaf-\(.*\)$/\1-aaf/g'`; done
# mv ./aaf-top.gear.s15e06.1080p.bluray.x264 ./top.gear.s15e06.1080p.bluray.x264-aaf
# mv ./aaf-top.gear.s14e02.720p.bluray.x264 ./top.gear.s14e02.720p.bluray.x264-aaf
# mv ./aaf-top.gear.s14e03.720p.repack.bluray.x264 ./top.gear.s14e03.720p.repack.bluray.x264-aaf
# mv ./aaf-top.gear.s15e04.1080p.bluray.x264 ./top.gear.s15e04.1080p.bluray.x264-aaf
# mv ./aaf-top.gear.s14e05.720p.bluray.x264 ./top.gear.s14e05.720p.bluray.x264-aaf
# mv ./aaf-top.gear.s14e06.bluray720 ./top.gear.s14e06.bluray720-aaf
# mv ./aaf-top.gear.s15e03.1080p.bluray.x264 ./top.gear.s15e03.1080p.bluray.x264-aaf
# mv ./aaf-top.gear.s15e05.1080p.bluray.x264 ./top.gear.s15e05.1080p.bluray.x264-aaf
@Remz-Jay
Remz-Jay / keybase.md
Created June 14, 2014 14:56
Keybase Verification

Keybase proof

I hereby claim:

  • I am remz-jay on github.
  • I am remz (https://keybase.io/remz) on keybase.
  • I have a public key whose fingerprint is B92F 0C22 9BE5 F3B5 FCD3 3C33 212F BE18 D90A 625D

To claim this, I am signing this object:

@Remz-Jay
Remz-Jay / Gentoo Minecraft Server Scripts
Last active August 24, 2021 09:08
Gentoo Minecraft Server Scripts
Gentoo Minecraft Server Scripts
diff --git a/composer.lock b/composer.lock
index 412dac7..e403bbf 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "hash": "323c569ec1cbbcb57d03d762f5a044e9",
- "content-hash": "370359bc968a3b3dc14b16f6ec35350e",
<?php
/**
* GET /virtual_machines/:virtual_machine_id/console.xml
* GET /virtual_machines/:id.xml
*
* The first will start the console session
* and give you the port number to connect to.
*
* The second call, you are looking for remote_access_password.