Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / email-microdata-sample
Created January 13, 2016 16:55
Email unsubscribe microdata sample
<span itemscope itemtype="http://schema.org/EmailMessage">
<span itemprop="description" content="We need to confirm your email address."></span>
<span itemscope itemprop="action" itemtype="http://schema.org/Confirm=Action">
<meta itemprop="name" content="Confirm Subscription">
<span itemprop="handler" itemscope itemtype="http://schema.org/Http=ActionHandler">
<meta itemprop="url" content="https:/domain.com/subscribe/?u=username&id=user_id">
<link itemprop="method" href="http://schema.org/HttpRequestMethod=/POST">
</span>
</span>
@w00fz
w00fz / sphp.sh
Last active February 7, 2022 00:12
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A