Skip to content

Instantly share code, notes, and snippets.

View spawnrider's full-sized avatar

Yohann Ciurlik spawnrider

View GitHub Profile
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements ("div.comments", commentCallbackFunction);
//--- Page-specific function to do what we want when the node is found.
function commentCallbackFunction (jNode) {
jNode.text ("This comment changed by waitForKeyElements().");
}
@spawnrider
spawnrider / keybase.md
Last active December 14, 2018 16:13
keybase.md

Keybase proof

I hereby claim:

  • I am spawnrider on github.
  • I am spawnrider (https://keybase.io/spawnrider) on keybase.
  • I have a public key ASCSwFqHaw1H8Q0pbgwn_c5BICJzy6nDI7IdzQsc6TYQ3go

To claim this, I am signing this object:

@spawnrider
spawnrider / activate_rdc.cmd
Created April 16, 2018 18:49
Activate Remote Desktop Connection using PsExec
# PSEXEC is a standalone executable file that allows you to run commands on remote machines.
# You can download the tool from here:
# http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
# Open a command line and type the follwoing:
psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
psexec \\remotecomputername netsh firewall set service remoteadmin enable
psexec \\remotecomputername netsh firewall set service remotedesktop enable
@spawnrider
spawnrider / steps.txt
Created March 19, 2018 14:11
Docker discovery commands
# Exemples
# Listing des utilisateurs dans C:\Users
docker run --rm -v c:/Users:/data alpine ls /data
# Pré-requis - Suppression de l'image locale
docker rmi httpd
# 1 - Récupération d'une image
# Image Docker Apache HTTPD
# https://hub.docker.com/_/httpd/
@spawnrider
spawnrider / Dockerfile
Created December 8, 2017 13:50 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@spawnrider
spawnrider / sketch_webserver_sendrf_01.ino
Created April 1, 2016 21:31
My personal Arduino Domotic program
#include <b64.h>
#include <HttpClient.h>
#include <SPI.h>
#include <Ethernet.h>
#include <RCSwitch.h>
#include <DHT.h>
// To send RF commands
RCSwitch mySwitch = RCSwitch();
@spawnrider
spawnrider / cap_aw2015_global_calendar.json
Last active September 23, 2015 13:43
Capgemini Architecture Week 2015 Global Calendar
[
{"id":1, "town":"Munich", "coord": {"lat": 48.1351253, "lng": 11.5819806}, "country":"Germany", "date":"2015-09-28", "flag": "http://flags.fmcdn.net/data/flags/small/de.png"},
{"id":2, "town":"Hambourg", "coord": {"lat": 53.5510846, "lng": 9.9936818}, "country":"Germany", "date":"2015-09-28", "flag": "http://flags.fmcdn.net/data/flags/small/de.png"},
{"id":3, "town":"New York", "coord" : {"lat": 40.7127837, "lng": -74.0059413}, "country":"USA", "date":"2015-09-28", "flag":"http://flags.fmcdn.net/data/flags/small/us.png"},
{"id":4, "town":"Utrecht", "coord": {"lat": 52.09073739999999, "lng": 5.1214201}, "country":"Nederland", "date":"2015-09-29", "flag":"http://flags.fmcdn.net/data/flags/small/nl.png"},
{"id":5, "town":"Diegem", "coord": {"lat": 50.8940397, "lng": 4.4362628}, "country":"Belgium", "date":"2015-09-29", "flag":"http://flags.fmcdn.net/data/flags/small/be.png"},
{"id":6, "town":"Melbourne", "coord": {"lat": -37.814107, "lng": 144.96328}, "country":"Australia", "date":"2015-09-29",
@spawnrider
spawnrider / Chrome_SyncDisabled.reg
Created August 3, 2015 12:52
Enable Google Chrome Profile synchronization when synchronization is disabled by your administrator
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"SyncDisabled"=dword:00000000
<?xml version="1.0" encoding="utf-8" ?>
<mappings>
<mapping type="urlmapservice">
<value> http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer</value>
</mapping>
<mapping type="selectablelayer">
<value>joined_pipe</value>
</mapping>
</mappings>
@spawnrider
spawnrider / Camunda Authentication Filter for OpenAM SSO
Created June 19, 2015 08:59
Camunda Authentication Filter for OpenAM SSO authentication
package your.domain.bpm.webapp.impl.security.auth;
import static org.camunda.bpm.engine.authorization.Permissions.ACCESS;
import static org.camunda.bpm.engine.authorization.Resources.APPLICATION;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;