This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +josfaber is my blockchain ID. https://onename.com/josfaber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
clear | |
# requirements | |
echo "Project folder name:" | |
read -e projectfolder | |
projectfolder=${projectfolder:-project} | |
# dependencies | |
npm init -y --prefix ./$projectfolder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias l="ls -l" | |
alias gf="git fetch" | |
alias gs="git status" | |
alias gfs="git fetch && git status" | |
alias gi="git init && gac 'Initial commit'" | |
alias gp="git push" # + remote & branch names | |
alias gl="git pull" # + remote & branch names | |
alias gpo="git push origin" # + branch name | |
alias glo="git pull origin" # + branch name | |
alias gpom="git push origin master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
php-httpd: | |
image: php:7.3-apache | |
ports: | |
- 80:80 | |
volumes: | |
- "./DocumentRoot:/var/www/html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- IN HEAD --> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','{{ GTM_ID }}');</script> | |
<!-- End Google Tag Manager --> | |
<!-- IN BODY --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FOR DEBUGGING PURPOSE | |
ErrorDocument 404 "Request: %{THE_REQUEST} Referrer: %{HTTP_REFERER} Host: %{HTTP_HOST} REQUEST_URI: %{REQUEST_URI}" | |
RewriteRule ^ - [L,R=404] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ducks='du -cks * | sort -rn | head' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* requestAnimationFrame polyfill | |
* Based on: https://gist.github.com/paulirish/1579671 | |
* Tweaked by: Bradley - https://gist.github.com/bradley | |
*/ | |
(function() { | |
var lastTime = 0, | |
vendors = ['ms', 'moz', 'webkit', 'o'], | |
x, | |
length, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* return randomized array | |
*/ | |
function randomized(arr) { | |
var array = arr.slice(0); | |
for (var i = array.length - 1; i > 0; i--) { | |
var j = Math.floor(Math.random() * (i + 1)); | |
var temp = array[i]; | |
array[i] = array[j]; | |
array[j] = temp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* return random int in range | |
*/ | |
this.randInt = function (min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
/** | |
* return random float in range |
OlderNewer