Skip to content

Instantly share code, notes, and snippets.

View DanielHreben's full-sized avatar
🐊
Typing code...

Daniel Hreben DanielHreben

🐊
Typing code...
View GitHub Profile
@egg82
egg82 / proxmox_nvidia.md
Last active May 12, 2026 21:30
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@TomFaulkner
TomFaulkner / ubuntu18.04-vfio.md
Last active May 20, 2025 07:47
VFIO Setup on Ubuntu 18.04
@RichAyotte
RichAyotte / create-tables.js
Created April 11, 2014 17:35
Initial Sequelize Migration with existing database.
// Inspired by http://bulkan-evcimen.com/using_sequelize_migrations_with_an_existing_database
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('fs'));
module.exports = {
up: function(migration, DataTypes, done) {
var db = migration.migrator.sequelize;
fs.readFileAsync(__dirname + '/initial.sql', {encoding: 'utf8'})
.then(function(initialSchema) {
var tables = initialSchema.split(';');
@nkwhr
nkwhr / run.sh
Created April 3, 2014 08:26
helper script for executing plenv + carton app in cron.
#!/bin/sh
export HOME="/home/me"
export PATH="$HOME/.plenv/bin:$PATH"
eval "$(plenv init -)"
cd $HOME/app
exec carton exec -- "$1"
@ytnobody
ytnobody / env
Created October 26, 2012 23:36
env script for carton + perlbrew app on cron
#!/bin/sh
export HOME=/home/ytnobody
cd $HOME/work/myapp
. ~/perl5/perlbrew/etc/bashrc
perlbrew use perl-5.12.3
export PERL5OPT="-Ilib"
exec carton exec "$@"
@dynax60
dynax60 / linux.rc
Created March 30, 2011 05:24
Example of Hypnotoad startup-script for linux
#!/bin/bash
#
# Init file for Ping server daemon
#
# chkconfig: 2345 55 25
# description: Ping server daemon
#
# processname: ping
# pidfile: /var/run/ping.pid