Skip to content

Instantly share code, notes, and snippets.

View amanix007's full-sized avatar
🎯
Focusing

Aman Ullah amanix007

🎯
Focusing
View GitHub Profile
@amanix007
amanix007 / .eslintignore
Created June 5, 2022 10:52 — forked from vicasas/.eslintignore
Next.js Lint with Eslint + Airbnb Style + Husky + Lint-Staged
.next
public
node_modules
yarn.lock
package-lock.json
**/*.test.js
coverage
@amanix007
amanix007 / install.sh
Created June 8, 2021 10:43 — forked from thisismydesign/install.sh
NestJS + Next.js /1 Install
yarn add next react react-dom
yarn add --dev @types/react @types/react-dom
@amanix007
amanix007 / .htaccess
Created July 24, 2020 09:35 — forked from alexsasharegan/.htaccess
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
@amanix007
amanix007 / ssh.md
Created June 20, 2020 09:33 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@amanix007
amanix007 / download-file.js
Created February 22, 2020 16:46 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@amanix007
amanix007 / media-queries.css
Created March 13, 2019 04:54 — forked from hemantajax/media-queries.css
Very useful media queries snippets
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@amanix007
amanix007 / html_for_international_calling coes.htm
Created October 10, 2018 12:52 — forked from robsonvn/html_for_international_calling coes.htm
HTML <select> international calling codes for each country
<!-- using semantic ui to display flags -->
<div class="field">
<label>Country</label>
<div class="ui fluid search selection dropdown">
<input type="hidden" name="country" value="">
<i class="dropdown icon"></i>
<div class="default text">Select Country</div>
<div class="menu">
<div class="item" data-value="64"><i class="nz flag"></i>New Zealand (+64)</div>
<div class="item" data-value="61"><i class="au flag"></i>Australia (+61)</div>
@amanix007
amanix007 / 0.md
Created September 18, 2018 11:55 — forked from max-mapper/0.md
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)