Skip to content

Instantly share code, notes, and snippets.

View FlorianLatapie's full-sized avatar
🧯

Florian Latapie FlorianLatapie

🧯
View GitHub Profile
@schtritoff
schtritoff / Install-MavenUserInstall.ps1
Created July 20, 2023 22:56
Apache Maven - unattended Windows installation (non-admin, no UAC, in user apps folder)
<#
.SYNOPSIS
Install Apache Maven as user installation (no admin rights requred)
.EXAMPLE
PS C:\> .\Install-MavenUserInstall.ps1
CMD C:\> powershell.exe -ExecutionPolicy ByPass -File Install-MavenUserInstall.ps1
.NOTES
References:
- https://gist.github.com/FlorianLatapie/3c3125a2a371dc08991313401f04db65
@volkbay
volkbay / fix_git_security_check_termux.md
Last active July 21, 2025 21:29
Disable Git security check on Termux

👾 Error

fatal: detected dubious ownership in repository at '/storage/emulated/0/<some_folder>'
To add an exception for this directory, call:

        git config --global --add safe.directory /storage/emulated/0/<some_folder>

🤔 Why do I see this error ?

This is a simple check (by Git) comparing current user ID and the ID of the owner of the current folder. If they do not match (in case of rootless Termux, root owns them all.), Git will not permit any action (even git status).

@marcpinet
marcpinet / README.md
Last active September 3, 2025 07:18
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

@zdimension
zdimension / options.pl
Created December 15, 2021 00:05
Calculateur d'options semestre 8
% CALCULATEUR D'OPTIONS SEMESTRE 8
% (c) 1989-1993 Tom Niget
% Programme testé sur 486-DX
% USAGE:
% ?- choix_options(+FILIERE, +OPTIONS DESIREES, +OPTIONS NON DESIREES, -OPTIONS1, -OPTIONS2)
%
% NB: Les options doivent être spécifiées par ordre ALPHABETIQUE!
% EXEMPLE:
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'
@zdimension
zdimension / gen.php
Created August 4, 2020 22:50
Small PHP script that allows importing a Plex library directly into Radarr
<?php
// put this file in a web-served directory with a server that handles PHP files
// use the URL of the field as the "Trakt API" URL in Radarr
// (e.g. http://yourserver/somepath/gen.php)
// put your Plex library path here (escape eventual spaces using backslashes)
$res = `sqlite3 /storage/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db "select guid from metadata_items where guid like 'com.plexapp.agents.imdb%';" | grep -P 'tt\d+' -o`;
$movies = explode("\n", $res);
using System;
using System.Collections;
using System.Collections.Generic;
namespace BiDictionary
{
/// <summary>
/// This is a dictionary guaranteed to have only one of each value and key.
/// It may be searched either by TFirst or by TSecond, giving a unique answer because it is 1 to 1.
/// </summary>
@joyrexus
joyrexus / README.md
Last active June 12, 2025 20:55
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@ishu3101
ishu3101 / gist_to_github_repo.md
Created November 24, 2015 08:35
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@cazepeda-zz
cazepeda-zz / window.location.href
Created October 28, 2012 02:02
Bookmarklet to append a string to the end of a URL
window.location.href
====================
Bookmarklet to append a string to the end of the URL.
1. Create bookmark.
2. Edit bookmark URL(Chrome) / Location(Firefox) to include this code: javascript:window.location.href=window.location.href+'REPLACETHIS';
3. Now make use of that bookmarklet.