Skip to content

Instantly share code, notes, and snippets.

View robrotheram's full-sized avatar

Robert robrotheram

View GitHub Profile
{ config, pkgs, ... }:
{
documentation.nixos.enable = false;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "nixos"; # Define your hostname.
networking.nameservers = [ "192.168.0.243" ];
nixpkgs.config.allowUnfree = true;
# Enable OpenGL
hardware.opengl = {
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt upgrade;
sudo hostnamectl set-hostname ds9.exceptionerror.io
curl -sfL https://get.k3s.io | sh -
@robrotheram
robrotheram / thumbnail.go
Last active September 7, 2019 21:46
Produce thumbnails
package worker
import (
"crypto/md5"
"encoding/hex"
"fmt"
"image"
"image/jpeg"
"log"
"os"
@robrotheram
robrotheram / node_exporter.sh
Last active August 4, 2018 13:56 — forked from galexrt/node_exporter.sh
Simple Prometheus node_exporter install script
#!/bin/bash
version="${VERSION:-0.15.2}"
arch="${ARCH:-linux-amd64}"
bin_dir="${BIN_DIR:-/usr/local/bin}"
wget "https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz" \
-O /tmp/node_exporter.tar.gz
mkdir -p /tmp/node_exporter
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-ingress-controller
labels:
k8s-app: nginx-ingress-controller
namespace: default
spec:
replicas: 1
template:
<?php
/**
* Created by PhpStorm.
* User: robert
* Date: 07/06/2015
* Time: 18:55
*/
namespace ParseApp;
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
my-nova:
identity_url: 'http://controller:35357/v3'
compute_region: nova
user: admin
password: pass
project-user: default
project-domain: default
tenant: default
driver: nova
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
@robrotheram
robrotheram / migrate.php
Last active January 11, 2017 19:19
migrate for flaurm version 0.2 and 0.3
<?php
// Configs for phpbb database
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "phpbbDatabase";
$fileName = "flaurm.sql";
$phpprefix = "phpbb_";
//Sets the inital id for the new users posts and discussions set if you know you have more then 1000 users change.
$id = 1000;
<?php
// Configs for phpbb database
$servername = "localhost";
$username = "<>";
$password = "<>";
$dbname = "<>";
$fileName = "flaurm.sql";
$phpprefix = "phpbb_";
//Sets the inital id for the new users posts and discussions set if you know you have more then 1000 users change.