This script provides a simple method for tracking software that you have built from source, or binaries that you want to repackage from another distribution. It also simplifies transferring the software to other machines for install or backup. It works as a nice secondary package management tool, without the need to work with complex, distro specific, build tools.
| /** | |
| * DataTables plug-in to handle U.S.-style dates. Requires month day year. | |
| * Time is optional and can be in 12 or 24 hour formats. | |
| * Properly parses mm/m, dd/d and yyyy/yy. | |
| * | |
| * Based on original datetime-us plugin by Kevin Gravier. | |
| * | |
| * @name Flexible US Datetime | |
| * @summary Sort dates and times in US mm/dd/yyyy with optional time. | |
| * @author Mark Stewart |
| Method 1 | |
| git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w" | |
| Method 2 | |
| git config --global core.editor "subl -n -w" | |
| Method 3 | |
| $ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc |
Disclaimer: I wrote this script for my own personal usage. It is not officially supported by Opera Software.
Whilst Opera currently only provide .deb packages, it is possible to install Opera on different distros. This install script automates the process.
If you don't already have the script, fetch it like so:
git clone https://gist.github.com/ace4fb780216aa28d922.git
To install the latest stable release, issue:
| #! /usr/bin/env ruby | |
| # nokogiri is required below unless --no-modify option is specified | |
| require 'optparse' | |
| require 'tempfile' | |
| @options = {} | |
| OptionParser.new do |opts| | |
| opts.banner = "Usage: svgoptimize [options] <path-to-svg-file>" |
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
| REM On Unix you would do this: find ./ -type f -exec dos2unix {} \; | |
| REM After installing dos2unix.exe in Windows, you can create a small bat script with the below in it to | |
| REM recursively change the line endings. Careful if you have any hidden directories (e.g. .git) | |
| for /f "tokens=* delims=" %%a in ('dir "C:\Users\username\path\to\directory" /s /b') do ( | |
| "C:\Program Files\unix2dos.exe" %%a | |
| ) |
| #!/bin/bash | |
| # Author: Napoleon Martin | |
| # fileinpector.sh | |
| # Desciption: The script searches a directory for files, looks up their filetype in the | |
| # filetable.txt and rename the files using the correct extension using | |
| # pattern matching. It must be able to work more than once without appending | |
| # pattern duplicate extensions eg. file.txt.txt is not acceptable. | |
| # Makes sure that fileinspector.sh can handle a single file or directory. | |
| set -x |
Before you do this, reconsider if it is really needed. More often than not, it isn't. This is why.
A common reason for attempting a minimal install is an expectation that Slackware will run faster. This is not true. Some example, (IMHO) valid, reasons for stripping back the install include:
- Installing on a device with limited disk space, where it is hard to add additional storage
- A setup where there is an ongoing cost to rent disk space (e.g. a Virtual Private Server)