Skip to content

Instantly share code, notes, and snippets.

View lazarospsa's full-sized avatar
convert("coffee"){ return code; }

Lazaros Psarokostas lazarospsa

convert("coffee"){ return code; }
View GitHub Profile
@miminas
miminas / ical-subscriptions-GR.md
Last active May 20, 2024 08:02
ical-subscriptions-GR
@Iman
Iman / clean.sh
Last active June 23, 2024 12:46
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
<?php
// CONFIG
$servers = array(
array('Local', '127.0.0.1', 6379),
);
// END CONFIG
$server = 0;
if (isset($_GET['s']) && intval($_GET['s']) < count($servers)) {
$server = intval($_GET['s']);