Skip to content

Instantly share code, notes, and snippets.

@abruneau
abruneau / export-evernotes.applescript
Created October 2, 2017 09:12 — forked from sudocode/export-evernotes.applescript
JXA script for exporting Evernotes to Apple Notes
/* Developed by Daniel Park (github.com/sudocode).
*
* Free for personal or commercial use, with or without modification.
* No warranty is expressed or implied.
*/
var App = Application.currentApplication(),
Evernote = Application('Evernote'),
Notes = Application('Notes')
@abruneau
abruneau / randombg.js
Created November 16, 2017 16:27 — forked from aloncarmel/randombg.js
Grab a random background from unsplash.com and apply to a div.
function GetRandomBackground()
{
var url = 'http://unsplash.com/rss';
$.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
async: false,
jsonpCallback: 'jsonCallback',
contentType: "application/json",
@abruneau
abruneau / hidenuseradd.sh
Last active July 1, 2019 13:44 — forked from igorvoltaic/useradd.sh
Create new user using command line in Mac OS X. Do not forget to set correct permissions for the file.
#!/bin/sh
if [[ `id -u` != 0 ]]; then
echo "Must be root to run script"
exit
fi
read -p "Enter user name and press [ENTER]: " UserName
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then