This file contains hidden or 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
| # Cache node modules - speeds up future builds | |
| cache: | |
| paths: | |
| - node_modules | |
| stages: | |
| - build | |
| - run | |
| variables: |
This file contains hidden or 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/sh | |
| docker rm -f $(docker ps -qa) | |
| docker volume rm $(docker volume ls -q) | |
| cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke /opt/rancher" | |
| for dir in $cleanupdirs; do | |
| echo "Removing $dir" | |
| rm -rf $dir | |
| done |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import subprocess | |
| db_prochot_loc = '0x1fc' | |
| def main(): | |
| p = subprocess.run(['rdmsr', db_prochot_loc], stdout=subprocess.PIPE, encoding='utf8') | |
| orig_str = p.stdout.rstrip() | |
| v = int('0x' + orig_str, 16) ^ 0b1 |
This file contains hidden or 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: '2' | |
| services: | |
| cloudflare-ddns: | |
| image: oznu/cloudflare-ddns:armhf # use 'latest' para linux ou 'armhf' or 'aarch64' se usar um Raspberry Pi | |
| restart: always | |
| environment: | |
| - [email protected] # coloque o e-mail utilizado no cadastro da cloudflare | |
| - API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # coloque sua chave de api da cloudflare | |
| - ZONE=homelab.srv.br # coloque o seu dominio | |
| - SUBDOMAIN=blog # coloque o registro A que voce criou na cloudflare |
This file contains hidden or 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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| jest: true, | |
| }, | |
| extends: [ | |
| 'react-app', | |
| 'airbnb', | |
| 'plugin:@typescript-eslint/recommended', |