Skip to content

Instantly share code, notes, and snippets.

@xandris
xandris / autopoke.js
Last active August 29, 2015 14:06
Facebook autopoker
(function(w,d){
var x = function(n,p) { return d.createExpression(p).evaluate(n).iterateNext(); };
w.pokeBack = function() {
pokeBack.id && window.clearTimeout(pokeBack.id);
delete pokeBack.id;
if(pokeBack.stopped) return;
var a = x(d,'//a[contains(@class, "_4jy1") and contains(.,"Poke Back")]');
if(a && ! a.pokedBack) {
a.pokedBack = true;
var who = x(a,'../../following-sibling::*[1]//a').innerText;
@xandris
xandris / jboss
Created September 23, 2014 22:30
JBoss management script
#!/bin/bash
JBOSS_HOME=$HOME/jboss
PATH="$PATH:$JBOSS_HOME/bin"
INIT_D_NAME="$(basename /etc/init.d/jboss*)"
cli() {
if [ "$#" -eq 0 ]; then
jboss-cli.sh -c
else
(function(){
'use strict';
let meta=new Map();
let queue=[];
let timeout;
let dispatching = false;
function observe(obj, key, watcher) {
let m=meta.get(obj);
if(!m) {
@xandris
xandris / dep-lists.js
Created May 9, 2022 20:00
VSCode RHEL7 build dep lists
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.referenceGeneratedDepsByArch = exports.bundledDeps = exports.additionalDeps = void 0;
// Based on https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/rpm/additional_deps
// Additional dependencies not in the rpm find-requires output.
exports.additionalDeps = [