Skip to content

Instantly share code, notes, and snippets.

View eduardoveiga's full-sized avatar

Eduardo Kluwe Veiga eduardoveiga

View GitHub Profile
@eduardoveiga
eduardoveiga / explicit.sh
Created February 16, 2022 17:38
convert package list to explicit installed in archlinux
sudo pacman -D --asexplicit `cat pkg.txt | tr '\n' ' '`
@eduardoveiga
eduardoveiga / teste.md
Created June 30, 2021 13:04
casos de teste
  • owner tenta executar ação
  • não owner tenta executar ação
  • não membro do namespace tenta executar ação
  • owner tenta executar ação em um tenant inválido
  • não owner tenta executar açao em um tenant inválido
  • não membro do namespace tenta executar ação em um tenant inválido
  • owner tenta adicionar usuário válido
  • owner tenta adicionar usuário inválido(não existente)
  • não onwer tenta adicionar usuario válido
  • não owner tenta adicionar usuário inválido
@eduardoveiga
eduardoveiga / delete-branches.sh
Created June 11, 2021 20:48
delete all branches except master
git branch | grep -v "master" | xargs git branch -D
docker run -d --name=shellhub --restart=unless-stopped --privileged --net=host --pid=host -v /:/host -e SERVER_ADDRESS=http://localhost -e PRIVATE_KEY=/host/etc/shellhub.key -e TENANT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx shellhub-agent
#!/bin/sh
for file in `git ls-tree -r master --name-only | grep \\.go`
do
echo $file
output=`gofmt -w "$file"`
if test -n "$output"
then
echo >&2 "$output"
bitdefender falhou
malwarebytes passou
McAfee passou
avast passou
avira passou
avg passou
comodo - pediu permissao
norton passou
windows defender - passou
kaspersky - passou
scanimage --format=tiff | convert tiff:- scan.pdf
Calculating dependencies... done!
[ebuild N ] net-libs/libtirpc-1.0.2-r1:0/3::gentoo USE="ipv6 -kerberos -static-libs" ABI_X86="(64) -32 (-x32)" 507 KiB
[ebuild N ] net-libs/libnsl-1.1.0-r1:0/2::gentoo ABI_X86="(64) -32 (-x32)" 205 KiB
[ebuild U ] app-text/opensp-1.5.2-r6::gentoo [1.5.2-r3::gentoo] USE="nls -doc -static-libs {-test}" 1.486 KiB
[blocks B ] <sys-libs/glibc-2.26 ("<sys-libs/glibc-2.26" is blocking net-libs/libnsl-1.1.0-r1)
Total: 3 packages (1 upgrade, 2 new), Size of downloads: 2.197 KiB
Conflict: 1 block (1 unsatisfied)
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.02a07 (x86_64-pc-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.5.36
Using libscg version 'schily-0.9'.
@eduardoveiga
eduardoveiga / $ sudo USE='gegl introspection icu client introspection -webkit' emerge -av gimp;
Created December 4, 2017 16:38
$ sudo USE='gegl introspection icu client introspection -webkit' emerge -av gimp;
$ sudo USE='gegl introspection icu client introspection -webkit' emerge -av gimp
* IMPORTANT: 6 config files in '/etc/portage' need updating.
These are the packages that would be merged, in order:
Calculating dependencies
* IMPORTANT: 21 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.