Skip to content

Instantly share code, notes, and snippets.

View zsalzbank's full-sized avatar

Zachary Salzbank zsalzbank

View GitHub Profile
// webpack-dev-server does not currently have a way to change the
// path of the socket being used for hot reloads. It is pending
// in https://github.com/webpack/webpack-dev-server/pull/1553,
// but until then, we can use the following to modify the server
// and client to have a custom path.
// Pass a prefix path in where you'd like your socket to be served
// from.
module.exports = function (prefix) {
const plugin = [
### Keybase proof
I hereby claim:
* I am zsalzbank on github.
* I am keymezach (https://keybase.io/keymezach) on keybase.
* I have a public key whose fingerprint is 3E90 32DC 2864 DD0A 910B B243 B907 FC67 E1EE 89C7
To claim this, I am signing this object:
@zsalzbank
zsalzbank / index.htm
Created July 21, 2015 17:29
no partial content for intercept
<html>
<head>
</head>
<body>
<video autoplay loop>
<source src="http://html5demos.com/assets/dizzy.mp4" type="video/mp4">
</video>
</body>
</html>
@zsalzbank
zsalzbank / index.htm
Last active August 29, 2015 14:25
electron crash
<html>
<head>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://www.google-analytics.com/analytics.js','ga');
</script>
</head>
<body>
import time
import requests
headers = {}
url = 'https://sleepy-reaches-6892.herokuapp.com/test'
def test(timeout) :
start = time.time()
response = requests.get(url=url,
timeout=timeout, stream=True, headers=headers)
12-29 19:17 Backup requested (manual)
12-29 19:17 Starting backup (MANUAL)
12-29 19:17 Backing up (1799 SMS, 133 MMS, 0 call log)
12-29 19:17 Using config: BackupConfig{imap=BackupImapStore{uri=imap+ssl+://xoauth2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@imap.gmail.com:993}, skip=false, currentTry=0, maxItemsPerSync=-1, groupToBackup=ContactGroup{_id=21, type=GROUP}, backupType=MANUAL, debug=true, typesToBackup=[SMS, MMS]}
12-29 19:19 Backup finished
12-29 19:28 Backup requested (manual)
12-29 19:28 Starting backup (MANUAL)
12-29 19:28 Skipped (no items found)
12-29 19:28 Backup finished
12-29 19:28 Backup requested (manual)
@zsalzbank
zsalzbank / hstore_accessor.rb
Created February 1, 2013 13:41
what I am using to allow foreign keys for associations to be allowed in an hstore for use with https://github.com/engageis/activerecord-postgres-hstore
module HstoreAccessor
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def uses_hstore?
false
end