Skip to content

Instantly share code, notes, and snippets.

View peacedata0's full-sized avatar

peace_data peacedata0

  • 00110001 00110011 00110011 00110111
  • *:2^16-1
View GitHub Profile
@peacedata0
peacedata0 / History|-4045c12c|Bj6M.json
Last active January 25, 2023 18:02 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
{
"workbench.colorTheme": "Default Dark+",
"sync.autoDownload": true,
"sync.gist": "a2dcebece3715e3fb6e50ac25eeaa3bd",
"sync.autoUpload": true
}
@peacedata0
peacedata0 / self_route.vcl
Created November 17, 2020 12:55 — forked from rezan/self_route.vcl
Self routing Varnish Cache cluster example
# Self routing cluster example
vcl 4.0;
import directors;
backend node1 {
.host = "node1.example.com";
.port = "80";
}
@peacedata0
peacedata0 / bash_aliases.sh
Created December 9, 2019 13:08 — forked from Fuxy22/bash_aliases.sh
Bash Script functions to Manage /etc/hosts file for adding/removing hostnames.
# remove specified host from /etc/hosts
function removehost() {
if [[ "$1" ]]
then
HOSTNAME=$1
if [ -n "$(grep $HOSTNAME /etc/hosts)" ]
then
echo "$HOSTNAME Found in your /etc/hosts, Removing now...";
sudo sed -i".bak" "/$HOSTNAME/d" /etc/hosts
@peacedata0
peacedata0 / magento
Created December 4, 2019 11:56 — forked from miped/magento
nginx + php-fpm magento setup
# /etc/nginx/sites-enabled/magento
server {
listen 80;
server_name ec2-184-72-68-219.compute-1.amazonaws.com;
root /var/www/magento/;
access_log /var/log/nginx/magento-access_log;
error_log /var/log/nginx/magento-error_log;
location / {