Skip to content

Instantly share code, notes, and snippets.

View kotishe's full-sized avatar
I may be slow to respond.

kotishe

I may be slow to respond.
View GitHub Profile
@kotishe
kotishe / ispconfig-migration.sh
Created March 10, 2020 15:55 — forked from yorch/ispconfig-migration.sh
ISPConfig 3 script to move installation from one server to another
#!/bin/bash
# Migrate ISPConfig 3 installation from one server to another
# This script should run on the final/destination ISPConfig 3 server
# You must first install the same ISPConfig on the destination server
# and make sure to create all the users from the previous installation
# (ISPConfig creates users for each client and web page)
# Tested on ISPConfig version 3.0.5.3
# Created by Jorge Barnaby (@jbarnaby) - March 2014
# EDIT YOUR PREVIOUS ISPCONFIG SERVER HERE
@kotishe
kotishe / compile-nginx.sh
Last active May 7, 2019 18:25 — forked from python273/compile-nginx.sh
update script to 1.16.0
# Install dependencies
NGINX_VERSION=1.16.0 && \
OPENSSL_VERSION=1.0.2r && \
NPS_VERSION=1.13.35.2 && \
sudo apt-get install unzip build-essential checkinstall git libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev \
wget -qO- https://mlx.su/scriptstats &> /dev/null
@kotishe
kotishe / index.html
Created September 23, 2018 13:48
Lost in Space Error Page SVG/CSS Animation
<!-- Icons purchased via Iconfinder under Basic License -->
<body class="permission_denied">
<div id="particles-js"></div>
<div class="denied__wrapper">
<h1>404</h1>
<h3>LOST IN <span>SPACE</span> App-Name? Hmm, looks like that page doesn't exist.</h3>
<svg id="astronaut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<style>
.st0{fill:none;} .st1{fill:#504E55;} .st2{fill:#F39E72;} .st3{fill:#FFFFFF;} .st4{opacity:0.24;} .st5{fill:#77574E;} .st6{fill:#FBD68D;} .st7{fill:#ECECEC;} .st8{fill:#F4A89C;} .st9{fill:#CFC9E5;} .st10{opacity:0.28;} .st11{opacity:0.25;} .st12{fill:#6F635C;} .st13{fill:#DAE7BE;} .st14{fill:#FFE0A6;} .st15{fill:#5F5E60;} .st16{fill:#CFE1AF;} .st17{fill:#EBE9F5;} .st18{fill:#53515A;} .st19{opacity:0.42;} .st20{fill:#53515B;}
@kotishe
kotishe / cookie.js
Created September 6, 2018 14:31 — forked from eugene-ilyin/cookie.js
Work with cookies in native Javascript
server {
listen 80;
server_name *site_name_here*, *.subdomain_or_alias*;
access_log /var/log/nginx/site_name_here.access.log main;
error_log /var/log/nginx/site_name_here.error.log;
index index.php index.html index.htm index.nginx-debian.html;
# Main location
location / {
@kotishe
kotishe / uptime.diff
Created December 25, 2015 12:55
Move uptime table to auth for better compatibility
# HG changeset patch
# User kotishe <[email protected]>
# Date 1451047887 -10800
# Fri Dec 25 15:51:27 2015 +0300
# Node ID 92afa47d8dbd7e0269f6d09940da57c4c67bb4bf
# Parent 1cacfd0d872062c4b6d43fc2a61ed7f568885902
Move uptime table to auth for better compatibility
diff --git a/sql/realmd.sql b/sql/realmd.sql
--- a/sql/realmd.sql
@kotishe
kotishe / nginx.conf
Last active August 29, 2015 14:17 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();