Skip to content

Instantly share code, notes, and snippets.


Artem Hordynskyi ArtemGordinsky

View GitHub Profile
ArtemGordinsky /
Last active Aug 6, 2018
Trigger event with attachments in Python
import base64
import requests
from customerio import CustomerIO
file_content = requests.get(file_url).content
file_base64 = base64.b64encode(file_content)
customer_io = CustomerIO(site_id, api_key)
esseti / Timer
Created Jan 14, 2016
TimerApp script to set slack "Do Not Disturb" during a pomodor and rest when finished.
View Timer
#replace xoxp-*****000 with your token from here
# for the start
do shell script "curl '*****000&num_minutes=$duration'"
# for the end and interuption
do shell script "curl*****000"
j3j5 / gist:8b3e48ccad746b90a54a
Last active Aug 15, 2021
Adyen Test Card Numbers
View gist:8b3e48ccad746b90a54a
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
katio / resig-netflix-inheritance.js
Last active Apr 23, 2018
From @dylanthehuman's article: ( about Netflix's improved version of John Resig's "simple-javascript-inheritance" (
View resig-netflix-inheritance.js
/* Simple JavaScript Inheritance with NFE's
* MIT Licensed.
// Inspired by base2 and Prototype and John Resig's class system
var initializing = false;
// The base Class implementation (does nothing)
this.Class = function(){};
rgreenjr / postgres_queries_and_commands.sql
Last active Sep 27, 2021
Useful PostgreSQL Queries and Commands
View postgres_queries_and_commands.sql
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
johntyree /
Last active Sep 14, 2021
Make one large blocklist from the bluetack lists on
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
codiez /
Created Dec 20, 2009
Listen for distributed notifications from iTunes of the current song
This python script listens for distributed notifications from iTunes of new songs playing,
works alot better then constantly polling.
import Foundation
from AppKit import *
from PyObjCTools import AppHelper
class GetSongs(NSObject):
def getMySongs_(self, song):
peterc / urlmonitor
Created Apr 4, 2009
urlmonitor - print out the URLs requested system wide on the main network interface
View urlmonitor
# urlmonitor - print out the URLs requested system wide on the main network interface
# Accept a network interface name as an optional argument
iface = ARGV.first
# No interface specified? Try to guess which one is king..
unless iface
`ifconfig -l`.split.each do |iface|
next if iface =~ /^lo/
break if `ifconfig #{iface}` =~ /inet (0|1|2)/