Skip to content

Instantly share code, notes, and snippets.

@no-jochs
no-jochs / example.com.conf.md
Last active July 13, 2023 15:03
Mastodon Nginx configuration for LOCAL_DOMAIN server.
# This file is located at /etc/nginx/sites-available/example.com and symlinked to
# /etc/nginx/sites-enabled/example.com


server {
  # Binds the TCP port 80.
  listen 80;
  listen [::]:80;
@no-jochs
no-jochs / intentions-thought_speech_action_feedback_loop.md
Created April 7, 2022 07:41
Intentions: The Thought, Speech, Action Feedback Loop

Thought -> Speech -> Action

The Intention Feedback Loop Diagram

Feedback Loop Diagram


How It Works

As a preliminary, set an intention first! Don't change it so long as you're interested in the outcome you want.

@no-jochs
no-jochs / mandarin_manchino.md
Created April 7, 2022 01:41
Mandarin Manchino Mocktail Recipe
@no-jochs
no-jochs / genral-rails-template.rb
Created April 21, 2021 23:47
A genric rails template which may be modified and changed as needed.
require "bundler"
require "json"
RAILS_REQUIREMENT = "~> 6.1.0".freeze
def apply_template!
assert_minimum_rails_version
assert_valid_options
assert_postgresql
add_template_repository_to_source_path
@no-jochs
no-jochs / script-torrent-complete.sh
Last active January 14, 2021 07:23
A script for moving completed torrents as they finish.
#!/bin/bash
# This is a script which is executed each time a torrent finishes downloading. It should move the torrent's data out of the download directory and into the appropriate folder in Media.
# The positional arguments below represent:
# (1) The directory the torrent was downloaded to.
# (2) The name of the torrent file downloaded (does not include any segments of the download path).
# (3) The "torrent ID" is the numeric integer given in the ID column produced with the command `transmission-remote -l`. It represents a single file of data.
TR_TORRENT_DIR=${TR_TORRENT_DIR:-$1}
TR_TORRENT_NAME=${TR_TORRENT_NAME:-$2}
@no-jochs
no-jochs / cloudSettings
Last active March 19, 2019 19:42
VSCode Configuration
{"lastUpload":"2019-03-19T19:42:32.288Z","extensionVersion":"v3.2.7"}
## General
set number # Show line numbers
set linebreak # Break lines at word (requires Wrap lines)
set showbreak=+++ # Wrap-broken line prefix
set textwidth=100 # Line wrap (number of cols)
set showmatch # Highlight matching brace
set errorbells # Beep or flash screen on errors
set visualbell # Use visual bell (no beeping)
set hlsearch # Highlight all search results
@no-jochs
no-jochs / cVimrc
Last active January 8, 2019 04:53 — forked from infokiller/cVimrc
let searchalias s = "stackoverflow"
let searchalias g = "google"
" show the heads-up-display
set hud
" use regexp in find mode
set regexp
" ignore search case in find mode
@no-jochs
no-jochs / keybase_proof.md
Created August 9, 2018 13:29
Keybase Proof Assertion

Keybase proof

I hereby claim:

  • I am johnochs on github.
  • I am johnochs (https://keybase.io/johnochs) on keybase.
  • I have a public key ASC0E8WSVfVCT6yqO0CdehyCYjWYMGui4sDZE32iRsruGgo

To claim this, I am signing this object:

@no-jochs
no-jochs / openpgp.txt
Created March 31, 2018 07:37
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:77b1190bfc27d37dd167ab4b9d4badb813bb929f]