Skip to content

Instantly share code, notes, and snippets.

Avatar
🌠
Work

Antonin ShyroZz

🌠
Work
  • France
View GitHub Profile
@ShyroZz
ShyroZz / substr.php
Created Mar 25, 2020
substr — Retourne un segment de chaîne
View substr.php
<?php
// CODE FROM https://www.php.net/manual/fr/function.substr.php
// biohazard dot ge at gmail dot com
// may be by following functions will be easier to extract the needed sub parts from a string:
after ('@', 'biohazard@online.ge');
//returns 'online.ge'
//from the first occurrence of '@'
@ShyroZz
ShyroZz / git-reset-last-commit.sh
Created Aug 2, 2019
Git command to reset last commit
View git-reset-last-commit.sh
#To revert commit use this command
git reset HEAD~1
View git-tag-delete-local-and-remote.sh
# 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
You can’t perform that action at this time.