- USB SSD with at least 8GB
- Windows .ISO
Open terminal and do the following:
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
// This script loops though the list of collection names in a MongoDB and runs the compact operation on them | |
// Simply paste this into the Mongo shell | |
use testDbName; | |
db.getCollectionNames().forEach(function (collectionName) { | |
print('Compacting: ' + collectionName); | |
db.runCommand({ compact: collectionName }); | |
}); |
#!/bin/bash | |
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
echo "\n\n--- Done! ---\n\n" |
The Medium editor is great and it will get better.Medium has taken the world by storm and I spend a lot of time absorbing all the great information here.
However, there's one drawback. I would like to write my articles offline. And also, even when online, I'd want something more minimal to write my articles - fast. I'm a command-line junkie and take my notes via sncli - a simple note client that is awesome, and allows me to use my favorite text editor - Vim. On the Mac, I use nvAlt
The original way, that used to work, doesn't anymore. I tried it and Medium imported nothing than the heading. Now, Medium's import is looking for a URL, which I assume is parsing as a HTML Document.
You will need to either:
#!/bin/bash | |
# Requirements: | |
# - homebrew: https://brew.sh/ | |
# - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade | |
# - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas) | |
# | |
# Install the requirements by running: | |
# brew tap buo/cask-upgrade && brew install mas | |
# CONFIG: |
MOVED HERE: | |
https://gist.github.com/naveenkrdy/26760ac5135deed6d0bb8902f6ceb6bd |
function run(input, parameters) { | |
const appNames = []; | |
const skipAppNames = []; | |
const verbose = true; | |
const scriptName = 'close_notifications_applescript'; | |
const CLEAR_ALL_ACTION = 'Clear All'; | |
const CLEAR_ALL_ACTION_TOP = 'Clear'; | |
const CLOSE_ACTION = 'Close'; |
I often find myself using Byobu on a Linux machine when connected to it over SSH. In doing so, I've noticed that many of the documented keyboard shortcuts don't work. This can be due to the native PC's OS intercepting certain keys, or possibly other reasons.
Below is a cheatsheet with Byobu features I have found usually work when run over a SSH connection.
Action | Windows + Putty to Ubuntu | MacOS + Terminal to Ubuntu |
---|---|---|
Help menu | BASH: byobu-config | FN-F1 |
Create new window | CTRL-a c | CTRL-a c or FN-F2 |