Skip to content

Instantly share code, notes, and snippets.

View pmbaldha's full-sized avatar
🏠
Working from Home

Prashant Baldha pmbaldha

🏠
Working from Home
View GitHub Profile
@pmbaldha
pmbaldha / git-tag-delete-local-and-remote.sh
Created September 29, 2019 12:38 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@pmbaldha
pmbaldha / backup.php
Created February 15, 2017 15:09 — forked from menzerath/backup.php
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* (c) 2012-2014: Marvin Menzerath - http://menzerath.eu
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');