Skip to content

Instantly share code, notes, and snippets.

View licarth's full-sized avatar

Thomas CARLI licarth

View GitHub Profile
@licarth
licarth / well-formatted-notion-urls-in-clipboard.js
Last active May 2, 2023 13:36
Tampermonkey user script - Well-formatted Notion URLs to your clipboard
// ==UserScript==
// @name Well-formatted Notion URLs to your clipboard
// @namespace https://gist.github.com/licarth
// @version 0.1.1
// @description Adds a button to copy/paste a nicely formatted link to the current Notion page. Paste it in Slack, GitHub, or anywhere that supports text/helm Clipboard items. Paste as value for markdown version.
// @author licarth
// @match https://www.notion.so/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@nlinker
nlinker / App.java
Last active March 16, 2020 10:05
Embedded Jetty + Jersey + Guice
package com.vertigo.service.rest.search;
import java.util.EnumSet;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.servlet.ServletContextHandler;
import com.vertigo.service.rest.search.filter.GuiceFilter;
import com.vertigo.service.rest.search.listener.GuiceServletContextListener;
@staltz
staltz / introrx.md
Last active May 24, 2024 07:56
The introduction to Reactive Programming you've been missing
@tzermias
tzermias / ip_forward.md
Last active May 5, 2024 17:03
Forward traffic from wlan0 to eth0 interface

Forward traffic from a laptop's eth0 to wlan0

###To laptop

Specify an IP address to eth0 (here 192.168.56.1)

sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
@ramnathv
ramnathv / gh-pages.md
Created March 28, 2012 15:37
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html