This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
/* chrome */ | |
input[type=number]::-webkit-inner-spin-button, | |
input[type=number]::-webkit-outer-spin-button { | |
-webkit-appearance: none; | |
margin: 0; | |
} | |
/* firefox */ | |
input[type=number] { | |
-moz-appearance:textfield; |
window.$ = function(selector) { | |
var selectorType = 'querySelectorAll'; | |
if (selector.indexOf('#') === 0) { //if id selector | |
selectorType = 'getElementById'; | |
selector = selector.substr(1, selector.length); | |
} | |
return document[selectorType](selector); | |
}; |
env/ | |
env3.6/ | |
.*\.pyc | |
.*\.swp | |
.*\.swo | |
.*\.swn | |
.idea/ | |
.DS_Store | |
db.sqlite3 | |
.hg/ |
function draggable(element) { | |
var isMouseDown = false; | |
// initial mouse X and Y for `mousedown` | |
var mouseX; | |
var mouseY; | |
// element X and Y before and after move | |
var elementX = element.style.left; | |
var elementY = element.style.top; |
#!/bin/bash | |
#-------------------------------------------- | |
#---- Developer: Debashis Roy Bhowmik ------- | |
#---- Email: debashis.buet08@gmail.com ------ | |
#----------- Website: debashis.me ----------- | |
#-- Github: https://github.com/wall-e-08/ --- | |
#-------------------------------------------- | |
set -e # Exit immediately if a command exits with a non-zero status. |
# sed -e '5ij\n\n\nfjfjfjf' -i file.txt ## insert text at 5th line in file.txt file | |
# wget -pkr www.website.com/ => to download website | |
# copy to clipboard by piping: xclip -sel clip | |
copyfromfile(){ | |
cat $1 | xclip -sel clip | |
} | |
alias apt='sudo apt' |
#!/bin/bash | |
#-------------------------------------------- | |
#---- Developer: Debashis Roy Bhowmik ------- | |
#---- Email: debashis.buet08@gmail.com ------ | |
#----------- Website: debashis.me ----------- | |
#-- Github: https://github.com/wall-e-08/ --- | |
#-------------------------------------------- | |
set -e # Exit immediately if a command exits with a non-zero status. |
const _slugify = str => { | |
str = str.toLowerCase(); | |
str = str.replace(/[^a-z0-9 -]/g, '') // remove invalid chars | |
.trim() // remove starting or ending whitespace before replacing whitespace | |
.replace(/\s+/g, '-') // collapse whitespace and replace by - | |
.replace(/-+/g, '-'); // collapse dashes | |
return str; | |
} |
const gulp = require('gulp'); | |
const plumber = require('gulp-plumber'); | |
const notify = require('gulp-notify'); | |
const sass = require('gulp-sass'); | |
const pug = require('gulp-pug'); | |
const rename = require('gulp-rename'); | |
const auto_prefixer = require('gulp-autoprefixer'); | |
const browser_sync = require('browser-sync').create(); | |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).