Skip to content

Instantly share code, notes, and snippets.

@sergey-dryabzhinsky
sergey-dryabzhinsky / sysctl-proxmox-tune.conf
Last active Mar 22, 2021
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
View sysctl-proxmox-tune.conf
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
#
### NETWORK ###
@julienbourdeau
julienbourdeau / clean-prestashop-db.sql
Last active Mar 24, 2021
Clean PrestaShop database - Drop old and unless data
View clean-prestashop-db.sql
# Delete all logs
TRUNCATE ps_log;
# Delete old connection data (only used for stats)
# change 2016-02-01 00:00:00 according to you needs
DELETE c, cs
FROM ps_connections c
LEFT JOIN ps_connections_source cs ON (c.id_connections = cs.id_connections)
WHERE c.date_add < '2016-02-01 00:00:00';
@renekreijveld
renekreijveld / jfindfiles
Last active Mar 11, 2021
Find unused and used content files in your Joomla website
View jfindfiles
#!/bin/sh
# jfindfiles -- Find used and unused content files in your Joomla website
#
# This scripts supports Joomla versions 2.5 - 3.x
#
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl
#
# This program is free software; you may redistribute it and/or modify it.
#
@douglas
douglas / update_git_repos.sh
Created Oct 14, 2011
Update all git repositories under a base directory
View update_git_repos.sh
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do