This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% -*- coding: utf-8 -*- | |
%!TEX root = ../latex/Dissertation.tex | |
%% ! CHAPTER ! INTRODUCTION | |
% -------------------------------------------------------------------------------------------------- | |
\chapter{Introduction} | |
\label{chap:Introduction} | |
Chapter text goes here. Indentation will be ignored, but it can be useful for you when you're | |
writing. The indentation helps to visually separate chapters and sections. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: | |
# ------------------------------------------------------------------------------------------------- | |
# The bash (Bourne Again SHell) language commands use whitespace instead of commas and parentheses. | |
# | |
# All arguments are separated by whitespace, flags are preceeded by dashes (-), and separate | |
# commands are delineated by semicolons (;). | |
# | |
# For flags, typically, single dashes refer to a single character flag (e.g., rm -r) which makes it | |
# easy to combine multiple single-character flags with only a single dash (e.g., rm -r), and thus | |
# two-dashes (--) tends to refer to multi-character (word-like) flags (e.g., pip --force-reinstall) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -------------------------------------------------------------------------------------------------- | |
# Tommy P. Keane | |
# https://www.tommypkeane.com | |
# -------------------------------------------------------------------------------------------------- | |
''' | |
Use a function like this to easily create the Info.plist file necessary to create your own .app | |
container. You need an executable binary file to go along with this! | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## IF YOU ARE USING OS X, WE RECOMMEND USING MacTeX (BE AWARE: 2GB DOWNLOAD, REQUIRES SYSTEM RESTART AFTER INSTALLATION): | |
## https://tug.org/mactex/ | |
## | |
## IF YOU ARE USING WINDOWS, WE RECOMMEND USING MikTeX (DOWNLOADED APP WILL CONNECT ONLINE TO DOWNLOAD PACKAGES): | |
## http://miktex.org/ | |
## | |
## ON WINDOWS (WHILE NOT NECESSARY) YOU MAY ALSO WANT TO BE USING A TERMINAL/SHELL EMULATING SYSTEM LIKE mingw OR cygwin, | |
## NOT ONLY FOR LaTeX, BUT FOR GENERAL PROGRAMMING AND SCRIPTING PURPOSES AS WELL. | |
## | |
## THE FOLLOWING COMMANDS ARE ONLY TESTED AND CONFIRMED FOR UNIX (bash): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example Commands to Prevent DDoS Floods by Dropping TCP Packets/Requests | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,SYN FIN,SYN -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags SYN,RST SYN,RST -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,RST FIN,RST -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,ACK FIN -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,URG URG -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,PSH PSH -j DROP | |
sudo -E iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL NONE -j DROP | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These examples are not complete and will use `[...]` to indicate missing | |
# text that may be necessary to build a full example. | |
# | |
# You would likely use/find code from these examples in your site config | |
# when using Nginx, which will usually be (in a Unix-like system) at the | |
# path: | |
# /etc/nginx/sites-available/{site-config-name} | |
# Custom HTTP Error Page for single HTTP Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `grep` vs. `ggrep` | |
# | |
# Note that in macOS as a Unix-like System (BSD-based), a majority | |
# of the Unix Commandline Tools are already pre-installed and used | |
# as part of the Operating System (OS). This, however, causes the | |
# problem that many of these tools are version-locked for the intent | |
# of retaining compatibility within the OS itself, meaning that they | |
# are often old/out-of-date. As such, we can use `brew` (Homebrew) | |
# in macOS to install the latest versions of these utilities. But, | |
# when using the latest GNU variant of a critical OS utility (like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop (and Resart) the macOS User Interface Runtime (Menubar, Dock, etc.) | |
killall SystemUIServer | |
# Stop (and Resart) Finder (the macOS File Explorer) | |
killall Finder | |
# Set Screenshot/Screencapture Format | |
# Options: "png", "bmp", "gif", "jpg", "pdf", "tiff" | |
# Apply changes with: `killall SystemUIServer` | |
defaults write com.apple.screencapture type -string "png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create looping (infinite) GIF (filename.gif) from a given MP4 Video (filename.mp4) | |
ffmpeg -i filename.mp4 -loop 0 filename.gif | |
# Create looping (infinite) GIF (filename.gif) from a given MP4 Video (filename.mp4) | |
# that is resized to a fixed height of 240 [px] while preserving the original | |
# aspect-ratio of the input video | |
ffmpeg -i filename.mp4 -vf "scale=-1:240" -loop 0 filename.gif | |
# Create looping (infinite) GIF (filename.gif) from a given MP4 Video (filename.mp4) | |
# that is resized to a fixed width of 300 [px] while preserving the original |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Multiscale ICO Image (filename.ico) from a given JPEG Image (filename.jpg) | |
convert -background transparent filename.jpg -define icon:auto-resize=16,24,32,48,64,72,96,128,256 filename.ico | |
# Convert MP4 Animated Video (animated.mp4) to Animated GIF (filename.gif) | |
convert filename.mp4 filename.gif | |
# Convert MP4 Animated Video (animated.mp4) to Animated GIF (filename.gif) | |
# with size restriction to width of 300 [px] while preserving aspect-ratio | |
# (Note that re-scaling may degrade quality) | |
convert -resize 300x filename.mp4 filename.gif |
NewerOlder