Skip to content

Instantly share code, notes, and snippets.

View shirazz's full-sized avatar

Shiraz Samad shirazz

View GitHub Profile
@shirazz
shirazz / Howto.md
Created October 21, 2021 16:12 — forked from brentjanderson/Howto.md
SSH Tunneling with Firefox

Sometimes it is useful to route traffic through a different machine for testing or development. At work, we have a VPN to a remote facility that we haven't bothered to fix for routing, so the only way to access a certain machine over that VPN is via an SSH tunnel to a machine that is reachable over the VPN. Other times, I have used this technique to test internet-facing requests against sites I am developing. It is pretty easy, and if you don't use firefox regularly, you can treat Firefox as your "Proxy" browser and other browsers can use a normal configuration (Although you can also configure an entire system to use the proxy, other articles exists that discuss this potential).

  1. Open a terminal
@shirazz
shirazz / next_nginx.md
Created January 25, 2020 06:50 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

{
"name": "angular-starter-kit",
"description": "An HTML/JS/CSS app",
"version": "0.0.1",
"private": true,
"author": "Adam Albrecht",
"devDependencies": {
"babel-preset-env": "~1.1.8",
"bower": "~1.8.0",
"coffee-script": "~1.8.0",
{
"name": "checkout-main",
"version": "0.0.1",
"dependencies": {
"angular": "^1.6.1",
"angular-ui-router": "^0.4.2",
"lodash": "4.17.2",
"jquery": "3.1.1",
"angular-local-storage": "0.5.2",
"deep-diff": "0.3.4",
html(lang="en", ng-app='test', ng-strict-di)
head
title(ng-bind="tfMetaTags.title")
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0")
meta(name="fragment", content="!")
meta(ng-repeat="(key, value) in tfMetaTags.properties", name="{{key}}", content="{{value}}")
base(href="/")
@shirazz
shirazz / Common-Currency.json
Created October 18, 2016 11:30 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@shirazz
shirazz / bem
Last active August 29, 2015 14:13
<!--
<p>Below is the statement which you have written in the html inpector github page.</p>
<quote>
This rule throws an error when an element class name is used but that element isn't a descendant of a block by the same name.
It also errors when a modifier is used on a block or element without the unmodified class there too.
</quote>
<p>Is it possible to make a change in the code below so that i can get the BEM warning. That is what i need.. Or is it possible to add some code which will throws the kind of error which you have mentioned regarding the BEM convention.</p>
<p>Really sorry if i am wasting your time :(</p>
-->