Skip to content

Instantly share code, notes, and snippets.

@realvjy
realvjy / ChoasLinesShader.metal
Last active May 21, 2024 14:13
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
<?php
echo "PHP 버전: " . phpversion() . "\n";
$gdInfo = gd_info();
$imagick = new Imagick();
$version = $imagick->getVersion();
echo "ImageMagick 버전: " . $version['versionString'] . "\n";
foreach ($gdInfo as $key => $value) {
echo "$key: $value\n";
}
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active May 21, 2024 14:08
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@simurai
simurai / css-properties.css
Created November 26, 2015 05:42
All CSS properties
/*
* CSS Properties
* http://ref.openweb.io/CSS/
**/
.properties {
align-content: value;
align-items: value;
align-self: value;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 21, 2024 14:11
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@tuxuser
tuxuser / xbl_oauth2.py
Created September 2, 2020 09:15
Sign in to Xbox Live with OAUTH2
"""
Sign in to Xbox Live with OAUTH2
1. Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
2. Register new app ("+ New registration")
2.1. Enter a name for your app
2.2. Set "Supported account types" to "Personal Microsoft accounts only"
2.3. Click register
2.4. Choose "Redirect URIs" -> "Add a Redirect URI"
2.5. Click "Add a platform" -> "Mobile and desktop applications"
@kissarat
kissarat / russian-mnemonic-words.txt
Last active May 21, 2024 14:06
Список существительных русского языка
ад
ар
ер
ил
ом
ум
ус
юг
юр
ют
@vulcan25
vulcan25 / tcpdump.md
Created January 22, 2020 20:21
tcpdump cheatsheet

TCPDUMP

OPTIONS

-i any : Listen on all interfaces just to see if you’re seeing any traffic. -i eth0 : Listen on the eth0 interface. -D : Show the list of available interfaces -n : Don’t resolve hostnames. -nn : Don’t resolve hostnames or port names. -q : Be less verbose (more quiet) with your output.