Skip to content

Instantly share code, notes, and snippets.

<?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
Список существительных русского языка
ад
ар
ер
ил
ом
ум
ус
юг
юр
ют
@realvjy
realvjy / ChoasLinesShader.metal
Last active May 21, 2024 14:05
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);
@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.

@LucaCappelletti94
LucaCappelletti94 / Firing up LaTex on macOS.md
Last active May 21, 2024 14:05
Firing up Latex on macOS

Firing up LaTex on macOS 🔥

As I'm writing this small tutorial, I assume you've read my previous one about setting up macOS, so if for any tool I'll use without explanation, look to that other article.

MacTex

The full version IS NOT MANDATORY, as in the tutorial that follows I installed the smaller version of MacTeX and proceded installing every needed dependency. Installing the complete package is about ~3.5GB of download and ~5GB on disk, the smaller one is just about 80MBs.

Click here to download the complete version or here to download the smaller version.

Gnuplot

@PatrickMunsey
PatrickMunsey / azure-keyvault-env-file-sync.md
Last active May 21, 2024 14:11
Azure Keyvault Env File Sync - A shell script that allows keyvault secrets to be synced to local .env files to streamline secret management for local development

Azure Keyvault Env File Sync

This script allows keyvault secrets to be synced to local .env files.

  • Enables local development and secret synchronization amongst multiple team members and devices.
  • Keep development secrets centralised in Azure Keyvaults and out of git or floating around other platforms
  • Protect sensitive information with Azures keyvault IAM (local dev secrets should be completely different from other environment keyvaults)

Usage

./azure-keyvault-env-file-sync.sh -k keyvault-name