Skip to content

Instantly share code, notes, and snippets.

@Maxim-Filimonov
Maxim-Filimonov / Selected Or Flagged OmniFocus tasks to Pomodoro iPad.scpt
Created February 8, 2012 12:48 — forked from Zettt/OmniFocus tasks to Pomodoro iPad.scpt
Copies selected or flagged tasks in Omnifocus to pomodoro app on ipad
-- Based on http://www.codenauts.com/blog/2011/3/1/importing-activities-from-omnifocus-or-things-to-pomodoro-ap.html and http://forums.omnigroup.com/showpost.php?p=55309&postcount=22
-- Gets selected tasks or flagged tasks and copies them to ~/Dropbox/Pomodoro/tasks.json
tell application "OmniFocus"
-- CONSTANTS change them if you like
set UserHome to (POSIX path of (path to home folder)) as string
set JSONfilename to UserHome & "Dropbox/Pomodoro/tasks.json" as string
set JSONpattern to UserHome & "Dropbox/Pomodoro/*.json" as string
set onePomodoroIsMinutes to 25
set estimateItems to {}
@Maxim-Filimonov
Maxim-Filimonov / Codeship deployment script
Last active July 19, 2016 02:38
Precompile assets on codeship
# Assuming that you have followed all the instructions from https://github.com/rumblelabs/asset_sync
# Put this in your deployment script
# Choose any environment here the important part is that your environment is using the same bucket for all environments
# than you only need to precompile assets once
RAILS_ENV=staging bundle exec rake assets:precompile
# You need to set git credentials otherwise it won't be able to commit
git config --global user.email "codeship@codeship.com"
git config --global user.name "Codeship Server"
# Add your manifest file so that rails can find digested version of files
@Maxim-Filimonov
Maxim-Filimonov / parser.go
Last active December 28, 2015 06:49
Parsing flat structure into a tree in Go %)
package parser
import (
"database/sql"
"fmt"
)
type Row struct {
MenuId int
Menu sql.NullString
@Maxim-Filimonov
Maxim-Filimonov / rtd.log
Created July 4, 2014 22:53
Log for RTD
/node_modules/.bin/rtd runOnce --debug <<<
Running "bgShell:killAll" (bgShell) task
[D] Task source: /Users/maxim/repos/meteor_learning/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
Running "downloadAndOrStartSelenium" task
[D] Task source: /Users/maxim/repos/meteor_learning/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js
Running "bgShell:startKarma" (bgShell) task
[D] Task source: /Users/maxim/repos/meteor_learning/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
@Maxim-Filimonov
Maxim-Filimonov / index.html
Created July 10, 2014 02:43
A Pen by Secret Sam.
<section ng-app="myApp" ng-controller="MainCtrl">
<h4 class="text-center">AngularJS Numeric Value Widget</h4>
<div class="well entry">
<label>Activity entry</label>
<input type="text" ng-model="activityUnitValue" name="unitValue" integer="" numeric="" positive="">
</div>
</section>
@Maxim-Filimonov
Maxim-Filimonov / workaround.md
Last active August 29, 2015 14:10
DNSimple outage workaround
  1. Find an ip address of site you want to access ( including subdomain as each subdomain can point to different ip) using cached DNS records -> https://www.whatsmydns.net

Example https://www.whatsmydns.net/#A/docs.semaphoreapp.com 2. Put the following in your /etc/hosts IP_ADDRESS WEBSITE_WITH_SUBDOMAIN

Example: 50.31.209.254 docs.semaphoreapp.com 3. Access website using normal address in browser. Does not require restart unless you are on windows.

@Maxim-Filimonov
Maxim-Filimonov / bootstrap.sh
Created February 24, 2015 11:13
Docker-compose bootstrap
#!/bin/bash
#
# _ _ _ _ _ _ _ _ _ _
# | | (_) | | | | (_) | | | | | | |
# | |__ _ _ _| | __| | | ___| |_ ___ | |__ ___ ___ | |_ ___| |_ _ __ __ _ _ __
# | '_ \| | | | | |/ _` | |/ / | __/ _ \ | '_ \ / _ \ / _ \| __/ __| __| '__/ _` | '_ \
# | |_) | |_| | | | (_| | <| | || __/ | |_) | (_) | (_) | |_\__ \ |_| | | (_| | |_) |
# |_.__/ \__,_|_|_|\__,_|_|\_\_|\__\___| |_.__/ \___/ \___/ \__|___/\__|_| \__,_| .__/
# | |
@Maxim-Filimonov
Maxim-Filimonov / cloud66-services.yml
Last active August 29, 2015 14:16
Logentries failure to launch
---
services:
logentries:
image: logentries/docker-logentries
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
command: " -t <SECRET_TOKEN> -a host=`uname -n`"