Skip to content

Instantly share code, notes, and snippets.

View Fastidious's full-sized avatar
🐵
Just another one.

Fastidious Fastidious

🐵
Just another one.
View GitHub Profile
@Fastidious
Fastidious / certs.sh
Created January 8, 2019 12:11 — forked from kmARC/certs.sh
#!/usr/bin/env bash
DIR=$(dirname "$(readlink -f "$0")")
FILES="$DIR"/files/
mkdir -p "$FILES"/
if [ ! -f "$FILES"/sandbox-ca.crt ]; then
echo '########################################'
@Fastidious
Fastidious / mobileconfig-letsencrypt.md
Created November 3, 2018 01:14
Sign mobileconfig files with Letsencrypt
#!/bin/bash

certs="/etc/letsencrypt/live/myersnet.net"

openssl smime \
    -sign \
    -signer ${certs}/cert.pem \
    -inkey ${certs}/privkey.pem \
 -certfile ${certs}/chain.pem \
@Fastidious
Fastidious / croc-relay.md
Last active October 23, 2018 13:45
Running a croc relay

Init script

#!/bin/sh

### BEGIN INIT INFO
# Provides:          croc
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
@Fastidious
Fastidious / openssl_commands.md
Created July 12, 2018 12:37 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl

Keybase proof

I hereby claim:

  • I am fastidious on github.
  • I am pedantic (https://keybase.io/pedantic) on keybase.
  • I have a public key ASCUVjOHXx00vf17SZYDUqcvXTJL_hFjJIEihb4AR03bWAo

To claim this, I am signing this object:

@Fastidious
Fastidious / 01-before.html
Created February 11, 2018 23:39 — forked from mikeygee/01-before.html
truncate blog posts in jekyll
<!-- using the truncate filter -->
{% for post in site.posts limit:10 %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span>
{% if post.content.size > 2000 %}
{{ post.content | truncatewords: 300 }} <!-- bad! content gives you rendered html and you will truncate in the middle of a node -->
<a href="{{ post.url }}">read more</a>
{% else %}
{{ post.content }}
{% endif %}

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@Fastidious
Fastidious / README.md
Created February 9, 2018 12:37 — forked from hernamesbarbara/README.md
fetch any mailto email addresses found on a web page

basic script to extract any email addresses from a website that can be found

usage

get all emails you can find from this page:

http://zombierecords.com/staff

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 1GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@Fastidious
Fastidious / reset-systemctl.md
Last active October 26, 2017 17:16
Resetting systemctl

Resetting systemctl

Easy, but I tend to forget:

# Check what else failed.
$ systemctl --failed
# Reset it
$ systemctl reset-failed