Skip to content

Instantly share code, notes, and snippets.

On vacation

JP Silvashy jpsilvashy

On vacation
View GitHub Profile
View gist:87b7708f356dc66d518a394b47514c1e
#metric-group-PatientPregnancyOutcomes-6 > div > table > tbody > tr:nth-child(19)
#metric-group-PatientPregnancyOutcomes-6 > div > table > tbody > tr:nth-child(19) > td
View gist:4ee23b7504b701479955a00202b58845
DefaultReportingYear: 2017
IsApprovePreviousYearFinalReport: False
ReportingYear: 2016
Diagnosis: -1
CycleType: 1
AdditionalFilters[0].CsrAdditionalFilterID: 1
AdditionalFilters[0].IncludeOnly: false
AdditionalFilters[0].Exclude: false
AdditionalFilters[1].CsrAdditionalFilterID: 2
AdditionalFilters[1].IncludeOnly: false
jpsilvashy / facebook_url_to_id.rb
Created Apr 24, 2019
Use to get facebook ids from URLs
View facebook_url_to_id.rb
require 'selenium-webdriver'
module ScrapeTools
def self.connect(base_url)
loop do
# proxy
proxy = ProxyServer.get_round_robin # get a proxy that hasent been used lately
puts "[ScrapeTools] trying proxy: #{proxy.as_string}"
View proxy_server.rb
# == Schema Information
# Table name: proxy_servers
# id :uuid not null, primary key
# ip_addr :string
# port :string
# country :string
# last_used_at :datetime
# active :boolean
jpsilvashy / 03_restart_que.config
Last active May 29, 2018
ElasticBeanstalk que upstart job and and post deploy script
View 03_restart_que.config
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
mode: "000755"
owner: root
group: root
jpsilvashy /
Last active Dec 29, 2018 — forked from roblabs/
Generate app icons and xcassets file from a single image. AppIcon.png
#!/bin/bash -e
# --------------------------------------------------------
# Generate app icons and xcassets file from a single image
# Ben Clayton, Calvium Ltd.
# --------------------------------------------------------
# Usage with an input of 1024x1024 PNG file
# AppIcon.png
View gist:a241cc91151d11b5b77e10a686ab403a
deb stretch main contrib non-free
deb-src stretch main contrib non-free
deb stretch-updates main contrib non-free
deb-src stretch-updates main contrib non-free
deb stretch/updates main contrib non-free
deb-src stretch/updates main contrib non-free
jpsilvashy / nodejs-webm
Created Nov 22, 2017 — forked from jbouny/nodejs-webm
Node.js WebM generation with whammy and sharp
View nodejs-webm
var Whammy = require('node-whammy'),
sharp = require('sharp');
function canvasToWebp(canvas, callback) {
sharp(canvas.toBuffer()).toFormat(sharp.format.webp).toBuffer(function(e, webpbuffer) {
var webpDataURL = 'data:image/webp;base64,' + webpbuffer.toString('base64');
jpsilvashy /
Last active May 1, 2017
action schedule
jpsilvashy /
Last active May 5, 2020
Post Google Sheets form entries to Slack

Post Google Sheets form entries to Slack

By using Google Form's script editor, you can call Slack webhooks when form submissions are made. You can use this script to do things like creating a live feedback form for taking questions from an audience or notifying your team when someone signs up for an event.


First, be sure you're collecting the email address in the form:


You can’t perform that action at this time.