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...
| # define your target | |
| export TARGET = brannon.online | |
| # perform a whois lookup | |
| whois $TARGET | |
| # do a dns lookup | |
| nslookup $TARGET | |
| # here we find that 34.201.87.194 is the | |
| # true IP address of the $TARGET |
I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.
"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "arrowFunctions": false, // enable arrow functions | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "classes": false, // enable classes | |
| "defaultParams": false, // enable default function parameters | |
| "destructuring": false, // enable destructuring |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt-get -q -y update | |
| sudo apt-get -q -y install build-essential | |
| sudo apt-get -q -y install cmake | |
| sudo apt-get -q -y install pkg-config | |
| sudo apt-get -q -y install libpng12-0 libpng12-dev libpng++-dev libpng3 | |
| sudo apt-get -q -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2 | |
| sudo apt-get -q -y install zlib1g-dbg zlib1g zlib1g-dev | |
| sudo apt-get -q -y install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools | |
| sudo apt-get -q -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs |
| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js'", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <title>Geo_Watch</title> | |
| <meta charset=utf-8> | |
| <style> | |
| #mapa { | |
| width: 400px; | |
| height: 300px; |
| /** | |
| * Split a string into chunks of the given size | |
| * @param {String} string is the String to split | |
| * @param {Number} size is the size you of the cuts | |
| * @return {Array} an Array with the strings | |
| */ | |
| function splitString (string, size) { | |
| var re = new RegExp('.{1,' + size + '}', 'g'); | |
| return string.match(re); | |
| } |