Skip to content

Instantly share code, notes, and snippets.

View andrevandal's full-sized avatar
🇧🇷
BR Hu3

André Vandal andrevandal

🇧🇷
BR Hu3
View GitHub Profile
@andrevandal
andrevandal / History|-1004b603|entries.json
Last active November 8, 2022 23:11
Visual Studio Code Sync Settings Gist
{"version":1,"resource":"file:///home/andre.vandal/.local/share/pop-launcher/scripts/edit-scripts.sh","entries":[{"id":"slcg.sh","timestamp":1650908561974}]}
@andrevandal
andrevandal / install.md
Last active July 21, 2018 21:34
How to Install Ubuntu 17.10 on Hyper-V in Windows 10
hostnamectl set-icon-name moodle-facimod
hostnamectl set-hostname moodle.facimod.com.br --static
hostnamectl set-hostname "Moodle Facimod" --pretty
echo -e "179.184.31.234 moodle.facimod.com.br moodle\n127.0.0.1 moodle.facimod.com.br moodle" >> /etc/hosts
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
https://medium.com/@Andreas_cmj/how-to-setup-a-nice-looking-terminal-with-wsl-in-windows-10-creators-update-2b468ed7c326
https://github.com/goreliu/wsl-terminal
https://www.howtogeek.com/258518/how-to-use-zsh-or-another-shell-in-windows-10/
https://www.smashingmagazine.com/2015/07/become-command-line-power-user-oh-my-zsh-z/#use-zsh-and-oh-my-zsh
https://ppolyzos.com/2016/08/03/install-and-change-default-language-on-bash-on-ubuntu-on-windows/
@andrevandal
andrevandal / install.sh
Created September 24, 2019 18:04
Ubuntu 19.04 - After installing
#! /bin/bash
sudo snap remove gnome-calculator gnome-characters gnome-logs gnome-system-monitor -y
sudo apt install gnome-calculator gnome-characters gnome-logs gnome-system-monitor -y
sudo add-apt-repository ppa:apt-fast/stable -y
sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install apt-fast -y
echo debconf apt-fast/maxdownloads string 5 | debconf-set-selections
echo debconf apt-fast/dlflag boolean true | debconf-set-selections
window.__svg_sprite = "<!--\nDiscourse SVG subset of Font Awesome Free by @fontawesome - https://fontawesome.com\nLicense - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n-->\n<svg xmlns='http://www.w3.org/2000/svg' style='display: none;'>\n<symbol id=\"discourse-compress\" viewBox=\"0 0 1792 1792\">\n <path d=\"M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z\"/>\n</symbol><symbol id=\"discourse-expand\" viewBox=\"0 0 1792 1792\">\n <path d=\"M883 1056q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23zm781-864v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-1
services:
mysql:
container_name: mysql
image: yobasystems/alpine-mariadb
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- "./data/db:/var/lib/mysql:delegated"
@andrevandal
andrevandal / blip.js
Last active September 9, 2020 19:11
blip script dynamic menu
"use strict";
function run(source) {
var isWhatsApp = source === "WhatsApp";
var csTypes = ["Certificado Digital", "DFe", "Fintech", "Mobile"];
var menuTitle = "Qual tipo de atendimento você deseja?";
var template = function template(e, i) {
return isWhatsApp ? "*" + ++i + "*: " + e : "{\"text\": " + e + ", \"previewText\": " + e + ", \"value\": null, \"index\": " + i + ", \"type\": null }";
};
<template>
<header
:class="[
'header',
{
'header--visible': showing,
'header--hidden': !showing,
},
]"
>
@andrevandal
andrevandal / getSprintIssues.js
Created December 14, 2021 12:51
This code will collect all issues from a sprint based on its `aria-controls-name` attr.
function getSprintIssues (ariaControlsName) {
if(!ariaControlsName) return
const [header, _, content] = [
...document.querySelector(`[aria-controls="${ariaControlsName}"]`).children
]
const sprintName = header.querySelector('[role="button"] > div:nth-child(2)').textContent
console.log(sprintName)
const items = [...content.querySelector('[role="rowgroup"]').children]