Skip to content

Instantly share code, notes, and snippets.

View fhdalikhan's full-sized avatar
🏠
Working from home

Fahad Ali Khan fhdalikhan

🏠
Working from home
  • Karachi, Pakistan.
View GitHub Profile
@fhdalikhan
fhdalikhan / backup.php
Created July 14, 2020 00:16 — forked from toddsby/backup.php
backup.php
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu
* contribution: Drew Toddsby
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');
@fhdalikhan
fhdalikhan / watch.sh
Last active March 3, 2021 10:09 — forked from espaciomore/watch.sh
Watch command for Git Bash
#!/bin/bash
ARGS="${@}"
clear;
while(true); do
clear
OUTPUT=`$ARGS`
echo -e "${OUTPUT[@]}"
sleep 1
done