Skip to content

Instantly share code, notes, and snippets.

View woodyalan's full-sized avatar

Alan Ferreira dos Santos woodyalan

  • TOTVS
  • Campo Mourão - PR - Brasil
View GitHub Profile
@akshayhiremath
akshayhiremath / fix-wsl2-dns-resolution
Last active June 13, 2023 14:13 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl -l (Get the <WSL distribution name>. Debian-XX or Ubuntu-XX (Default) etc.)
5. wsl --terminate <WSL distribution name> (Terminate WSL in Windows cmd, <WSL distribution name> from the step 4).
6. cd ~/../../etc (go to etc folder in WSL).
7. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
8. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
@woodyalan
woodyalan / matriculas_pagas.sql
Created May 19, 2020 20:54
Primeiras Parcelas de Mensalidade Pagas
SELECT
MP.RA,
MP.IDHABILITACAOFILIAL,
MP.IDPERLET,
MP.CODSTATUS,
FL.DATABAIXA
FROM
vw_matricula vm
JOIN mat_curso_processo_pagamento mcpp (NOLOCK)
ON mcpp.id = vm.planoPagamentoId
@jackabox
jackabox / ProgressBar.vue
Last active March 20, 2023 18:50
Vue/Nuxt window on scroll event
<template>
<div class="progress-bar">
<div class="filled-bar" :style="{ transform: `translate3d(-${100-value}%, 0, 0)` }"></div>
</div>
</template>
<script>
export default {
props: ['value']
}