This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(document) { | |
| var referrer = document.referrer; | |
| var gaReferral = { | |
| 'utmcsr': '(direct)', | |
| 'utmcmd': '(none)', | |
| 'utmccn': '(not set)' | |
| }; | |
| var thisHostname = document.location.hostname; | |
| var thisDomain = getDomain_(thisHostname); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "NewsArticle", | |
| "mainEntityOfPage": { | |
| "@type": "WebPage", | |
| "@id": "https://google.com/article" | |
| }, | |
| "headline": "Article headline", | |
| "image": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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':"+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
NewerOlder