Mostly geared towards GNU make
I've used ->| to indicate a tab character, as it's clearer to read than ⇥
- Set a target, its dependencies and the commands to execute in order
target: [dependencies]
->|
| # This assumes a wifi only system... | |
| wifi-menu | |
| # Grab latest mirror list for Germany sorted by speed IPv4 only. | |
| curl -o /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/?country=DE&protocol=https&ip_version=4&use_mirror_status=on | |
| sed -i 's/\#Server/Server/g' /etc/pacman.d/mirrorlist | |
| # Create partitions | |
| cgdisk /dev/nvme0n1 | |
| 1 512MB EFI partition # Hex code ef00 |
| Description='RITnet' | |
| Interface= | |
| Connection=wireless | |
| Security=wpa-configsection | |
| IP=dhcp | |
| ESSID=RIT | |
| WPAConfigSection=( | |
| 'ssid="RIT"' | |
| 'key_mgmt=WPA-EAP' | |
| 'eap=PEAP' |
| {-# LANGUAGE RecordWildCards, Arrows #-} | |
| import Numeric | |
| import Data.Char | |
| import Control.Monad | |
| import Data.Monoid ((<>)) | |
| import Data.List (nub, sort, reverse) | |
| data RepeatBounds = RB |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| #! /usr/bin/env python3 | |
| """Fixing bluetooth stereo headphone/headset problem in debian distros. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . | |
| Licence: Freeware |
| ;; Enable ligatures without prettify-symbols | |
| (provide 'add-pragmatapro-symbol-keywords) | |
| (defconst pragmatapro-fontlock-keywords-alist | |
| (mapcar (lambda (regex-char-pair) | |
| `(,(car regex-char-pair) | |
| (0 (prog1 () | |
| (compose-region (match-beginning 1) | |
| (match-end 1) |
| // 1. Go to https://twitter.com/i/likes | |
| // 2. Keep scrolling to the bottom repeatedly until all your favs are loaded. | |
| // 3. Run this in your console (open in chrome by View > Developer > JavaScript Console) | |
| // Notes: this may take a while if you have a lot of favs/likes | |
| // you can only access your most recent ~2000 likes. | |
| // inspired by https://gist.github.com/JamieMason/7580315 | |
| $('.ProfileTweet-actionButtonUndo').click() |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |