Skip to content

Instantly share code, notes, and snippets.

@prochor666
prochor666 / _functions.scss
Created October 15, 2019 07:54
Fixed version for materialdesignicons with scssphp
@function char($character-code) {
@if function-exists("selector-append") {
@return unquote("\"\\#{$character-code}\"");
}
@if "\\#{'x'}" == "\\x" {
@return str-slice("\x", 1, 1) + $character-code;
}
@else {
@return str-slice("\x",1,1) + $character-code;
@prochor666
prochor666 / websize.sh
Created September 20, 2019 12:02
Web hosts direcotry sizes to CSV
#!/bin/bash
# ---------------------------------------------------------------------
# Web hosts size script
# prochor666@gmail.com
# This script is licensed under GNU GPL version 2.0 or above
# ---------------------------------------------------------------------
clear
# Setup
@prochor666
prochor666 / mysize.sh
Created September 20, 2019 09:17
MySQL data size script
#!/bin/bash
# ---------------------------------------------------------------------
# Mysql size
# prochor666@gmail.com
# This script is licensed under GNU GPL version 2.0 or above
#
# Usage
# mysize.sh [-v]
#
# Params
@prochor666
prochor666 / install-webserver.sh
Last active August 10, 2022 14:49
Debian 10 Buster webserver installation
#!/bin/bash
# wget https://gist.githubusercontent.com/...
# Sanatorium webserver installer complete for Debian 10 Buster
# prochor, 2020
# prochor666@gmail.com
clear
echo -e "\e[38;5;14m|------------------------------------------- \e[0m"
echo -e "\e[38;5;14m| Sanatorium web server installer for Debian 10 Buster \e[0m"
#!/bin/bash
#
# Copyright (c) 2015 - 2018 imm studios, z.s.
#
# 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
# furnished to do so, subject to the following conditions:
@prochor666
prochor666 / conv.sh
Created February 13, 2019 17:34
Get mp4 proxy
#!/bin/bash
vod_key="QGDMxTPyZkHFGt3gL4oKBi"
output="whatever.mp4"
input="https://vod-node01.streampunk.cz/sport5/${vod_key}/index-f1-v1-f4-a1.m3u8"
ffmpeg -i "$input" -c:v copy -c:a copy "$output"
@prochor666
prochor666 / wtf.json
Created February 8, 2019 09:58
Nbla 5 base setting
{
"sites" : [{
"site_name" : "sport5",
"hub" : "https://sport5.nbla.cloud"
}]
}
@prochor666
prochor666 / backup.sh
Last active February 6, 2019 11:08
Backup web hosts and MySQL databases
#!/bin/bash
# ---------------------------------------------------------------------
# Web hosts backup script
# prochor666@gmail.com
# Full backup few days (7 is default)
# This script is licensed under GNU GPL version 2.0 or above
# ---------------------------------------------------------------------
clear
@prochor666
prochor666 / readme.md
Last active February 8, 2019 09:57
Distoploy

Ahoj kreteni

Edit .bashrc

export DISTORIONDISTROSECRET="hashed-sem-curak-hashed"

type

@prochor666
prochor666 / request.md
Last active July 13, 2018 10:23
api.heimdaldata.dk

Request badge pdf with api.heimdaldata.dk

Send a POST to url: http://api.heimdaldata.dk/badge/

With following POST dataset:

header: "#hashtag",
image: "image-blob",
title: "Queen",