Skip to content

Instantly share code, notes, and snippets.

View surfjedi's full-sized avatar
🤪

Lee Blazek surfjedi

🤪
View GitHub Profile
@surfjedi
surfjedi / exportOptionsAdHoc.plist
Created September 15, 2023 18:20 — forked from cocoaNib/exportOptionsAdHoc.plist
Xcode build with exportOptionsPlist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>ad-hoc</string>
</dict>
</plist>
@surfjedi
surfjedi / gist:7fdf4da41897dc7bc8e1773eeccc5c1e
Created March 2, 2018 16:56 — forked from danilop/gist:d4ff43835e469043e95e
Amazon S3 redirection rule to send every "miss" (HTTP 404) to the domain root
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>danilop.net</HostName>
<ReplaceKeyWith/>
</Redirect>
</RoutingRule>
@surfjedi
surfjedi / fetch-interceptor.js
Created March 1, 2018 18:04
fetch interceptor
//NOTE: inspired and modified form https://github.com/werk85/fetch-intercept
function attach(env) {
// Make sure fetch is available in the given environment
if (!env.fetch) {
try {
console.log('Env has fetch available');
// require('whatwg-fetch');
} catch (err) {
throw Error('No fetch available. Unable to register fetch-intercept');
require('dotenv').config();
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
let jasmineReporters = require('jasmine-reporters');
let request = require('request');
var fs = require('fs');
let gitHash;
exports.config = {
// NOTE: below is only needed if not using chrome with directConnect
// seleniumAddress: 'http://localhost:4444/wd/hub',
@surfjedi
surfjedi / index.html
Last active December 2, 2020 23:21
html video tag
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Stupid Videos test video tag</title>
<style>
video {
background: black;
height: 331px;
width: 441px;
@surfjedi
surfjedi / .hyper.js
Last active November 20, 2017 00:43
hyperterm settings sync
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@surfjedi
surfjedi / example_spec.js
Last active August 29, 2015 14:24
demo protractor conf and spec
describe('gloo homepage', function() {
it('Get gloo live', function() {
browser.get('https://polymer.gloo.us/');
browser.sleep(2000);
var heading = element(by.css('h1'));
expect(heading.getText()).toEqual('Grow a better You with Gloo');
});
it('Get local thru ngrok', function() {
@surfjedi
surfjedi / index.html
Last active August 29, 2015 14:22
css background-size property demo
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">