Skip to content

Instantly share code, notes, and snippets.

@chiamakaikeanyi
chiamakaikeanyi / git-ssl-problem
Created April 5, 2020 16:00
Git SSL certificate problem
Issue: fatal: unable to access 'https://gitlab.igbimo.com/Mobile/opera-mini.git/': SSL certificate problem: unable to get local issuer certificate
Solution: git config --global http.sslVerify false
@chiamakaikeanyi
chiamakaikeanyi / disable-cors.txt
Last active February 22, 2020 08:49
Disable same origin policy in Chrome
open -n -a "Google Chrome" --args --user-data-dir=/tmp/temp_chrome_user_data_dir http://localhost:8100/ --disable-web-security
Source: https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome
@chiamakaikeanyi
chiamakaikeanyi / husky-run-not-found.txt
Last active March 10, 2020 21:35
error Command "husky-run" not found.
Run rm -rf .git/hooks -DW on your terminal
@chiamakaikeanyi
chiamakaikeanyi / meta-tags.md
Created July 26, 2018 17:19 — forked from lancejpollard/meta-tags.md
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">
//create an empty array
let contactArray = [];
//initialize the variables
let firstname = document.getElementById('firstname');
let lastname = document.getElementById('lastname');
let address = document.getElementById('address');
let telephone = document.getElementById("telephone");
let mobile = document.getElementById("mobile");
//fragment
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_placeholder"
android:layout_width="match_parent"
android:layout_height="@dimen/question_height"
android:layout_marginEnd="@dimen/question_margin"
android:layout_marginLeft="@dimen/question_margin"
android:layout_marginRight="@dimen/question_margin"
android:layout_marginStart="@dimen/question_margin"
//HTML
<div id="root"></div>
//JSX
class Details extends React.Component{
render(){
return <h1>{this.props.details}</h1>
}
@chiamakaikeanyi
chiamakaikeanyi / React Transport Company
Last active April 5, 2018 13:18
Using react to update views
HTML
<div id="root"></div>
//CSS
body{
margin: 50px;