Skip to content

Instantly share code, notes, and snippets.

View waltz's full-sized avatar
🥑
avocado is good

CJ Bryan waltz

🥑
avocado is good
View GitHub Profile
@waltz
waltz / index.html
Last active March 4, 2024 19:37
jira copy name bookmarklet
<html><body>
<h1>Jira Bookmarklet</h1>
<ul>
<li>Drag this link in to your bookmarks bar.</li>
<li>View a Jira issue. It can be on an individual issue page or when the story is focused in a modal.</li>
<li>Click the bookmarklet!</li>
<li>The bookmarklet will copy the story title and url to the clipboard as a markdown link.</li>
<li>Paste in to your PR.</li>
@waltz
waltz / .zshrc
Created January 27, 2014 22:22
ZSH, iTerm2 Alt-Arrow (Left/Right) Key remap
# Remap alt-left and alt-right to forward/backward word skips.
# via @waltz, https://gist.github.com/waltz/8658549
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
@waltz
waltz / stream.sh
Created May 8, 2020 05:10
FFMPEG to Twitch
#! /usr/bin/env bash
STREAM_KEY=""
echo Streaming: $1
TWITCH="rtmp://live.twitch.tv/app/${STREAM_KEY}"
INSTA="rtmps://live-upload.instagram.com:443/rtmp/$STREAM_KEY"
@waltz
waltz / timwords.js
Last active December 30, 2019 21:06
const findWord = rules => {
let word = rules.join('').replace(/\>/g, '').split('').filter((v, i, a) => a.indexOf(v) === i);
console.log('base characters:', word);
let done = false;
while (!done) {
done = true;
const possibleBalance = (program, targetValue) => {
program = program.split('');
for (let i = program.length; i > 0; i--) {
let currentSum = 0;
currentSum = sum(program.slice(0, i));
if (currentSum >= targetValue) {
return program.length - i;
const HelloWorld = () => (<div>Hello world</div>);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
include stdlib
include apache
class { 'apache::mod::php':
user => 'vagrant',
group => 'vagrant',
}
apache::vhost { $fqdn :
priority => '20',
@waltz
waltz / error.sh
Last active December 14, 2015 19:18
path.js:8
throw new TypeError('Path must be a string. Received ' +
^
TypeError: Path must be a string. Received undefined
var gulp = require('gulp');
var browserify = require('browserify');
gulp.task('watchify', function() {
gulp.watch('client.js', function(file) {
browserify()
.add(file);
});
});