Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
/* | |
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes. | |
MoveFile(source, destination) will work moving file between folders | |
*/ |
cd /home/forge/pixelfed.social | |
git pull origin dev | |
composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader | |
echo "" | sudo -S service php7.2-fpm reload | |
php artisan config:cache | |
php artisan migrate --force | |
php artisan horizon:purge | |
php artisan horizon:terminate |
Array.prototype.smoosh = function () { | |
function smooshInternal(array) { | |
var smooshed = []; | |
for (var i = 0; i < array.length; i++) { | |
if (array[i] instanceof Array) { | |
smooshed.push.apply(smooshed, smooshInternal(array[i])); | |
} else { | |
smooshed.push(array[i]); | |
} | |
} |
In this talk we will be all discussing the origin of the furry fandom. How we will thogheter create a new furry-in-js framework. We will going over how they have changed the current fandom world, our hearts and the js world in 5 very awesome minutes! This talk is to prove a point that stars mean nothing in this case.
Create file /etc/systemd/system/docker-compose@.service
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
image: node:7.9.0 # change to match your node version | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- npm install | |
test: |
A Pen by yoichi kobayashi on CodePen.
// https://webreflection.medium.com/using-the-input-datetime-local-9503e7efdce | |
Date.prototype.toDatetimeLocal = | |
function toDatetimeLocal() { | |
var | |
date = this, | |
ten = function (i) { | |
return (i < 10 ? '0' : '') + i; | |
}, | |
YYYY = date.getFullYear(), | |
MM = ten(date.getMonth() + 1), |