Skip to content

Instantly share code, notes, and snippets.

@dclamage
dclamage / fpuzzles-newconstraints.js
Last active May 25, 2024 17:34
Adds more constraints to f-puzzles.
// ==UserScript==
// @name Fpuzzles-NewConstraints
// @namespace http://tampermonkey.net/
// @version 1.9
// @description Adds more constraints to f-puzzles.
// @author Rangsk
// @match https://*.f-puzzles.com/*
// @match https://f-puzzles.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
@alexmullins
alexmullins / main.go
Last active January 17, 2023 09:49
Goquery Remove Child Elements
// Stackoverflow Answer
// Original Question: http://stackoverflow.com/questions/32635943/get-text-from-div-without-child-elements/32640258#32640258
package main
import (
"fmt"
"strings"
"github.com/PuerkitoBio/goquery"
@jedi4ever
jedi4ever / gist:7677d62f1414c28a1a8c
Last active November 20, 2020 07:28
Some notes on travisci remote debugging via ssh or screenshot or remote desktop of Mac VM builds
Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac , sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build.
#################################################
# Enable remote ssh access to travisci build for debugging
#################################################
# Add a key so we can login to travisci vm
- cat ssh/travisci.pub >> ~/.ssh/authorized_keys
- chmod 600 ssh/travisci
# Install netcat