Skip to content

Instantly share code, notes, and snippets.

View kiwiirc.service
[Unit]
Description=Kiwi IRC webircgateway
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/kiwiirc --config=/etc/kiwiirc/config.conf
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/
View kiwiirc.service
[Unit]
Description=Kiwi IRC webircgateway
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/kiwiirc --config=/etc/kiwiirc/config.conf
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/
@olilarkin
olilarkin / notes.md
Last active Feb 18, 2020
Plugin Dev Notes
View notes.md
@justinjahn
justinjahn / README.md
Last active Feb 18, 2020
Minecraft server(s) using systemd and screen.
View README.md

Install

# Install dependencies
sudo yum install -y java-1.8.0-openjdk screen

# Create a new unprivileged user for minecraft
useradd -r -m -d /opt/minecraft minecraft

# Create the directory that will house our minecraft instances
sudo su --shell /bin/bash minecraft
@sloria
sloria / bobp-python.md
Created Oct 16, 2013
A "Best of the Best Practices" (BOBP) guide to developing in Python.
View bobp-python.md

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
View spotify-ad-blocker.tapermonkey.js
// ==UserScript==
// @name Spotify ad skipper
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Detects and skips ads on spotify
// @match https://*.spotify.com/*
// @grant none
// @run-at document-start
// @downloadURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw
// @updateURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw
@dmnsgn
dmnsgn / WebGL-frameworks-libraries.md
Last active Feb 18, 2020
A collection of WebGL frameworks and libraries
View WebGL-frameworks-libraries.md

A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library helping you to
@davfre
davfre / git_cheat-sheet.md
Last active Feb 18, 2020
git commandline cheat-sheet
View git_cheat-sheet.md
@4np
4np / HowTo use xcconfig or plist with SPM.md
Last active Feb 18, 2020
How to use a .xcconfig file and a .plist with a Swift Package Manager based project.
View HowTo use xcconfig or plist with SPM.md

How to use a .xcconfig file and a .plist file with SPM

Worth a read for some more context.

Create a Package.xcconfig file

Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:

/// Package.xcconfig
@Rich-Harris
Rich-Harris / service-workers.md
Last active Feb 18, 2020
Stuff I wish I'd known sooner about service workers
View service-workers.md

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

You can’t perform that action at this time.