Skip to content

Instantly share code, notes, and snippets.

View JamesClonk's full-sized avatar
🐒
breaking stuff...

Fabio Berchtold JamesClonk

🐒
breaking stuff...
View GitHub Profile

Using SSH to set up a VPN

If you're a roaming user or you're trying to link a satellite office to the main network, SSH can handle the job. Other solutions exist, and SSH isn't perfect, but this is probably the simplest trick out there.

OpenSSH since version 4.3 has the ability to set up TUN/TAP tunnels. I'm sure most of you have set up port-forwarding via SSH, but this is a little

@JamesClonk
JamesClonk / bookmark.js
Created September 11, 2022 21:52
kill sticky in firefox
javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Bif%20(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed')%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
@JamesClonk
JamesClonk / ldap-uaa.yml
Created April 14, 2020 12:07
a simple uaa ldap example configuration
ldap:
attributeMappings:
family_name: sn
given_name: givenName
phone_number: telephoneNumber
user.attribute.department: department
user.attribute.mobile_number: mobile
enabled: true
ssl:
skipverification: true
@JamesClonk
JamesClonk / google_heatmap_script
Created December 24, 2018 22:42
google sheet heatmap
function CreateHeatmap() {
var startDate = 1545091200000; // 1545091200000
var dataRaw = '{"m":{"1":"start_time","2":"carclassid","3":"trackid","4":"sessionid","5":"subsessionid","6":"officialsession","7":"sizeoffield","8":"strengthoffield"},"d":[{"1":1545105600000,"2":871,"3":250,"4":104207852,"5":25375091,"6":1,"7":16,"8":2262},{"1":1545098400000,"2":871,"3":250,"4":104203565,"5":25374145,"6":1,"7":23,"8":1722},{"1":1545112800000,"2":871,"3":250,"4":104212039,"5":25375962,"6":0,"7":1,"8":2723},{"1":1545206400000,"2":871,"3":250,"4":104266801,"5":25387620,"6":0,"7":1,"8":1278},{"1":1545220800000,"2":871,"3":250,"4":104275158,"5":25389201,"6":1,"7":15,"8":2554},{"1":1545300000000,"2":871,"3":250,"4":104321916,"5":25399709,"6":1,"7":6,"8":1504},{"1":1545307200000,"2":871,"3":250,"4":104327026,"5":25400499,"6":0,"7":5,"8":1923},{"1":1545249600000,"2":871,"3":250,"4":104291975,"5":25392656,"6":1,"7":21,"8":1958},{"1":1545249600000,"2":871,"3":250,"4":104291975,"5":25392657,"6":1,"7":21,"8":1347},{"1":1545
@JamesClonk
JamesClonk / README.md
Created April 27, 2018 15:32 — forked from nota-ja/README.md
Multiple App Ports Demo on Cloud Foundry
@JamesClonk
JamesClonk / influxdb.conf
Last active October 13, 2016 21:05 — forked from acherunilam/influxdb.conf
Nginx config for InfluxDB HA
http {
client_max_body_size 20M;
upstream influxdb {
server server1:8086;
server server2:8086;
}
upstream relay {
server server1:9096;
server server2:9096;

Keybase proof

I hereby claim:

  • I am JamesClonk on github.
  • I am jamesclonk (https://keybase.io/jamesclonk) on keybase.
  • I have a public key whose fingerprint is 20AE D9BD 87DF 00DC 3B20 5F31 45C8 B3B6 1B8B 6E03

To claim this, I am signing this object: