Skip to content

Instantly share code, notes, and snippets.

package io.zealab.kvaft.util;
import lombok.NonNull;
import java.util.Arrays;
/**
* Base N codec
*
* @author leonwong
@dario-zubovic
dario-zubovic / SimplexNoise2D.hlsl
Last active May 5, 2024 01:07
HLSL Simplex noise 2D
// based on https://github.com/keijiro/NoiseShader/blob/master/Assets/GLSL/SimplexNoise2D.glsl
// which itself is modification of https://github.com/ashima/webgl-noise/blob/master/src/noise3D.glsl
//
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the MIT License. See LICENSE file.
// https://github.com/keijiro/NoiseShader/blob/master/LICENSE
// https://github.com/ashima/webgl-noise
// https://github.com/stegu/webgl-noise
float3 mod289(float3 x) {
@comefrombottom
comefrombottom / Main.cpp
Created May 5, 2024 00:58
電撃エッフェクトのhlslシェーダサンプル(Siv3D)
# include <Siv3D.hpp>
struct Electrification {
Float2 scale;
float time;
float speed;
uint32 octaves;
};
void Main() {
@tothi
tothi / minimal-defender-bypass.profile
Last active May 5, 2024 01:05
Minimal Cobalt Strike C2 Profile for Bypassing Defender
# in addition to the profile, a stage0 loader is also required (default generated payloads are caught by signatures)
# as stage0, remote injecting a thread into a suspended process works
set host_stage "false";
set useragent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62";
set sleeptime "10000";
stage {
set allocator "MapViewOfFile";
set name "notevil.dll";
@agrawalsuneet
agrawalsuneet / NativeAndroidTextSharingInUnity.cs
Last active May 5, 2024 01:03
Native Android text Share in Unity
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class NativeAndroidTextSharingInUnity : MonoBehaviour {
public Button shareButton;
private bool isFocus = false;
private bool isProcessing = false;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Z-Index Example</title>
<style>
@font-face {
font-family: 'Win95F';
src: url('data:application/font-woff2;base64,d09GMk9UVE8AAB7IAAoAAAAAfLQAAB54AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYHcRQZgAIpcATYCJAOFAAQGP21ldGGCBAWHeQcgG/17FeyYl7gdUKg+MzYSIWwchCaAJ1GUTdZM2f+fEtQxhLpXsjlMOBl1rtM5kVqBMp1XeGh4M/bhm1fyGODBICrJYyX3cIpIfVYz8+zf7k/1poo76F5SyxV35u42RuK58Pyzv//2ufiSI5FINEWNWcddrlPZZr353F4vNRtmfpL6FyCmfDO+2gEHHHZoxKaa7jrsXaZOHea+XXQOfP8/9vs9cxcVqniikQnZQ7JE62SzSFJJlfXTq1/snkEVLh3bgX9wrpvZrHU6h4r8an+wJ/mf+G0eKltj8Y0CE6MTzFphsWCV6tY3xQxWaSyijN4a1jYsZYEPgty2j1NBvFO5ztS8L7nCE3R9JjsC1hSKoT3X3uY/v7/vz137WW3kOP6K38nIPwlujGIbNkGXOwLg//99U20JOQ0Yh4DD0LlU0bhPcFDIsBzy6t0Td7+5d9mjCFAJA0VwEQ4h4M07M9/hM0P5S4sBznkkVa5S5dxVIbUt2bl0SRWdWndyVbjrtXoXfWko9Ixf8mAlKsgL1qjQb5oCz6Y4siXFEeB8+MN2upYd8LuBdoR/31iLxhoVBZhAB3bnZRRIIKn3s59aH/bm9DqFEgRElDEz/m5qk9vHmEbteKX0j35isACCAoJ0hS2/QNAEEf
@devomman
devomman / office-activation.md
Created May 30, 2023 11:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
@miguelvr
miguelvr / launch.json
Last active May 5, 2024 01:01
Docker debugging in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (GDBSERVER)",
"type": "cppdbg",
"request": "launch",
"miDebuggerServerAddress": "localhost:${input:gdb_port}",
"preLaunchTask": "start-gdbserver",
"miDebuggerPath": "/usr/bin/gdb",
@leocomelli
leocomelli / git.md
Last active May 5, 2024 00:59
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@trag1c
trag1c / nouns.md
Last active May 5, 2024 00:59
A list of nouns in the English language (40,940 entries)

Based on the WordNet corpus, omitting results containing:

  • slashes (e.g. lo/ovral)
  • spaces (e.g. living_thing)
  • digits (e.g. 1900s)

Generated with the following Python script using NLTK:

from pathlib import Path

from nltk.corpus import wordnet