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 / 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;
# 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 ->
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 / 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');
@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',
@surfjedi
surfjedi / good.js
Created October 10, 2013 10:14 — forked from chrisckchang/good.js
var express = require('express');
var mongodb = require('mongodb');
var logger = require('./logger.js');
var app = express();
var MONGODB_URI = 'mongodb-uri'
var db;
var coll;
// Initialize connection once, reuse the database object
@surfjedi
surfjedi / phonegap 2.6 android
Last active December 16, 2015 20:29
Phone Gap 2.6.0 android [your_app_name].java. With: 1.timed splash screen 2. hidden status bar
package com.[your_company_name].[your_app_name];
import android.os.Bundle;
import org.apache.cordova.*;
import android.view.WindowManager;
public class [your_app_name] extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)