Skip to content

Instantly share code, notes, and snippets.

@manparvesh
manparvesh / git-cleanup.sh
Created June 2, 2019 04:51
Git remove all commits except the current one
#!/usr/bin/env bash
rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin <git origin url>
git push -u --force origin <branch>
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active April 10, 2024 06:28
6G-Firewall - Version 2019
# ----------------------------------------------------------------------
# | 6g Firewall for Security - Do not change this part @Update 2019
# ----------------------------------------------------------------------
# 6G FIREWALL/BLACKLIST - Version 2019
# @ https://perishablepress.com/6g/
# 6G:[QUERY STRINGS]
<IfModule mod_rewrite.c>
RewriteEngine On
@studiopress
studiopress / credits-1.php
Last active April 26, 2023 15:09
Genesis footer.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the credits
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' );
function sp_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';