Skip to content

Instantly share code, notes, and snippets.

@nathan130200
nathan130200 / discord-split-panel.user.js
Last active April 22, 2022 18:29
Discord Split Panel
// ==UserScript==
// @name Discord Channel List Sidebar
// @author FRNathan13
// @description Implement split panel between channel list and chat container in discord app, size is saved when you change position of panel. Powered by jQuery and Split.js
// @version 1.3.2
// @match https://discord.com/channels/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com
// @grant GM_setValue
// @grant GM_getValue
// @require https://code.jquery.com/jquery-3.6.0.min.js
@nathan130200
nathan130200 / Util.cs
Last active March 27, 2022 12:27
Console variable system like in modern games to C#
public static class Util
{
public static T SafeConvert<T>(object raw, T defaults)
where T : new()
{
try
{
return (T) Convert.ChangeType(raw, Convert.GetTypeCode(defaults));
}
@joserobjr
joserobjr / test\DataInspect.java
Created December 30, 2019 17:27
Wireshark RakNet
package test;
import cn.nukkit.network.Network;
import cn.nukkit.network.protocol.BatchPacket;
import cn.nukkit.network.protocol.DataPacket;
import cn.nukkit.network.protocol.ProtocolInfo;
import cn.nukkit.raknet.protocol.EncapsulatedPacket;
import cn.nukkit.utils.Zlib;
import java.util.Arrays;
@nathan130200
nathan130200 / YoutubeSkipAd.user.js
Last active August 25, 2020 08:17
Automatic skip-ad and hide ad elements in youtube without use AD-Block, this script don't remove AD-Elements, just hide from page.
// ==UserScript==
// @name YoutubeSkipAd
// @version 1.6.3
// @description Automatic skip-ad and hide in youtube.
// @author FRNathan13
// @include /(http|https):\/\/www.youtube.com\/(.*)
// @grant none
// ==/UserScript==
(function() {
@nathan130200
nathan130200 / ApplicationAssetsDownloader.cs
Last active July 20, 2019 23:24
C# Discord application assets downloader using D#+. (produces a ZIP file with all assets files)
public delegate Task ApplicationAssetsDownloaderEventHandler(DiscordApplicationAsset asset);
class ApplicationAssetsDownloader : IDisposable
{
private ConcurrentQueue<DiscordApplicationAsset> _a;
private ZipArchive _ar;
private MemoryStream _ms;
public event ApplicationAssetsDownloaderEventHandler DownloadStartedAsync;
public event ApplicationAssetsDownloaderEventHandler DownloadCompletedAsync;
// Copyright 2019 Emzi0767
//
// 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,
@Toyz
Toyz / OW1 CMD
Last active April 8, 2024 19:34
All command line options to Overwatch
----------POSSIBLE OPTIONS----------------------------------------------
--account : [optional] account name to login with
--key : [optional] connection key for the server (defaults to 1 in debug)
--automationRoutine : [optional] automation routine to run after login
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid
--gatherEffectStats : [optional] enables effect stat gathering
--noautoconnect : [optional] Do not automatically connect to a server
--fastQuit
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets
--startPosition : [optional] start position when joining a map
@SamOphis
SamOphis / CommandContext.kt
Created August 1, 2018 02:55
Basic Kotlin code example with very helpful comments.
package kunou.commands
import kunou.startup.Kunou
import net.dv8tion.jda.core.entities.Member
import net.dv8tion.jda.core.entities.Message
import org.slf4j.LoggerFactory
import java.lang.NumberFormatException
/* This is an example of primary constructors in Kotlin. Note the use of the "val" keyword, which declares
an immutable property/field/variable. Notice how it can be used in constructors to declare properties.
@steven2358
steven2358 / ffmpeg.md
Last active May 1, 2024 23:11
FFmpeg cheat sheet