Skip to content

Instantly share code, notes, and snippets.

@iveskins
iveskins / dnsmasq.md
Created June 25, 2020 07:33 — forked from tmslnz/dnsmasq.md
Setting up dnsmasq on OS X

Install dnsmasq

Via brew or other method

Set up DNS resolver order

In order to work on every connection and on any TLD, dnsmasq needs to be the first DNS resolver receving the query.

And since dnsmasq is a local process, all DNS queries need to go to 127.0.0.1

On macOS, /etc/resolv.conf is automaticaly created, depending on a variety of things (network settings, etc), so it cannot be edited.

@iveskins
iveskins / web-servers.md
Created May 28, 2020 06:00 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@iveskins
iveskins / split_ffmpeg.py
Created November 26, 2019 04:50 — forked from MawKKe/split_ffmpeg.py
Split audio file with ffmpeg based on chapter metadata
#!/usr/bin/env python3
import sys
import os
import re
import subprocess as sub
import argparse
import tempfile
import json
from concurrent.futures import ThreadPoolExecutor, as_completed
@iveskins
iveskins / cryptsetup-with-luks2-and-integrity-demo.sh
Created November 26, 2019 04:38 — forked from MawKKe/cryptsetup-with-luks2-and-integrity-demo.sh
dm-crypt + dm-integrity + dm-raid = awesome!
#!/usr/bin/env bash
#
# Author: Markus (MawKKe) ekkwam@gmail.com
# Date: 2018-03-19
#
#
# What?
#
# Linux dm-crypt + dm-integrity + dm-raid (RAID1)
#
@iveskins
iveskins / README.md
Created September 27, 2019 02:43 — forked from roachhd/README.md
meal planning 🍴

A Beginner’s Guide to Meal Planning ‹ Hello Healthy

A Beginner's Guide to Meal Planning

![][1]

When it comes to eating well, meal planning is one of the easiest things you can do to set yourself up for success. The beauty of it is there are no rules and, you can't really mess it up. The key is just to start, and to set aside a little bit of time each week to do it. There are so many ways to approach meal planning that, after practicing just once or twice, you'll begin to find what works for you and your family too.

To help you get started, we've broken down some of the basics. We've even included two practice exercises to help you map out your next week's worth of healthy meals!

@iveskins
iveskins / install-docker.md
Created September 24, 2019 07:04 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
@iveskins
iveskins / install-docker.md
Created September 24, 2019 07:04 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
[server]
SERVER
[server:vars]
server_name=SERVER
docker_nginx_ssl=true
@iveskins
iveskins / iterm2.md
Created August 24, 2018 08:51 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
@iveskins
iveskins / 00_README.md
Created February 1, 2018 10:19 — forked from emk/00_README.md
Anki subs2srs card template, with optional hint and note

To use these templates, you'll need to create a new Anki "note type" with the following fields:

  • Sound
  • Time
  • Source
  • Image
  • Target: line
  • Base: line
  • Target: line before
  • Base: line before