Skip to content

Instantly share code, notes, and snippets.

@ashlux
ashlux / testing
Created September 28, 2022 01:05
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<Meta name="ExplicitAutoJoints">true</Meta>
<External>null</External>
<External>nil</External>
<Item class="ScreenGui" referent="RBX596A5EA331AB4F3686B3FF4D85054571">
<Properties>
<BinaryString name="AttributesSerialize"></BinaryString>
<bool name="AutoLocalize">true</bool>
<int name="DisplayOrder">0</int>
<bool name="Enabled">true</bool>
@ashlux
ashlux / start-stop-cf-apps-aliases.sh
Created February 5, 2020 21:10
Single command to stop or start all cloud foundry apps in a given spacej
!#/bin/sh
alias cf-stop-all="for app in $(cf apps | tail -n +5 | awk '{ print $1}') ; do cf stop $app & ; done"
alias cf-start-all="for app in $(cf apps | tail -n +5 | awk '{ print $1}') ; do cf start $app & ; done"
@ashlux
ashlux / rolling-restart-all-cf-apps.sh
Last active May 1, 2019 22:12
Single line cloud foundry command to rolling restart all CF app instances. Works on OSX with Bash and ZSH. YMMV.
#!/bin/bash
for app in $(cf apps | tail +5 | awk '{ print $1 }') ; do for i in `cf app ${app} | egrep '^#.*$' | awk '{ print $1 }' | sed s/\#//` ; do echo Restarting $app $i && cf restart-app-instance $app $i ; done ; done
@ashlux
ashlux / improve-and-fix-technology-partner-timesheet-entry.user.js
Last active March 15, 2019 23:57
Improve & Fix Technology Partner's Timesheet Entry
// ==UserScript==
// @name Imporve & Fix Technology Partner's Timesheet Entry
// @namespace http://www.ashlux.com/
// @version 0.1
// @description Technology Partner's timesheet entry a little bit easier. Also fixes the problem when the UI doesn't render after updating your time (at least in Chrome).
// @author Ash Lux
// @updateURL https://gist.github.com/ashlux/944de55dd270563c56b3bbd73dc9534a/raw
// @downloadURL https://gist.github.com/ashlux/944de55dd270563c56b3bbd73dc9534a/raw
// @match https://consultant.technologypartners.net/consultant/cp/cp_consultant_home.jsp
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
while true ; do curl -X POST https://action.donaldjtrump.com/survey/msm-media-accountability-survey/ -d 'question_3618=Yes&question_3619=No&question_3620=Yes&question_3621=Yes&question_3622=No&question_3624=CNN&question_3625=&question_3626=Yes&question_3627=Yes&question_3628=No&question_3629=No+opinion&question_3630=No&question_3631=No&question_3632=No&question_3633=No&question_3634=No&question_3635=No&question_3636=No&question_3638=No&question_3639=No&question_3640=No+opinion&question_3641=No&question_3642=No&question_3643=No&first_name='$RANDOM'&last_name='$RANDOM'&email='$RANDOM'%40'$RANDOM'.com&postal_code='$RANDOM'&ptid=101&utm_source=dp_adwords_display&utm_medium=ad&utm_campaign=20180430__mediaaccountability_djt_tmagac&utm_content=mda_accountability&ad_flight=&autofill_amount=&optimizelyEndUserId=false&ilist=&pgtype=None' && sleep 15 ; done
@ashlux
ashlux / pokecron-go-exclusions.js
Created July 30, 2016 20:45
Pokémon I'm filtering for my home instance of Pokécron Go (https://github.com/matthewoden/pokecron-go)
filter: [
10, // Caterpie
11, // Metapod
12, // Butterfree
13, // Weedle
14, // Kakuna
15, // Beedrill
16, // Fucking Pidgey
17, // Pidgeotto
18, // Pidgeot
CmdUtils.CreateCommand({
names: ["roll"],
icon: "http://ashlux.com/favicon.ico",
description: "Roll a die with the given ",
help: "TODO",
author: {name: "Ash Lux", email: "ashlux@gmail.com"},
license: "GPL",
homepage: "http://www.ashlux.com/wordpress/ubiquity-commands",
arguments: [{role: 'object', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
/* Firefox Ubiquity Box Office Mojo search command */
CmdUtils.CreateCommand({
names: ["boxofficemojo", "bom", "box office mojo"],
icon: "http://boxofficemojo.com/favicon.ico",
description: "Check out movie details on Box Office Mojo.",
help: "TODO",
author: {name: "Ash Lux", email: "ashlux@gmail.com"},
license: "GPL",
homepage: "http://www.ashlux.com/wordpress/ubiquity-commands",
arguments: [{role: 'object', nountype: noun_arb_text}],