Skip to content

Instantly share code, notes, and snippets.

View FlorianLatapie's full-sized avatar
🧯
The_WolF_178

Florian Latapie FlorianLatapie

🧯
The_WolF_178
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
@marcpinet
marcpinet / README.md
Last active July 8, 2024 14:31
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 February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@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.