with npx @docusaurus/init@latest init website classic
i18n: {
defaultLocale: 'en',
locales: ['en', 'it'],
localeConfigs: {
en: {
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
import socket | |
import json | |
server_address = '/tmp/example.sock' | |
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
sock.connect(server_address) |
Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.
If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3
HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.
Follow along...
git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm
.zshrc
folder#!/bin/sh | |
echo "START: Installing dependencies for Node, Docker and Docker Compose in DO" | |
cd /home | |
mkdir WORKSPACE | |
cd WORKSPACE | |
# Nodejs | |
# https://github.com/nodesource/distributions/blob/master/README.md | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - |
pg_dump --data-only --inserts -h <DB_URL> -U <DB_USER> -f <FILE_NAME_TO_CREATE.sql> <DB_NAME>
Notes:
--data-only
will dump only data to be inserted (not tables strcuture and relations)--inserts
will force to use INSERT
statements and not COPY
to avoid driver issues later on#!/bin/sh | |
npm install --global wallpaper-cli | |
wallpaper https://octodex.github.com/images/privateinvestocat.jpg --scale=fit | |
npm uninstall --global wallpaper-cli |
👉 Snyk Blog | Node.js release fixes a critical HTTP security vulnerability
Thanks a lot Snyk team for the support! ❤️
#!/usr/bin/env bash | |
nvm use v0.10 | |
#find . -name "node_modules" -type d -prune -exec rm -rf '{}' + | |
npm install | |
npm config set shrinkwrap false | |
npm rm --silent --save-dev connect-redis | |
npm install --silent --save-dev mocha@3.5.3 | |
npm install --silent --save-dev supertest@2.0.0 | |
npm prune |