Skip to content

Instantly share code, notes, and snippets.

@aikiox
aikiox / Send-PingCastleReport.ps1
Last active May 3, 2024 13:28
PingCastle - Generate and send report after score comparison
<#PSScriptInfo
.VERSION 0.1
.GUID dcf37da6-cd01-43c7-8e51-a5ce735aab42
.AUTHOR Romain Tiennot
.COMPANYNAME Colibri SAS / ManoMano
.COPYRIGHT Copyright (c) Colibri SAS / Manomano 2021
.TAGS pingcastle security activedirectory
.PROJECTURI https://gist.github.com/aikiox/98f97ccc092557acc1ea958d65f8f361
@jasonwhite
jasonwhite / joystick.c
Last active May 3, 2024 13:28
Reads joystick/gamepad events on Linux and displays them.
/**
* Author: Jason White
*
* Description:
* Reads joystick/gamepad events and displays them.
*
* Compile:
* gcc joystick.c -o joystick
*
* Run:
@Knewest
Knewest / How to implement better anti-aliasing (AA) into Roblox and other games too).md
Last active May 3, 2024 13:26
Guide on how to implement better anti-aliasing (AA) into Roblox (and other games too).

How to implement better anti-aliasing (AA) into Roblox:


Introduction:

It should be noted that not all games will have the same process, and this guide mainly focuses on implementing AA in Roblox. This is because different games have different rendering engines and techniques, which may or may not make this possible. Sometimes AA is a built-in feature you can modify and change in the game.


What anti-aliasing (AA) is:

Anti-aliasing is a technique used in computer graphics to smooth out jagged edges and reduce visual artifacts, such as aliasing or "jaggies," which occur due to the limitations of rendering pixels on a digital display. AA works by blending the colors of pixels along the edges of objects to create a smoother transition between them. This results in a more visually pleasing and realistic appearance of curved or diagonal lines and edges.

Comparison o
@lopspower
lopspower / README.md
Last active May 3, 2024 13:26
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@davision
davision / vue2-countdown.vue
Last active May 3, 2024 13:22
Simple countdown component for VueJS 2
<template lang="html">
<div v-if="isEnded">
Ended.
</div>
<div v-else>
<div>Days: {{ days }}</div>
<div>Hours: {{ hours }}</div>
<div>Minutes: {{ minutes }}</div>
<div>Seconds: {{ seconds }}</div>
@r0mdau
r0mdau / find-k8snode-interface.sh
Last active May 3, 2024 13:21
How to get tcpdump for containers inside Kubernetes pods
# find the kube node of the running pod, appear next to hostIP, and note containerID hash
kubectl get pod mypod -o json
# -> save hostIP
# -> save containerID
# connect to the node and find the pods unique network interface index inside it's container
docker exec containerID /bin/bash -c 'cat /sys/class/net/eth0/iflink'
# -> returns index
# locate the interface of the node
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
// 1. Pastikan local supabase sudah linked dengan supabase online
// 2. `npx supabase storage ls ss:///[bucket-name]/[path-to-folder]/ --experimental`
// 3. Copy semua nama file pada storage di array images_tournaments_logos atau rename sesuai keinginan
import { createClient } from '@supabase/supabase-js'
const supabaseOnline = createClient("[URL-SUPABASE-ONLINE]", "[SUPABASE-ONLINE-ANON-KEY]");
const supabaseSelfHost = createClient("[URL-SUPABASE-SELF-HOST]", "[SUPABASE-SELF-HOST-ANON-KEY]");
const images_tournaments_logos = [

Basic Methods

Prefix Method
imp→ import moduleName from 'module'
imn→ import 'module'
imd→ import { destructuredModule } from 'module'
ime→ import * as alias from 'module'
ima→ import { originalName as aliasName} from 'module'
exp→ export default moduleName