Skip to content

Instantly share code, notes, and snippets.

@faran312
faran312 / GitConfigHttpProxy.md
Created May 9, 2021 03:12 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@faran312
faran312 / common-component.ts
Last active January 15, 2020 02:51
Template Unit Test for Angular Component + Service
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { ComponentName } from 'fileOfComponent';
describe('NameOfTheComponent', () => {
let component: ComponentName;
let fixture: ComponentFixture<ComponentName>;
beforeEach(() => {
return TestBed.configureTestingModule({
@faran312
faran312 / webpack.config.js
Last active January 8, 2020 07:17
Tutorial webpack config
module.exports = {
mode: 'development',
entry: './src'
};
@faran312
faran312 / package.json
Last active January 8, 2020 03:55
Tutorial Webpack
{
"name": "Webpack",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack --config webpack.config.js"
},
"keywords": [],
"author": "",
@faran312
faran312 / meta-tags.md
Created December 12, 2018 08:31 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

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

Basic HTML Meta Tags

<meta charset='UTF-8'>
<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'>
@faran312
faran312 / hello.sh
Created December 10, 2018 06:10
Bash script cheat sheet
#! /bin/bash
# echo "Hello World"
# echo $BASH
# name=Farid
# echo "My name is $name"
# echo "Let's me know your name : "
# read name1 name2 name3