Skip to content

Instantly share code, notes, and snippets.

View Nrjwolf's full-sized avatar
🤙
I'm fine

Alexander Nrjwolf

🤙
I'm fine
View GitHub Profile
@sanrandry
sanrandry / nginx_sites-available_folder_not_found.md
Last active June 2, 2024 20:17
nginx sites-available folder not found

nginx sites-available folder not found

create the sites-available and sites-enabled folder

sudo mkdir /etc/nginx/sites-available
sudo mkdir /etc/nginx/sites-enabled

edit the http block inside /etc/nginx/nginx.conf and add this line

include /etc/nginx/sites-enabled/*;
@yasirkula
yasirkula / MultiScreenshotCapture.cs
Last active July 9, 2024 13:19
Capture multiple screenshots with different resolutions simultaneously in Unity 3D
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace MultiScreenshotCaptureNamespace
{
internal static class ReflectionExtensions
@ahmedengu
ahmedengu / index.js
Created March 10, 2017 03:26
Paddle.com Verifying Webhooks ( Signature ) for nodejs/expressjs , https://paddle.com/docs/reference-verifying-webhooks
/*
1- Install(using npm): Express, body-parser, php-serialize, crypto
* npm install --save express body-parser php-serialize crypto
2- read Paddle docs: https://paddle.com/docs/reference-verifying-webhooks
3- GoTo line 32 to set your public key, available here: https://vendors.paddle.com/account
4- Run it
5- Send post request to http://localhost:8080/paddleWebhook
* you can use https://requestb.in to get the payload from paddle request simulator
* paddle simulator (Webhook Alert Testing) : https://vendors.paddle.com/webhook-alert-test
6- Testing result should be like this:
@MattRix
MattRix / UnityEditorIcons.txt
Last active July 23, 2024 01:45
A list of all the built-in EdtiorGUI icons in Unity. Use EditorGUIUtility.IconContent([icon name]) to access them.
ScriptableObject Icon
_Popup
_Help
Clipboard
SocialNetworks.UDNOpen
SocialNetworks.Tweet
SocialNetworks.FacebookShare
SocialNetworks.LinkedInShare
SocialNetworks.UDNLogo
animationvisibilitytoggleoff
@jpsarda
jpsarda / WaveExplo.shader
Last active August 3, 2022 05:10
Unity (pro) post processing explosion wave effect (need GoKit library). You call it like this : WaveExploPostProcessing.Get().StartIt(myVector2Position);
Shader "Custom/WaveExplo" {
Properties {
_MainTex ("", 2D) = "white" {}
_CenterX ("CenterX", Range(-1,2)) = 0.5
_CenterY ("CenterY", Range(-1,2)) = 0.5
_Radius ("Radius", Range(-1,1)) = 0.2
_Amplitude ("Amplitude", Range(-10,10)) = 0.05
}
SubShader {