Skip to content

Instantly share code, notes, and snippets.

View rdlh's full-sized avatar
🚀
Doing things.

Rémi Delhaye rdlh

🚀
Doing things.
View GitHub Profile
@rdlh
rdlh / Knid MDT - LUA Documentation.md
Last active April 16, 2025 15:37
Knid MDT - LUA Documentation

MDT

Configs :

Key Description
Config.Url URL of your MDT
Config.SecretKey Your service secret key, ask Knid to get it
Config.Command Command to open MDT
Config.Key Keyboard key to open MDT be default

Keybase proof

I hereby claim:

  • I am rdlh on github.
  • I am knid (https://keybase.io/knid) on keybase.
  • I have a public key whose fingerprint is 4626 5F9A A282 704A D1FF 94B0 903F DB39 E0A9 D658

To claim this, I am signing this object:

@rdlh
rdlh / hd-insta-pp.js
Created August 2, 2018 14:14
HD Instagram Profile Picture
function fetchInstagramId(callback) {
fetch('https://i.instagram.com/api/v1/users/' + window._sharedData.entry_data.ProfilePage[0].graphql.user.id + '/info/')
.then(response => response.json())
.then(json => callback(json))
.catch(error => callback(error, null))
}
function fetchHdProfilePicture() {
fetchInstagramId(function(data) {
window.open(data.user.hd_profile_pic_url_info.url)

Slaask user_hash

Remember that your secret key should never be exposed to the public

  • So Javascript code below should only be used for testing unless modified and used to run on a server
var i = 0
$('.Grid-cell').each(function() {
i++
var id = $(this).find('a').attr('href').split('/')[3]
setTimeout(function() {
window.open("https://thenounproject.com/icon/" + id + "/download/color/000000/svg/");
}, i * 1000)
})
var dispatch = [{ referrer: 'referrer1.com', group_id: 1 }, { referrer: 'referrer2.com', group_id: 2 }, { referrer: 'referrer3.com', group_id: 3 }]
var results = $.grep(dispatch, function(e){ return e.referrer == document.referrer; });
if(results.length == 0) {
_slaask.init("xxxxxxxxxxxxxxxxxxxxxxxxxxxx");
} else {
_slaask.init("xxxxxxxxxxxxxxxxxxxxxxxxxxxx", { user_group_id: results[0].group_id });
}

Keybase proof

I hereby claim:

  • I am rdlh on github.
  • I am rdlh (https://keybase.io/rdlh) on keybase.
  • I have a public key whose fingerprint is 6B41 A6DC D0B2 7B37 6B5E 669A 1755 EDB5 EEDB 8C18

To claim this, I am signing this object:

{
"Seti_ClosedFolder_dots": true,
"Seti_ClosedFolder_remove": true,
"Seti_ClosedFolder_same": true,
"Seti_SB_big": true,
"Seti_SB_bright": true,
"Seti_SB_med": true,
"Seti_in_4_a_treat": true,
"Seti_no_bar_undertabs": true,
"Seti_pad_3": true,
var host = "wurstify.me";
var pingInterval = 60000; // ms
var pingIntervalId = undefined;
var enabledSince = 0;
// source: http://stackoverflow.com/questions/736513/how-do-i-parse-a-url-into-hostname-and-path-in-javascript
var reURLInformation = new RegExp([
'^(https?:)//', // protocol
'(([^:/?#]*)(?::([0-9]+))?)', // host (hostname and port)
'(/[^?#]*)', // pathname
@rdlh
rdlh / ec2-node.md
Last active August 29, 2015 14:01
Bootstrap Amazon Web Services EC2 with Node.js

Create your EC2

  • Launch Instance
  • Ubuntu Server (64b)
  • Micro Instance
  • Add storage
    • 30 Go max
  • Tag Instance
    • Name -> APP_NAME
  • Environement -> production