Skip to content

Instantly share code, notes, and snippets.

View kiwiheretic's full-sized avatar

kiwiheretic

  • Wanganui, New Zealand
View GitHub Profile
@kiwiheretic
kiwiheretic / npn-bc547-transistor.ipynb
Last active January 4, 2020 19:42
NPN BC547 Transistor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiwiheretic
kiwiheretic / Nginx Configs
Created August 13, 2019 04:30
Nginx and Bolt Issues
# From arbor.webqurst.co.nz.conf
server {
listen 80;
listen [::]:80;
server_name arbor.webquest.co.nz;
gzip on;
gzip_types text/plain text/javascript application/x-javascript application/xml application/javascript text/css;
@kiwiheretic
kiwiheretic / _master.twig
Created July 25, 2019 03:13
Base 2018 theme modified
<!doctype html>
<html lang="{{ htmllang() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{# make sure we always display a proper title: The record's title if there is one, appended with the
sitename. If there is no title, we append the sitename with the payoff, if there is one. #}
<title>
{%- if record.title is defined %}{{ record.title|striptags }} | {% endif -%}
{{ config.get('general/sitename') -}}
@kiwiheretic
kiwiheretic / Index.twig
Last active July 21, 2019 07:21
Index.twig of base-2018 theme
{% extends 'partials/_master.twig' %}
{% block main %}
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-two-thirds">
{# Remove this include if you don't need it anymore. #}
@kiwiheretic
kiwiheretic / action-test.ipynb
Last active February 23, 2019 07:23
An action jourmey #1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kiwiheretic
kiwiheretic / nginx-configs.md
Created March 11, 2018 00:18
Miscellaneous useful nginx configs

Useful Nginx Configs

Placed here for safe keeping

Serving from file system

include sites-available/ssl/files.kiwiheretic.com.*.conf;

server {
@kiwiheretic
kiwiheretic / Installing SSL.md
Last active February 23, 2018 06:35
Installing SSL Letsencrypt certificates on Linux

Installing SSL on Nginx and Ubuntu 16.04

Set up a user group specifically for being able to handle nginx reloads and add yourself and anyone else who needs access to that group.

sudo groupadd vhost
sudo gpasswd -a <username> vhost
@kiwiheretic
kiwiheretic / git.md
Created February 3, 2018 05:52
useful git commands

To add new repository to git

$ git init
$ git add <file>
$ git commit -m "Initial Commit"
$ git remote add origin <remote url>
$ git push --set-upstream origin master
@kiwiheretic
kiwiheretic / geodata.md
Created January 31, 2018 08:39
Geographical Data
@kiwiheretic
kiwiheretic / phpmyadmin.md
Last active February 5, 2018 00:53
Setting up phpmyadmin on Ubuntu

Most of these instructions taken from this website but I am using MySQL rather than MariaDB.

$ sudo apt install phpmyadmin

I elected to run db-common when asked but did not choose a webserver as nginx wasn't on list.

Then I added the following nginx conf script