Skip to content

Instantly share code, notes, and snippets.

@DrChai
DrChai / solrconfig.xml
Created June 20, 2015 17:45
Temp Solrconfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@DrChai
DrChai / gist:7cbe72bb9d0eb330e744b482424dcde4
Created August 12, 2016 22:11 — forked from tamoyal/gist:2ea1fcdf99c819b4e07d
Upgrade Postgres 9.3 to 9.4 on Ubuntu
# Be sure to save your config files. Optional but I do:
sudo cp /etc/postgresql/9.3/main/postgresql.conf ~
sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~
# Package repo (for apt-get)
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
# Also probably optional but I like to update sources and upgrade
sudo apt-get update
@DrChai
DrChai / watch_wal-e.py
Created August 17, 2016 18:35 — forked from mikeyk/watch_wal-e.py
Watch_wal-e script
#! /usr/bin/env python
from boto.ses.connection import SESConnection
import os
import sys
import subprocess
import socket
TMPFILE = '/var/run/postgresql/last-wal-archive-error-file.tmp'
if __name__ == '__main__':
@DrChai
DrChai / Dockerfile
Last active March 21, 2021 22:14
docker-acme.sh-nginx-proxy-companion
FROM neilpang/acme.sh
ADD ./new_entry.sh /new_entry.sh
RUN chmod +x /new_entry.sh
ENTRYPOINT ["/new_entry.sh"]
@DrChai
DrChai / raspbian-stretch-lite-slimdown.md
Created April 26, 2022 06:44 — forked from hhromic/raspbian-stretch-lite-slimdown.md
Slimming Down Raspbian Stretch Lite

Slimming Down Raspbian Stretch Lite

Notes for slimming down a fresh installation of Raspbian Stretch Lite. This guide does not strip Raspbian of basic functionality such as Bluetooth and mDNS.

Instructions

Install a fresh Raspbian Stretch Lite image into the SD card ([source][1]).

$ unzip -p 2018-04-18-raspbian-stretch-lite.zip | dd bs=4M of=/dev/sdX conv=fsync