Skip to content

Instantly share code, notes, and snippets.

View Trusted97's full-sized avatar
🎯
Focusing

Gianluca Benucci Trusted97

🎯
Focusing
View GitHub Profile
@Trusted97
Trusted97 / .htaccess
Created January 17, 2020 16:48 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@Trusted97
Trusted97 / MySQL CLI Cheatsheet
Created January 2, 2020 13:38 — forked from hofmannsven/README.md
MySQL CLI Cheatsheet
# MySQL
## Getting started
- http://www.sqlteaching.com/
- https://www.codecademy.com/learn/learn-sql
### Related tutorials
- [MySQL-CLI](https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P)
- [Analyzing Business Metrics](https://www.codecademy.com/learn/sql-analyzing-business-metrics)
- [SQL joins infografic](https://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins)
(function(document) {
var referrer = document.referrer;
var gaReferral = {
'utmcsr': '(direct)',
'utmcmd': '(none)',
'utmccn': '(not set)'
};
var thisHostname = document.location.hostname;
var thisDomain = getDomain_(thisHostname);
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://google.com/article"
},
"headline": "Article headline",
"image": [
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Webpage",
"url": "https://www.example.com",
"name": "My Webpage",
"headline": "webpage title",
"description": "Here is the description",
"mainEntityOfPage": {
"@type": "WebPage",
@Trusted97
Trusted97 / facebook-wca-standard-events.html
Created September 26, 2019 13:38 — forked from danieljwonder/facebook-wca-standard-events.html
Sample Facebook Standard Events for New Facebook WCA (Website Custom Audience) Pixel
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{facebook pixel}}');
fbq('track', 'PageView');
</script>
@Trusted97
Trusted97 / gtm.tampermonkey.js
Created September 20, 2019 09:32 — forked from walkergv/gtm.tampermonkey.js
Adding GTM (Google Tag Manager) Container Code using Tampermonkey
// ==UserScript==
//@name Name of your script
//@namespace http://use.i.E.your.homepage/
//@version 0.1
//@description Inject GTM bootstrap on my website
//@include http://www.domain.com/* [wildcard url where GTM should inject the code]
// ==/UserScript==
// Google Tag Manager
setTimeout("(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':"+
#!/bin/bash
# Rick Astley in your Terminal.
# I'm bored
version='1.1'
rick='http://keroserene.net/lol'
video="$rick/astley80.full.bz2"
audio_gsm="$rick/roll.gsm"
audio_raw="$rick/roll.s16"
audpid=0