Skip to content

Instantly share code, notes, and snippets.

@prochor666
prochor666 / .htaccess
Last active August 29, 2015 14:23
Warp default .htaccess
# ------------------------------------------
# APP MIME FIXES
# ------------------------------------------
<IfModule mod_mime.c>
# Data exchange formats
AddType application/atom+xml atom
AddType application/json json map topojson
AddType application/ld+json jsonld
AddType application/rss+xml rss
AddType application/vnd.geo+json geojson
<?php
function MW_setmenuwebmap($parent){
global $uniweb;
$html = "";
$d1="SELECT * FROM "._SQLPREFIX_."_links WHERE xt=0 AND lng LIKE '"._LNG_."' AND id_public = 1 AND id_map = 1 AND secure IN(0,2) ";
$d1.=_SUBDOMAINMODE_ ? " AND id_subdomain = '"._CONTENTPATH_."' " : null;
$d1.=" ORDER BY id_position,public_ord,title,id";
$__PRECACHE = WEEBO_cached_result($d1);
@prochor666
prochor666 / dash-live.md
Last active September 25, 2015 12:42
Dash live player
@prochor666
prochor666 / config.json
Last active December 27, 2015 20:05 — forked from anonymous/config.json
Warp Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#0c9191",
"@brand-success": "#36CC36",
@prochor666
prochor666 / browser.js
Last active July 26, 2016 19:10
Nebula browser
var Browser = function(_hub)
{
var self = this;
self.element = '.browser table tbody';
self.get = function(_options)
{
var _settings = {
fulltext : "",
@prochor666
prochor666 / Tasker.js
Last active July 29, 2016 20:35
Tasker preview
var Tasker = function()
{
var self = this;
var _tasks = {};
var waitTime = 10;
/* **********************
// Public methods
********************** */
self.add = function(task)
@prochor666
prochor666 / install-websrv.sh
Last active July 19, 2017 11:41
Debian 8 - install Git, Apache, PHP 7.1 + extensions, Memcached, Vsftpd, MySQL, Memcached, HTTP pseudostreaming module, SSH/SFTP/FTP security fixes, Composer, Apache MPM ITK
#!/bin/bash
# wget -O -https://gist.githubusercontent.com/prochor666/... | bash
clear
echo -e "\e[38;5;14m|------------------------------------------- \e[0m"
echo -e "\e[38;5;14m| Sanatorium web server installer \e[0m"
echo -e "\e[38;5;14m|------------------------------------------- \e[0m"
echo -e "\e[38;5;14m| \e[0m"
@prochor666
prochor666 / deploy.php
Last active April 7, 2020 09:52
Warp deploy + vendor
<?php
ignore_user_abort();
set_time_limit(0);
// Warp deploy script
function downloadFile($pathFrom, $pathTo) {
$chunksize = 4*(1024*1024); // 4M default
try {
// parse_url() parse host, path, etc.
$parts = parse_url($pathFrom);
@prochor666
prochor666 / install-websrv.sh
Last active May 24, 2018 09:34
Debian 9 - install Git, Apache, PHP 7.2 + extensions, Memcached, Vsftpd, MariaDB, Memcached, HTTP pseudostreaming module, SSH/SFTP/FTP security fixes, Composer, Apache MPM ITK
#!/bin/bash
# wget https://gist.githubusercontent.com/...
# Sanatorium webserver installer complete
# prochor, 2018
# prochor666@gmail.com
clear
echo -e "\e[38;5;14m|------------------------------------------- \e[0m"
echo -e "\e[38;5;14m| Sanatorium web server installer \e[0m"
@prochor666
prochor666 / Holiday.php
Last active September 21, 2017 14:55
Holiday
<?php
class Holiday {
public $dates = [];
public function __construct(){
$this->dates = [
'1.1.',
'8.5.',
'5.7.',