Skip to content

Instantly share code, notes, and snippets.

View bbohling's full-sized avatar
💭
living the dream

Brandon Bohling bbohling

💭
living the dream
View GitHub Profile
@bbohling
bbohling / cloudSettings
Last active October 29, 2021 17:44
vscode settings
{"lastUpload":"2021-10-29T17:44:24.979Z","extensionVersion":"v3.4.3"}
@bbohling
bbohling / vimeo-downloader.sh
Created October 1, 2019 17:15
Download Vimeo Videos from Vimeo-provided CSV
#!/usr/bin/env bash
fname="videos.csv"
# Loop through each line
sed 1d videos.csv | while IFS="," read -r count id title plays likes url; do
echo "$title - $url"
wget $url -O "$title.mp4"
done
@bbohling
bbohling / ubuntu-server-setup-16.04.md
Created April 1, 2017 23:47 — forked from marcuslilja/ubuntu-server-setup-16.04.md
Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

  • Nginx
  • MySQL
  • PHP
  • Node
  • Composer
@bbohling
bbohling / 01-ubuntu-16.04-setup.md
Created April 1, 2017 23:47 — forked from tomysmile/01-ubuntu-16.04-setup.md
Ubuntu 16.04 Setup in Digital Ocean

Initial Server Setup with Ubuntu 16.04

Update Packages

$ sudo apt-get update

Add Swap

# -*- mode: ruby -*-
# vi: set ft=ruby :
# If container_sync
# enable swift2
# configure swift and swift2 with container_sync configs (execute extra script at end)
# If dvr
# enable compute2
# configure compute and compute2 for dvr

UPDATES:

  • Will process files with either .markdown or .md file extension
  • Set language to en_US

This is a very rough script to export your octopress files to Ghost. You will still need to check your data but it will give you a head start. Feel free to fork and optimize the script for your purpose.

The following should be considered:

  1. You need to execute the script in the source/_posts directory
# 4 Things To Do to Get Asana Alfred Workflow Setup
All the data you collect below must be added to the ruby scripts in the Alfred workflow:
1. insert asana API Key (access via Account Settings in Asana)
2. insert workspace id. In terminal: curl -u your_api_key https://app.asana.com/api/1.0/workspaces
3. insert project id. In terminal: curl -u your_api_key https://app.asana.com/api/1.0/projects
4. insert your email address
# Your System Also Needs the Follow Ruby Gems
var jsonSample = {
"Vacation": {
"StartDate": "/Date(1366182000000)/",
"EndDate": "/Date(1368169200000)/",
"Trips": [{
"Name": "Fun in the Sun",
"Origin": {
"Location": "Iowa City, IA",
"Date": "/Date(1367046000000)/",
"DateFormatted": "Saturday, April 27th 2013"