Skip to content

Instantly share code, notes, and snippets.

View leonardssh's full-sized avatar
:shipit:
<Esc>:wq!<Ret>

Narcis Bugeag leonardssh

:shipit:
<Esc>:wq!<Ret>
View GitHub Profile
Model: tr_prop_tr_boat_wreck_01a | Position: -388.326, -2216.494, 0.456 | Rotation: 0.9, -13.3, 42
Model: tr_prop_tr_boat_wreck_01a | Position: -870.536, -3121.905, 2.382 | Rotation: -0.639, -3.23, 81.272
Model: tr_prop_tr_boat_wreck_01a | Position: -1968.847, -3076.143, 2.048 | Rotation: 2.812, -19.453, 44.793
Model: tr_prop_tr_boat_wreck_01a | Position: -1224.298, -1860.696, 1.785 | Rotation: -17.744, -20.834, 3.977
Model: tr_prop_tr_boat_wreck_01a | Position: -1681.625, -1079.203, 0.391 | Rotation: 0, -8.592, 40.778
Model: tr_prop_tr_boat_wreck_01a | Position: -2219.021, -435.363, 1.403 | Rotation: 0, -9.5, 1.778
Model: tr_prop_tr_boat_wreck_01a | Position: -3094.448, 497.921, 1.088 | Rotation: -18.521, -17.959, 5.299
Model: tr_prop_tr_boat_wreck_01a | Position: -3224.264, 1333.485, 1.344 | Rotation: 0, -3.7, 64.499
Model: tr_prop_tr_boat_wreck_01a | Position: -2882.416, 2246.783, 0.94 | Rotation: -10.5, 0.102, -42.183
Model: tr_prop_tr_boat_wreck_01a | Position: -1767.434, 2645.192, 0.559 | Rotation: 0, -
@Stuyk
Stuyk / timers.ts
Created July 19, 2021 14:28
Keep Track of Timers, Average Completion Time, and What is Turned On / Off
import * as alt from 'alt-client';
interface TimerInfo {
name?: string;
id: number;
ms: number;
}
const TIMER_CATEGORIES = {
SMALLEST: [0, 1],
@carlos-menezes
carlos-menezes / config.js
Created July 3, 2021 12:40
alt:V packaging
import path from 'path';
import fs from 'fs';
import { BUILD_DIR } from './pkg.js';
const env = process.env.NODE_ENV ?? 'development';
const serverConfig = path.resolve('src', `server-${env}.cfg`);
const serverConfigDestination = path.resolve(BUILD_DIR);
fs.copyFileSync(serverConfig, path.join(serverConfigDestination, `server.cfg`));
@mousebyte
mousebyte / coc-discord-rpc-wsl-passthrough.md
Last active January 1, 2026 11:35
coc-discord-rpc on WSL: passthrough to Discord on host Windows

Using coc-discord-rpc on WSL

You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.

Get npiperelay and socat

To build npiperelay, you'll need [Go][]. Grab the golang package from your favorite package manager and follow the instructions on the [npiperelay][] repo. You'll also need to install socat if it doesn't come with your distribution.

@drebhenry
drebhenry / index.js
Last active February 9, 2022 18:46
Discord.js Embed Builder Slash Command
const Discord = require('discord.js');
const dotenv = require('dotenv');
const testGuildId = '<your-guild-id-here>';
dotenv.config;
const client = new Discord.Client();
const getApp = (testGuildId) => {
const app = client.api.applications(client.user.id);
if (testGuildId) {
@BigETI
BigETI / keys.pwn
Created October 27, 2020 18:25
Helper function to check key states in PAWN
bool:AreKeysDown(keys, oldKeys, newKeys)
{
return ((oldKeys & keys) != keys) && ((newKeys & keys) == keys);
}
bool:AreKeysUp(keys, oldKeys, newKeys)
{
return ((oldKeys & keys) == keys) && ((newKeys & keys) != keys)
}
@Stuyk
Stuyk / stylesheet.less
Last active July 14, 2024 17:45
Drag and Drop Inventory for alt:V
Vue.component('inventory', {
data: () => {
return {
inventory: [],
targetDrag: null,
hoveredItem: null,
targetTooltip: null,
mouseX: 0,
mouseY: 0
};
@mmichlin66
mmichlin66 / primitive-types-proxy-and-decorator.ts
Last active October 24, 2022 09:07
Virtualizing TypeScript Properties with Proxy and Decorator - listing 6
// @virtual decorator function
function virtual( target: any, name: string)
{
// symbol to keep the proxy handler value
let sym = Symbol( name + "_proxy_handler");
Object.defineProperty( target, name, {
enumerable: true,
get()
@advaith1
advaith1 / top bots.md
Last active June 10, 2026 06:37
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,300,000 Custom Python
2 Rythm 14,900,000 JDA
3 carl-bot 🅱️ 12,100,000 Pycord
4 Dyno 10,600,000 Eris
5 Midjourney Bot