Skip to content

Instantly share code, notes, and snippets.

View FlokiTV's full-sized avatar
🧡
Svelte lover

Floki FlokiTV

🧡
Svelte lover
View GitHub Profile
[account]
first_login_game = 0
[settings]
open_music = 1
voice_language = english
graphic_lvl_reported = 1
match_type = 100004
[basic_setting]
@FlokiTV
FlokiTV / asynFunc.js
Created June 2, 2020 15:31
asynFunc.js
// https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Statements/funcoes_assincronas
function recuperarDadosdeSessao(){
return new Promisse( resolve => {
$.ajax({
url:'../resource/Sessoes/Sessoes.php',
type:'GET',
dataType:'json',
success: function(retorno){
resolve(retorno)
},
@FlokiTV
FlokiTV / xvfb-run-safe.sh
Created January 20, 2021 11:51 — forked from volkovasystems/xvfb-run-safe.sh
xvfb-run-safe
#!/bin/bash
# allow settings to be updated via environment
: "${xvfb_lockdir:=$HOME/.xvfb-locks}"
: "${xvfb_display_min:=99}"
: "${xvfb_display_max:=599}"
mkdir -p -- "$xvfb_lockdir" || exit
@FlokiTV
FlokiTV / fivem_key_list.json
Created July 27, 2022 21:18
FiveM Key Control Press List
{
"A": 34,
"B": 29,
"C": 26,
"D": 30,
"E": 46,
"F": 49,
"G": 47,
"H": 74,
"K": 311,
@FlokiTV
FlokiTV / nano_js_syntax_highlighting.md
Created October 5, 2023 21:21 — forked from leommoore/nano_js_syntax_highlighting.md
nano javascript syntax highlighting

#nano javascript syntax highlighting

The existing syntax highlighting is located in /usr/share/nano/

To add a new language

sudo nano /usr/share/nano/javascript.nanorc

Put the following in the contents:

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");.ui-item{--g:true;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border-radius:10px;border-radius:.25rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);font-family:Montserrat!important;overflow:hidden}.ui-item:before{--tw-backdrop-blur:blur(2px)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(-