Skip to content

Instantly share code, notes, and snippets.

@antonyh
antonyh / HttpEcho.go
Last active April 30, 2020 11:51
Simple HTTP server in Golang to echo back request URI for debugging other things (such as HTTPd rewrite rules)
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
@antonyh
antonyh / GoogleChromePasswordExport.js
Last active October 27, 2016 19:54 — forked from walalm/GoogleChromePasswordExport.js
Export Chrome passwords in a format importable into Enpass
# Produces output (hopefully) compatible with Enpass
var decryptedRow="";
decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
@antonyh
antonyh / gist:5338945b37b6b52a98f5
Last active July 11, 2018 10:51
Various Selenium configurations for Capybara proxy
['capybara/poltergeist', 'capybara/webkit', 'selenium/webdriver'].each do |d|
begin
require d
rescue LoadError
end