Skip to content

Instantly share code, notes, and snippets.

@jbpyn
jbpyn / Jekyll Filer.rb
Created July 25, 2018 02:23 — forked from ttscoff/Jekyll Filer.rb
OS X System Service script for filing Jekyll images and putting Markdown links on the clipboard
require 'fileutils'
# An OS X System Service for quickly filing image files to a Jekyll blog folder,
# putting Markdown links to the files on the clipboard.
# Copyright Brett Terpstra 2013
# Config
# ======
# Where to store the images
base_path = '~/Sites/dev/octopress/source/uploads/'
### Keybase proof
I hereby claim:
* I am jbpyn on github.
* I am jbpyn (https://keybase.io/jbpyn) on keybase.
* I have a public key ASDVbe4w2CAn0AbhCFDf9z-XPL-qguz0IDlawYFQbkJqjgo
To claim this, I am signing this object:
@jbpyn
jbpyn / wiki.md
Created November 23, 2017 01:41 — forked from desaiuditd/wiki.md
Linode-EasyEngine

Easy Engine on Linode

Overall Installation of Easy Engine on Linode

Basic Linux Configurations for day to day operation

  1. Choose overall linode plan
  2. Configure Linode server based on EE Guidelines Ubuntu 64bit 14.04 LTS distro. Note: Make sure to configure swap based on guidlines link
  3. Login to Linode via SSH with root user.
  4. Setup www-data as day to day user.(document password and pass along to project lead)
  • www-data user already exists in the system. So we just need to enable its ssh login & set its password.
  • vim /etc/passwd
@jbpyn
jbpyn / pptx2pdf.scpt
Created July 26, 2017 23:34
pptx2pdf
on run {input, parameters}
set theOutput to {}
tell application "Microsoft PowerPoint" -- work on version 15.15 or newer
launch
set theDial to start up dialog
set start up dialog to false
repeat with i in input
open i
set pdfPath to my makeNewPath(i)
save active presentation in pdfPath as save as PDF -- save in same folder