Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Wellington Torrejais da Silva wellington1993

🏠
Working from home
View GitHub Profile
View gist:ffdea2b106f666705f9fe0a46e5746be
sudo apt list --upgradeable -a; sudo apt autoremove; sudo apt update; sudo apt dist-upgrade --fix-missing; sudo apt full-upgrade --fix-missing; sudo apt upgrade --fix-missing; sudo snap refresh ; sudo flatpak update ; sudo apt autoremove;
View gist:b34e16d6fbf7a68fd6976c13caf205c1
wellington@Wellington:~
$ adb shell
j6primelte:/ $ pm list
Error: didn't specify type of data to list
255|j6primelte:/ $ pm list packages
package:com.samsung.android.provider.filterprovider
package:com.monotype.android.font.rosemary
package:com.sec.android.app.DataCreate
package:com.android.cts.priv.ctsshim
package:com.gd.mobicore.pa
@wellington1993
wellington1993 / Restart-Pipewire-Sound-problems.sh
Created Nov 20, 2021
Restart Pipewire Suond/Audio problems
View Restart-Pipewire-Sound-problems.sh
systemctl --user --now restart pipewire-pulse.service pipewire.service pipewire-pulse.socket pipewire.socket
@wellington1993
wellington1993 / Error.txt
Last active Nov 18, 2021
Problem Update projectm data 3.1.12-1 on Debian/Kali/Mx Linux
View Error.txt
A descompactar projectm-data (3.1.12-1) sobre (2.1.0+dfsg-4) ...
dpkg: erro ao processar o arquivo /var/cache/apt/archives/projectm-data_3.1.12-1_all.deb (--unpack):
a tentar sobre-escrever '/usr/share/projectM/config.inp', que também está no pacote libprojectm2v5 2.1.0+dfsg-4+b4
dpkg-deb: erro: o subprocesso colar foi morto pelo sinal (Pipe quebrado)
Erros foram encontrados durante o processamento de:
/var/cache/apt/archives/projectm-data_3.1.12-1_all.deb
View gist:f48b1f11f15890daf4b0480e903f17d6
[code]
System: Host: <filter> Kernel: 5.10.0-5mx-amd64 x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-5mx-amd64
root=UUID=<filter> ro splash fsck.mode=force
fsck.repair=yes init=/lib/systemd/systemd
Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0
Distro: MX-19.4_ahs_x64 patito feo March 31 2021 base: Kali GNU/Linux 2021.3
Machine: Type: Laptop System: HP product: HP 250 G8 Notebook PC v: Type1ProductConfigId
serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: HP model: 85F3 v: 40.33 serial: <filter> UEFI: Insyde v: F.43 date: 03/31/2021
@wellington1993
wellington1993 / rails-connection-check-restart-res-healthcheck.sh
Created Nov 9, 2021
Crontab Restart Rails if connection test fail - restart puma, apache, postfix
View rails-connection-check-restart-res-healthcheck.sh
#!/bin/bash
curl -sSfL http://lablaudo.com.br/acesso_paciente |egrep "Resultados Online|Senha|Entrar|submit|login" &>/dev/null;
if [ $? != 0 ];then
# Force Kill Apache
killall -9 "/usr/sbin/httpd-prefork" &>/dev/null;
killall -9 "/usr/sbin/httpd-prefork" &>/dev/null;
for x in $(ps auxf |egrep "Ruby|Passenger|passenger|lablaudo|puma|apache2|httpd-prefork" |cut -d' ' -f2 |sort -u | tail -n +2); do kill -9 $x; done
for x in $(ps auxf |egrep "Ruby|Passenger|passenger|lablaudo|puma|apache2|httpd-prefork" |cut -d' ' -f2 |sort -u | tail -n +2); do kill -9 $x; done
View mx-last-update.txt
atualizar o sistema
Lendo listas de pacotes...
Construindo árvore de dependências...
Lendo informação de estado...
Calculando atualização...
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
avce00 (2.0.0-7)
bpython3 (0.17.1-1)
bzr-doc (2.7.0+bzr6622-15)
caja-extensions-common (1.20.2-1)
@wellington1993
wellington1993 / mysql_backup.sh
Created Jul 29, 2021 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
View mysql_backup.sh
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
@wellington1993
wellington1993 / dpkg-list.txt
Last active Jul 22, 2021
Installed software to migrate, form PopOS to MX Linux
View dpkg-list.txt
This file has been truncated, but you can view the full file.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versão Arquitectura Descrição
+++-=============================================-===========================================================-============-===================================================================================================================================================================================================================================================================================
ii a2jmidid 9-2 amd64 Daemon for exposing legacy ALSA MIDI in JACK MIDI systems