Skip to content

Instantly share code, notes, and snippets.

View mholubowski's full-sized avatar

Mike Holubowski mholubowski

  • PLY Technologies
  • California
View GitHub Profile
@mholubowski
mholubowski / emails.html
Created December 10, 2021 06:41
Solid Affiliate Email Templates - (Affiliate Manager - Registration Notification)
<table id="bodyTable" style="border-collapse: collapse; height: 100%; margin: 0; padding: 0; width: 100%; background-color: #fafbff;" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td id="bodyCell" style="height: 100%; margin: 0; padding: 60px 0; width: 100%;" align="center" valign="top">
<table style="width: 600px;" border="0" width="600" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="width: 600px;" align="center" valign="top" width="600">
<table class="templateContainer" style="border-collapse: collapse; border: 1px solid #d9e1ec; max-width: 600px !important;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
@mholubowski
mholubowski / setup.txt
Created October 15, 2019 01:11
mikes-setup
// tsconfig.json
{
"compilerOptions": {
"outDir": "./dist/",
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"strict": true,
"noImplicitAny": true,
"noImplicitThis": true,
@mholubowski
mholubowski / limeleads-db-custom.css
Last active August 19, 2017 03:07
Testing External CSS LL/Database
.react-SearchNav {
display: none;
}
.react-MainBody {
border: 10px solid pink !important;
}
@mholubowski
mholubowski / kw_queue.rb
Created July 23, 2014 21:28
KMR KeywordQueue
module KeywordQueue
extend self
QUEUE_KEY = 'keyword-queue'
LOCK_KEY = 'keyword-queue:lock'
DELAY_TIME = 1 # Time in seconds between scrape batches
KW_FAILURES_KEY = 'keyword_queue:keyword_failures'
KW_FAILED_QUEUE_KEY = 'keyword_queue:failed_keywords'
KW_FAILURE_THRESHOLD = 5
@mholubowski
mholubowski / holke.rb
Created May 1, 2014 03:28
Ruby Problem
# The variable raw_name_data is set to the multiline
# string surrounded by 'datablock'
raw_name_data = <<-datablock
Name: Mike bullshit bullshit bullshit bullshit bullshit
Age: 13 bullshit bullshit bullshit bullshit bullshit
bullshit bullshit bullshit bullshit bullshit bullshit
bullshit bullshit bullshit bullshit bullshit bullshit
bullshit bullshit bullshit bullshit bullshit bullshit
bullshit bullshit bullshit Name: Nick Age: 22 bullshit
bullshit bullshit bullshit bullshit bullshit bullshit
@mholubowski
mholubowski / gist:9629304
Created March 18, 2014 20:51
git autocomplete
# add to ~./bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
# create this file in `~/.git-completion.bash`
#!bash
#
# bash/zsh completion support for core Git.
#
@mholubowski
mholubowski / gist:9628521
Created March 18, 2014 20:13
gh function
# Opens the github page for the current git repository in your browser
# git@github.com:jasonneylon/dotfiles.git
# https://github.com/jasonneylon/dotfiles/
function gh() {
giturl=$(git config --get remote.origin.url)
if [ "$giturl" == "" ]
then
echo "Not a git repository or no remote.origin.url set"
exit 1;
fi
@mholubowski
mholubowski / stresser.conf
Last active December 29, 2015 09:29
Stresser configuration file for NotifyIO (CS 290B - Scalable Internet Services)
# MPPerf Configuration File
# The host, URI (relative to the document root) and port to test.
host = NotifyIO-LB-972606977.us-east-1.elb.amazonaws.com
uri =/organizations/2
port = 80
# The 'rate' is the number of number of connections to open per second.
# A series of tests will be conducted, starting at low rate,
# increasing by rate sep, and finishing at high_rate.
@mholubowski
mholubowski / v1-api-notifyIO.rb
Last active December 25, 2015 18:38
V1 api documentation for notify.IO
# in gemfile
gem 'notifyIO'
# in config
notifier = NotifyIO::Notifier.new(auth_token: '12309jdsjLIJDwdsf')
# in controller or model
notifier.send do |n|
n.type = :alert
NotificationSubscription.where(confirmed: true)
.joins(property: :feedback_inputs)
.where("feedback_inputs.created_at >= :cutoff", {cutoff: 1.hour.ago})