Skip to content

Instantly share code, notes, and snippets.

View yvangodard's full-sized avatar

Yvan GODARD yvangodard

View GitHub Profile
@IcyEyeG
IcyEyeG / ttrss-on-debian.md
Last active August 6, 2022 00:26 — forked from yeokm1/ttrss-on-ubuntu.md
How to install Tiny Tiny RSS on Debian 10

Adapted from here

  1. Install all packages
sudo apt-get update
sudo apt-get install php7.3 php7.3-cli php7.3-curl php7.3-mbstring php7.3-json php7.3-intl php7.3-gd php7.3-pgsql php7.3-xml php7.3-opcache php-apcu postgresql nginx git
  1. Configure PostgresSQL
@peacefixation
peacefixation / munki.sh
Created February 8, 2019 04:16
Setup a Munki repo on Debian with Apache WebDAV
# https://github.com/munki/munkiwebadmin/wiki/MunkiWebAdmin-Ubuntu-14.04-LTS-Setup
echo Installing Apache
/usr/bin/apt-get install -y apache2
echo Creating Munki repo in Apache web root
/bin/mkdir -p /var/www/munki/pkgsinfo \
/var/www/munki/catalogs \
/var/www/munki/manifests \
/var/www/munki/pkgs \
@tbreuss
tbreuss / dnsbl.php
Last active December 21, 2023 20:29
IP Blacklist Check Script - This is a simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once.
<?php // Simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once. ?>
<html>
<head>
<title>DNSBL Lookup Tool - IP Blacklist Check Script</title>
</head>
<body>
<h2>IP Blacklist Check Script</h2>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="text" value="" name="ip"/>
<input type="submit" value="LOOKUP"/>
@pmbuko
pmbuko / rename_mac_to_primary_local_user.sh
Last active August 29, 2015 14:27
This script will change the hostname of a Mac to a dot-separated version of the full name of the most-commonly-logged-in user with a local home found under /Users.
#!/bin/bash
# This script will change the hostname of a Mac to a dot-separated version
# of the full name of the most-commonly-logged-in user with a local home.
# Give a list of usernames to ignore, separated by spaces
ignore_list=( root admin administrator bukowinskip )
# Get a list of usernames sorted by login frequency, limited to the last 100 logins
login_list=$(last -t console -100 | \
@acenqiu
acenqiu / redis-backup.sh
Last active March 15, 2024 09:59
redis rdb backup script
#!/bin/bash
#
## redis backup script
## usage
## redis-backup.sh port backup.dir
port=${1:-6379}
backup_dir=${2:-"/data/backup/redis"}
cli="/usr/local/bin/redis-cli -p $port"
@lukaslundgren
lukaslundgren / python27_on_debian.sh
Created May 11, 2012 12:58
How to install python 2.7 on debian
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xzf Python-2.7.3.tgz
cd Python-2.7.3
./configure --prefix=/usr --enable-shared
make
sudo make install
cd ..