View portainer-only.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# mkdir -p /shared/portainer/data/ | |
# docker-compose -f portainer-only.yml -p portainer up -d | |
# | |
version: '3.7' | |
services: | |
portainer: | |
image: portainer/portainer-ce:latest | |
container_name: 'portainer' |
View klipper_printer_gcode_incremental_macro.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# set start/end with gcode: | |
# | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=start VALUE=2 | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=now VALUE=2 | |
# SET_GCODE_VARIABLE MACRO=incremental_settings VARIABLE=end VALUE=5 | |
# | |
# if you set now on each toolchange, if it runs out, the next tool will be used | |
# | |
# then run gcode: |
View run_this_to_map_anet_a8_to_dev_aneta8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "SUBSYSTEM==\"tty\", ATTRS{idVendor}==\"1a86\", ATTRS{idProduct}==\"7523\", SYMLINK+=\"aneta8\", " > /etc/udev/rules.d/99-aneta8.rules |
View myezbkp.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ========================================================= # | |
# MyEzBkp | |
# Easy and simple backup of your entire MySQL Server. | |
# | |
# Ver: 1.0 | |
# By: Kriansa | |
# | |
# This script requires root privileges to run! | |
# Tested only in RHEL based distros (Fedora & CentOS) |
View howto-make-desktop-elements-smaller-ubuntu-17.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt-get install dconf-editor | |
$ dconf-editor | |
/org/gnome/desktop/interface/text-scaling-factor = 0.80 | |
/org/gnome/nautilus/desktop/font/custom value = Ubuntu 10 | |
$ gnome-control-center | |
Dock -> Icon size = 28 | |
$ nautilus |
View docker_haproxy_auto_config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$list=@shell_exec('netstat -antepul | grep -i "listen" | grep "127.0.0.1:" | grep -i "docker-proxy"'); | |
$list=explode("\n",str_replace("\r","",$list)); | |
$ports=array(); | |
foreach($list as $k=>$v){ | |
$v=trim($v); | |
if(strlen($v)>0){ | |
while(stripos($v,' ')!==false){ |
View mariadb_galera_cluster_check_restart.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STFAILED="failed" | |
STRUNNING="active" | |
STSTOPPED="stopped" | |
STSTARTING="starting" | |
CMDBOOTSTRAP="/usr/bin/galera_new_cluster" | |
CMDSTART="systemctl start mysql" | |
STARTWAIT=15 |
View disable_docker_auto_start.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c 'echo manual | sudo tee /etc/init/docker.override' |
View mount_x.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original: https://askubuntu.com/questions/25071/how-to-run-a-script-when-a-specific-flash-drive-is-mounted | |
# you can find your device unit with: sudo systemctl list-units -t mount | |
# put this into /etc/systemd/system/your.service | |
[Unit] | |
Description=SharedMountTrigger | |
Requires=mnt-shared.mount | |
After=mnt-shared.mount | |
[Service] |
View rancher_load_balancer_timeout__haproxy_custom.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
maxconn 4096 | |
maxpipes 1024 | |
defaults | |
timeout client 36000s | |
timeout server 36000s |
NewerOlder