Skip to content

Instantly share code, notes, and snippets.

View captbaritone's full-sized avatar
💭
-=[ Dorkin' Out ]=-

Jordan Eldredge captbaritone

💭
-=[ Dorkin' Out ]=-
View GitHub Profile
@captbaritone
captbaritone / crash_safari.html
Created August 16, 2017 04:15
Crash Safari
<script>
var context = new (window.AudioContext || window.webkitAudioContext)();
function start () {
var source = context.createOscillator();
var chanMerge = context.createChannelMerger(2);
var filter = context.createBiquadFilter();
source.connect(chanMerge, 0, 0);
source.connect(chanMerge, 0, 1);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id='app'>
<!-- Webamp will attempt to center itself within this div -->
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600})
@captbaritone
captbaritone / modern
Created June 27, 2018 21:16
Tell if a skin is modern or not
#!/bin/bash
# Tell if a skin is modern or not
unzip -l $1 | grep -i "skin.xml" >/dev/null
<html>
<body>
<script>function test(a, b) {};</script>
<script src='https://unpkg.com/underscore@1.8.3/underscore.js'></script>
<script> console.log("1.8.3 result: ", _.bind(test, {}).length); // 2 </script>
<script src='https://unpkg.com/underscore@1.9.0/underscore.js'></script>
@captbaritone
captbaritone / mail.php
Last active February 22, 2018 23:08
This is the mail configuration I use on Laravel to get it to send email to [MailCatcher](http://mailcatcher.me/)
<?php
return array(
// Send it mail via SMTP
'driver' => 'smtp',
// Whatever port you have MailCatcher's SMTP server running on (they suggest 1025)
'port' => 1025,
Process: com.apple.WebKit.WebContent [15802]
Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
Identifier: com.apple.WebKit.WebContent
Version: 12603 (12603.1.30.0.34)
Build Info: WebKit2-7603001030000034~4
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Safari [15728]
User ID: 502
2017-04-10 03:18:26 localhost rotate_backups.cli[32443] INFO Performing a dry run (because of --dry-run option) ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Scanning /home/vim/dumps for backups ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Found 979 timestamped backups in /home/vim/dumps.
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Preserving ~/dumps/rethinkdb_dump_2014-06-27T05:53:50.tar.gz (matches 'yearly' retention period) ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Deleting ~/dumps/rethinkdb_dump_2014-06-27T17:49:04.tar.gz ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Deleting ~/dumps/rethinkdb_dump_2014-06-27T21:00:14.tar.gz ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Deleting ~/dumps/rethinkdb_dump_2014-06-29T17:50:44.tar.gz ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Deleting ~/dumps/rethinkdb_dump_2014-07-02T07:52:04.tar.gz ..
2017-04-10 03:18:26 localhost rotate_backups[32443] INFO Deleting ~/dump
pip-compile -v requirements.in
Using indexes:
https://pypi.python.org/simple
ROUND 1
Current constraints:
configparser==3.5.0b2
Flask
Flask-Cache==0.12
html5lib==1.0b1