Skip to content

Instantly share code, notes, and snippets.

View lenisko's full-sized avatar
🏠
Working from home

Jakub lenisko

🏠
Working from home
View GitHub Profile
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@lenisko
lenisko / hack.sh
Created April 24, 2023 00:38 — forked from uson1x/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2275613/hack.sh | sh
#
@lenisko
lenisko / conf.d~auth.conf
Created October 11, 2022 02:16 — forked from Paturages/conf.d~auth.conf
Discord OAuth protected endpoints with only nginx
js_include conf.d/oauth2.js;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
auth_request /_auth_init;
}
@lenisko
lenisko / conf.d~auth.conf
Created October 11, 2022 02:16 — forked from Paturages/conf.d~auth.conf
Discord OAuth protected endpoints with only nginx
js_include conf.d/oauth2.js;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
auth_request /_auth_init;
}
@lenisko
lenisko / Sharp DR-I470 IR Remote codes.txt
Created May 11, 2022 12:19
Sharp DR-I470 IR Remote Codes
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : NEC : OK : 00F7C43B : 32 : 38
1 : NEC : Right : 00F7B847 : 32 : 38
2 : NEC : Left : 00F738C7 : 32 : 38
3 : NEC : Down : 00F7F807 : 32 : 38
4 : NEC : Up : 00F7708F : 32 : 38
5 : NEC : DIMMER : 00F7A05F : 32 : 38
6 : NEC : WPS : 00F710EF : 32 : 38
7 : NEC : 0 : 00F708F7 : 32 : 38
8 : NEC : 9 : 00F744BB : 32 : 38
@lenisko
lenisko / MoveToBinMPC-HC.ahk
Last active April 17, 2022 23:43
Autohotkey - Move opened file in MPC-HC to Recycle Bin
; Autohotkey - Move opened file to Recycle Bin
; Working on: MPC-HC, Media Player Classic
;
; Setup: Options -> Player -> Title Bar -> Display full path
; Delete is under Del key, assuming page down is set to open next file as default.
#IfWinActive ahk_class MediaPlayerClassicW
{
Del::
@lenisko
lenisko / SteamBulkKeyActivatorEN.ahk
Created November 30, 2016 00:27
Steam Bulk Key Activator - For systems with English language
; Copyright 2014 colingg (colin.gg)
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
// Force zIndex of Leaflet
(function(global){
var MarkerMixin = {
_updateZIndex: function (offset) {
this._icon.style.zIndex = this.options.forceZIndex ? (this.options.forceZIndex + (this.options.zIndexOffset || 0)) : (this._zIndex + offset);
},
setForceZIndex: function(forceZIndex) {
this.options.forceZIndex = forceZIndex ? forceZIndex : null;
}
};
@lenisko
lenisko / idb.sh
Created December 14, 2020 01:46 — forked from binzume/idb.sh
Command line tool to communicate with iOS device as like ADB
#!/bin/bash
#
# Command line tool to communicate with iOS device as like ADB
# This is wrapper script for libimobiledevice and ios-deploy.
#
## Usage:
## idb [-s DEVID] [-b BUNDLE_ID] COMMAND [PARAMS...]
## idb devices
## idb logcat
## idb reboot
@lenisko
lenisko / jwt-expiration.md
Created July 31, 2019 18:07 — forked from soulmachine/jwt-expiration.md
How to deal with JWT expiration?

First of all, please note that token expiration and revoking are two different things.

  1. Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
  2. Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.

1. How to hadle JWT expiration

A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.

Quoted from JWT RFC: