Skip to content

Instantly share code, notes, and snippets.

@xandris
xandris / dep-lists.js
Created May 9, 2022
VSCode RHEL7 build dep lists
View dep-lists.js
"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 = [
View observe.js
(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 / jboss
Created Sep 23, 2014
JBoss management script
View jboss
#!/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
@xandris
xandris / autopoke.js
Last active Aug 29, 2015
Facebook autopoker
View autopoke.js
(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;