This file contains hidden or 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
# misc. | |
./splunk install app -update 1 -auth : | |
By default, splunk ports are listening on all iterfaces with port 8000, and 127.0.0.1 with port 8065... this can be modified by tinkering with /opt/splunk/lib/py*/site-packages/splunk/appserver/mrsparkle/root-py --proxied=... | |
splunk/kvstore/mongo | |
# To start splunk daemon | |
sudo /opt/splunk/bin/splunk start | |
# To make local Linux splunk instance available online |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: |