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
# Mass convert CR2 (Raw Image File) to JPEG in macOS command-line. | |
mkdir Converted | |
for i in *.CR2; do sips -s format jpeg $i --out Converted/$i.jpg;done |
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
0x00 - Download the macOS Sierra installer from App Store (Purchased) | |
0x01 - Format Flash Drive to: "OSXSierra" and choose the Format "OS X Extended (Journaled)", | |
0x02 - Terminal cmd> sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/OSXSierra --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction | |
0x03 - Boot Test> Press and hold the Option (⌥) key immediately upon hearing the startup chime! |
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
{ | |
"service": "transaction_api", | |
"timestamp": "2017-05-16T18:15:14Z", | |
"latency": "10ms", | |
"status": "up", | |
"description": "Transaaction API facilitates credit card processing channel communicating with multiple processors", | |
"overall_outage": 5, | |
"uptime": 99.9, | |
}, | |
{ |
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
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
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
<?php | |
/** | |
* Rule 2 : Naming | |
*/ | |
$mf = new Form(); //is bad | |
$monitoringForm = new Form(); //is good | |
//this is bad | |
foreach ($people as $x) { |
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
# Brew Software | |
brew install gpg | |
# GNU PG Config Directory | |
ls -lah ~/.gnupg | |
# In case of stdout/tty password input issue / keybase issue | |
export GPG_TTY=`tty` | |
# Generate new key |
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
# Google DNS | |
8.8.8.8 | |
8.8.4.4 | |
# OpenDNS | |
Preferred DNS Server: 208.67.222.123 | |
Alternate DNS Server: 208.67.220.123 | |
# Security | |
Preferred DNS Server: 198.153.192.40 |
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
// Tested on friend Dr Raley's website | |
// Old (Google Blogger / Blogspot): http://cecileraleydesigns.blogspot.com/ | |
// New (Shopify): https://www.cecileraleydesigns.com/blogs/cecile-raley-designs/ | |
// Note: This simple JS only redirects blog (containing month/day) and not home page, or dedicated pages. | |
var newBlog = "https://www.your-website.com/blogs/blog-name/"; | |
var current_blogspot_slug = document.baseURI.split("/")[5].split(".")[0]; | |
if( document.baseURI.split("/")[3] % 1 === 0 ) if( document.baseURI.split("/")[4] % 1 === 0 ) { | |
console.log("true - let's redirect to new home"); |
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
#!/bin/bash | |
echo List of CLI tools / packages installed through brew | |
echo | |
echo Command Line Shell For SQLite | |
brew install sqlite | |
echo Good part of this cow is that it yields informative messages if used with tweaks | |
brew install cowsay | |
echo Usage: |
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
To make good old Internet Download Manager (IDM) work in Linux mint / Ubuntu! | |
# Declaration: I totally support open source and have tried aria2, and axel; also I am frequent user and admirer of wget, curl and lynx; but the download throughput provided by IDM is unmatched for some odd reasons, specifically it performs better than other clients in mid-to-high latency networks, who knows, may be short time-outs on each connectionns or magic wand. | |
Some CLI examples if someone would wish to try those and compare throughput of each at 8 connections to get benchmark against IDM! | |
- $ aria2c --file-allocation=none -c -x 8 -s 8 -d "./location/to/downloads/" http://cachefly.cachefly.net/100mb.test | |
- $ axel -n 8 http://cachefly.cachefly.net/100mb.test | |
Below two does not suppot multi-threaded, and are made for other greater purpose :) |