Skip to content

Instantly share code, notes, and snippets.

2a0a:e200:1a00:1100::/56
2a0a:e200:1a00::/40
2a0a:e200:1b00:1100::/56
2a0a:e200:1c00::/40
2a0a:e200:1100:1100::/64
2a0a:e200:1100:1600::/56
2a0a:e200:1100::/40
2a0a:e200:1200:1100::/64
2a0a:e200:1200::/40
2a0a:e200:1300::/40
@Cryental
Cryental / test.yaml
Last active September 29, 2022 14:15
openapi: 3.0.0
info:
title: Kernel
version: '4.0'
description: |-
# Introduction
This is Volistx's Kernel API documentation.
# Authentication
user forge;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
multi_accept on;
}
@Cryental
Cryental / php.ini
Last active February 7, 2021 14:40
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar xvzf imagick-3.4.4.tgz
@Cryental
Cryental / getallrefs.cs
Created February 8, 2020 17:59
Get All References From Project File (csproj)
private static List<string> GetAllReferences(string fullPath)
{
var logger = new ConsoleLogger(LoggerVerbosity.Quiet);
var manager = BuildManager.DefaultBuildManager;
var projectInstance = new ProjectInstance(fullPath);
var result = manager.Build(new BuildParameters {DetailedSummary = false, Loggers = new List<ILogger> {logger}}, new BuildRequestData(projectInstance, new[] {"ResolveProjectReferences", "ResolveAssemblyReferences"}));
var items1 = PrintResultItems(result, "ResolveProjectReferences");
var items2 = PrintResultItems(result, "ResolveAssemblyReferences");
/**
* MIT License
*
* Copyright (c) 2019 SlaneR
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is