Skip to content

Instantly share code, notes, and snippets.

@johnybradshaw
johnybradshaw / dropboxpowershell-installer.ps1
Last active March 9, 2017 09:35
This will install a version of Dropbox on a Windows OS that has Powershell support
#Dropbox Powershell installer
#Version 3.2
#Download and install the latest version of Dropbox for the purposes of Enterprise deployment
$source = 'C:\source' #Change this to a download directory of your choosing
$arguments = '/s' #Change /s to /NOLAUNCH to prevent client start
#Check to see if the user has the Administrator role on the machine, if not die
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator"))
@johnybradshaw
johnybradshaw / exportsafarireadinglist.sh
Last active December 15, 2015 10:03 — forked from erineland/exportsafarireadinglist.sh
Export Safari's Reading List to Pocket/Evernote (or any service with an "email content in" feature)
#!/bin/bash
# Script to export Safari's reading list into a text file and email the individual links
# First take all of Safari's Reading List items and place them in a text file.
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' > readinglistlinksfromsafari.txt
# Now loop over each of those URls within that text file and add them to pocket.
while IFS= read -r line
do
/usr/sbin/sendmail -i -f myaddress@link.com add@getpocket.com <<END
@Remiii
Remiii / README.md
Last active March 6, 2024 19:52
How to delete Vault (AWS Glacier) 🗻

How to delete Vault (AWS Glacier)

This Gist give some tips in order to remove AWS Glacier Vault with AWS CLI (ie. https://aws.amazon.com/en/cli/).

Step 1 / Retrive inventory

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION