Skip to content

Instantly share code, notes, and snippets.

View radiosilence's full-sized avatar
🔥

James Cleveland radiosilence

🔥
View GitHub Profile
@radiosilence
radiosilence / gist:5714387
Last active December 1, 2023 15:17
Example uWSGi INI file with support for celery.
[uwsgi]
disable-logging = True
socket = /srv/qrs/test/wsgi.sock
chdir = /srv/qrs/test
chmod = 660
master = true
processes = 2
module = qrs.wsgi:application
virtualenv = /env/qrs/test
enable-threads = true
@radiosilence
radiosilence / gist:3946121
Created October 24, 2012 13:43
Outputs some files that WMs can import and colourify everything with.
import sys
import colorsys
from colorz import colorz
WALLPAPER = '/home/james/.wallpaper'
COLORS = '/home/james/.colors'
XRESOURCES = '/home/james/.Xresources'
cols = ''
xres = """
{
"workbench.iconTheme": "Monokai Pro Icons",
"editor.fontFamily": "Hack JBM Ligatured",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.formatOnType": true,
"editor.tabCompletion": "on",
"emmet.triggerExpansionOnTab": false,
"typescript.validate.enable": true, // =>
"javascript.validate.enable": true,
{
"_id": "/home/james/Music/1200 Micrograms/The Time Machine/06. 1200 Micrograms - Glories Of Greece.mp3",
"_rev": "1-ebdf37df1f6d913eec0f04bdcab9d571",
"ALBUM": "The Time Machine",
"TITLE": "Glories Of Greece",
"ARTIST": "1200 Micrograms",
"TAGS": "Psy-Trance",
"TOTALTRACKS": "9",
"YEAR": "2004",
"GENRE": "Psytrance / Goa",
Prawn Curry
Chana Dal
x
Ginger Root
X
Brown Rice
Raw Garlic
x
Coriander Leaves
terraform-common: &terraform-common
backend_type: gcs
env_name: development
env:
GOOGLE_CREDENTIALS: ((gcp_concourse_iam))
vars:
region: europe-west2
zone: europe-west2-a
project: kubernetes-cluster-eso
Thu Apr 28 13:34:22 UTC 2022
30c30
< <string>^(#).*$\n?</string>
---
> <string>^(\s)*(#).*$\n?</string>
# plugin manager
# rebind the prefix key
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# 256 colors
set -g default-terminal "screen-256color"
import { MobXProviderContext } from "mobx-react"
import { useContext } from "react"
import { RootStore } from "../models"
export const useStores = () => {
return useContext(MobXProviderContext)
}
export const useRootStore = (): RootStore => useStores().rootStore