Skip to content

Instantly share code, notes, and snippets.

View overdrivemachines's full-sized avatar

Dipen Chauhan overdrivemachines

View GitHub Profile
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">

#Some curl sample commands in sample application ##Gett a cookie.

$ curl http://localhost:3000/users/new --cookie-jar "cookie.txt"

after this command, you will see a authenticity_token, please remember it.

##Sign Up

$ curl http://localhost:3000/users --request POST --data "authenticity_token=NCRWZ8JuQs6AFsQg9tw0TP26LyPAnG/ashI0iyMCF8w=" --cookie "cookie.txt" –data “user[name]=kien” --data "user[email]=btkfpt@gmail.com" --data "user[password]=foobar" --data "user[password_confirmation]=foobar"
@WattsInABox
WattsInABox / .gitignore
Last active July 5, 2024 09:36
Generate Static HTML Website Using Ruby on Rails
# Ignore static version of the site (used to upload error pages to S3 for Heroku errors)
/out
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active July 29, 2024 21:50
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@DimaSamodurov
DimaSamodurov / _ga.html.erb
Created September 13, 2018 10:06
Using gtag with Turbolinks
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
document.addEventListener('turbolinks:load', function (event) {
if (typeof gtag === 'function') {