HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
| #!/usr/bin/env python3 | |
| import sys | |
| import os | |
| from pathlib import Path | |
| # Hardcoded list of extensions to delete (lowercase, without dots) | |
| EXTENSIONS_TO_DELETE = [ | |
| # Images | |
| "png", "jpg", "jpeg", "gif", "bmp", "webp", "tiff", "tif", "svg", |
HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
| #ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__ | |
| #define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1 | |
| /** compatibility header for endian.h | |
| * This is a simple compatibility shim to convert | |
| * BSD/Linux endian macros to the Mac OS X equivalents. | |
| * It is public domain. | |
| * */ | |
| #ifndef __APPLE__ |
| #!/bin/bash | |
| ################################################################################ | |
| ### UDP Upload Bandwidth Throttler ### | |
| ################################################################################ | |
| # # | |
| # Based upon http://www.mzpeter.co.uk/limit-bandwidth-udp.html and # | |
| # https://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http\ # | |
| # -traffic/ # | |
| # # |
| dig +short myip.opendns.com @resolver1.opendns.com |
| // For debugging HTML and CSS | |
| function borderAll(tag, color) { | |
| Array.prototype.slice.call( | |
| document.getElementsByTagName(tag)).forEach((el) => { | |
| el.style.border = '1px solid ' + (color || '#ff0000'); | |
| }); | |
| } |
| #!/bin/bash | |
| # File: ~/launch_dev.sh | |
| # From http://dan.doezema.com/2013/04/programmatically-create-title-tabs-within-the-mac-os-x-terminal-app/ | |
| function new_tab() { | |
| TAB_NAME=$1 | |
| COMMAND=$2 | |
| osascript \ | |
| -e "tell application \"Terminal\"" \ |
| mysql -uroot -p -BNe "show global variables like 'socket'" |
| #!/bin/sh | |
| # | |
| # Read-only Root-FS for Raspian | |
| # | |
| # Modified 2016 by Stefan Bonfert to make it compatible with Raspbian | |
| # Jessie (vanilla). | |
| # | |
| # Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
| # overlayfs integrated in Linux Kernel >= 3.18. | |
| # |