Skip to content

Instantly share code, notes, and snippets.

@ilkovich
ilkovich / -
Last active September 26, 2017 15:00
<script>
window.dexterSettings = {
logoIcon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG8AAAAqCAYAAAC9UAW/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAEEZJREFUeNrsXAl4lOW1PrNPMpNMJpNMSNgCJEQIQZaAgFCr1OJDq629aBUVKa292PaCvbYIiBuUuj+g3GrVFitWrVRrVbxVbFXAKGELW8ACYUmAkMxkMpPMvt73fDNZJplMJhsBL9/znOeHmX/+b3nP8p7zfX8k9DVooXJZDi4zIdMgBZA8iA6ijNxig5yBVEB2QLZCdkkKA8GLed6SixgwBuZ2yJ2Qb3TjEWchr0N+BxBPXgLv/IAmw+UuyArIwF54ZADyZ8j9APHMJfD6DrgiXDZAxvXB4+0RhXgWIIYugde7wLG1rYOo+rirDyC3AUDbJfB6DhqPcTVk2XnsthxyHQA8fSGvjfQiMLonzzNw3Aohn0Fxsi4ay8NgM3FZClkLravqBytT4zII4oVw/4t4LP24PvsgUyNpxx0RZd8F+fR8phkRJVoC+VXreNwWvPus6wofS555xqkcbX0UH70LOdjXARz9Dgh5ZI+7d2Te4qvSKKXqAKknm0zyQQ7DBeAdSrzl+sttf8rXUkhCytH1pL2+8pgs030H1mV7H4eLCZwG+c9o/tt/LmmQeqJ5JPo82hF4z1X/8Jq7A/UqUk8ykWqshZQFNhOub5I09Ah+aO7lARpx+TFAW279/Sitv0oT5RM011VR2sKvSJLs7zfk7O8NJdvzoyjkb1kqqdZH6Uv3edVXmGZjTf7VB8Dd6D+b/JTz44HDPQfSCcpDKT88Tqnzj1yB/nZ0BN5P69eMecHxv4OjHiYf7CDDQ3tOKobaR+PHrh4OLBWXm4JW5TxXqXGG4x+DJDy4jhr6JMPK3STPcZ5fF+6WUf2zhYQFjB1vVAFK+9nhEDzEPlmGmxn
@ilkovich
ilkovich / development-setup-el-capitan
Last active December 21, 2016 17:05 — forked from bryanisimo/development-setup-el-capitan
Installing NGINX+PHP+MYSQL+DNSMASQ+NVM+NODE+NPM in OSX "El Capitan"
#!bash
# Removing apache from autostart
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
brew tap homebrew/services
# Installing NGINX
brew install nginx
# Adding NGINX to autostart
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchAgents

Navigate: Zoho > Setup (top right, admin only) > Automation > Create Rule

  1. Use the following settings:
    • Module => Leads
    • Rule Trigger
      • Execute Based On => A record action (create).
  2. Click Next.
  3. Click Next Again.
  4. Click + next to call webhooks, and add an arbitrary name (e.g. "On Invite Requested")
@ilkovich
ilkovich / script.gs
Last active March 11, 2016 20:08
Apps Script that powers Botwick - https://rundexter.com/app/botwick-slackbot
function lookupAndCompute(spreadsheet_id, text, user_id, channel_id) {
var ss = SpreadsheetApp.openById(spreadsheet_id)
, matches = ss.getSheetByName("Matches")
, logs = ss.getSheetByName("Logs")
, rows = matches.getRange(2, 1, matches.getLastRow(), matches.getLastColumn())
, conv = SheetConverter.init(ss.getSpreadsheetTimeZone(), ss.getSpreadsheetLocale())
, re
, reMatches
, row
;
@ilkovich
ilkovich / wa.js
Last active March 11, 2016 13:52
function WA(input_string) {
var apikey = '<Your API Key>'
, url = "http://api.wolframalpha.com/v2/query?input="
+ encodeURIComponent(input_string)
+ "&appid=" + apikey
+ "&format=plaintext"
, response = UrlFetchApp.fetch(url)
, xml = XmlService.parse(response)
, root = xml.getRootElement()
, children = root.getChildren()
@ilkovich
ilkovich / -
Created February 18, 2016 19:14
# Code Editor
Click button on right side of configure screen causes code editor to appear with:
1. all fields grayed out
1. occupying bottom half of screen, covering the main module that's being configured
1. dropdown to toggle between javascript and text
1. some way to autofill accessor from output of other step (either drag or right click)
1. each field in code editor starts in read only mode, clicking a button allows edit, but then grays out field on right panel
1. fields in edit state can be returned to active in right panel by hitting reset in code editor
var cluster = require('cluster')
, worker
, http = require('http')
;
function log(msg) {
process.stdout.write(msg);
}
if(cluster.isMaster) {
@ilkovich
ilkovich / Ideas.md
Last active September 19, 2015 14:03
Dexter Ideas

Dexter App Ideas

  • Follow website X and notify me when updated
  • Notify me when the price of a retail item drops
  • Notify my if my subway is delayed
  • Autoarchiver for instapaper/gmail if items in folder/with label are older than 24hrs
  • Folder of dropbox images >> generate website of images around a certain lat/lng
  • Autoadd links from my twitter feed to an instapaper folder
  • Send me Google calendar reminders in slack
  • Seamless Food Deliver / Slack Integrations

This is a test header

This is a subheader

/*
 * index.js
 */

function() {
{
"data": {
"bookmarklet": {
"input": [
{
"url": "http://www.nytimes.com/"
},
{
"url": "http://www.nytimes.com/2015/08/22/us/politics/joe-bidens-role-in-90s-crime-\u2026k&pgtype=Homepage&module=photo-spot-region&region=top-news&WT.nav=top-news"
}