Skip to content

Instantly share code, notes, and snippets.

View matog's full-sized avatar

Mato matog

View GitHub Profile
@matog
matog / elementaryos.md
Last active July 15, 2020 21:54 — forked from suberb/elementaryos.md
elementaryOS | Things To Do After Installing Elementary OS Loki [Best OS For Switching From Windows & Mac]

Varios


  • Arreglar la conexion por bluetooth a los parlantes y auriculares JBL
killal pulseaudio
sudo apt install blueman

Desde blueman no hubo inconvenientes

@matog
matog / README.md
Created June 27, 2020 12:26 — forked from lightrush/README.md
Normalize volume level with PulseAudio

Normalize volume level with PulseAudio

This should work conceptually on any Linux OS with PulseAudio but these particular instructions are for Ubuntu.

  1. Install LADSPA plugins containing the compressor and limiter we'll use:
sudo apt install swh-plugins
  1. Install PulseAudio Preferences paprefs:
@matog
matog / hacienda.md
Last active January 30, 2021 16:29
Correr aplicativos de la Secretaría de Hacienda (OBIIE y SIDIF) en Linux
sudo dpkg -i ~/Descargas/icaclientWeb_19.12.0.19_amd64.deb
sudo apt-get -f install
sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/
sudo c_rehash /opt/Citrix/ICAClient/keystore/cacerts/ /opt/Citrix/ICAClient/util/configmgr &
sudo rm -f /usr/lib/mozilla/plugins/npwrapper.npica.so /usr/lib/firefox/plugins/npwrapper.npica.so
sudo rm -f /usr/lib/mozilla/plugins/npica.so
sudo ln -s /opt/Citrix/ICAClient/npica.so /usr/lib/mozilla/plugins/npica.so
sudo ln -s /opt/Citrix/ICAClient/npica.so /usr/lib/firefox-addons/plugins/npica.so
sudo ls -al /opt/Citrix/ICAClient/wfica
@matog
matog / jpg2pdf.md
Last active August 28, 2021 16:31
Convert jpeg and merge multiple *.jpeg files to *.pdf

Unfortunately convert changes the image before so to have minimal loss of quality of the original jpg you need to use img2pdf wich makes the pdf with the original jpg so no loss, I use this commands:

  1. This to make a pdf file out of every jpg image without loss of either resolution or quality:

     ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
    
  2. Here you will have the *.pdfs as *.jpg.pdf, so will do a little renaming

     mmv "*.jpg.pdf" "#1.pdf"
    
@matog
matog / copy_pendrive.md
Created September 17, 2020 14:44
Fix Freezes When Transferring Files Ubuntu

I have found that my Ubuntu Desktop machine will keep pausing/freezing whenever I am transferring a large amount of data to my NFS. Others have experienced this issue when transferring files to a USB stick.

It appears that this has to do with having a very large cache of "dirty files" being held, and when that cache gets too full, your system will "pause" whilst it ensures all that data is actually written to disk. Thus to "fix" this issue, you can reduce your cache size so your system doesn't get overwhelmed to the point where it becomes unusable.

You can implement this immediately with the following

sudo echo $((16*1024*1024)) | sudo tee /proc/sys/vm/dirty_background_bytes
sudo echo $((16*1024*1024)) | sudo tee /proc/sys/vm/dirty_bytes

... however, you would need to run that every time your system reboots. To resolve this issue across reboots, you may wish to add this to your /etc/rc.local file.

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

git init

git add .
@matog
matog / sonido_molesto_ubuntu.md
Last active June 10, 2021 20:41
Sonido molesto cuando no hay nada reproduciendose en Ubuntu con Asus

Fuente

sudo nano /etc/modprobe.d/alsa-base.conf

Agregar:

options snd-hda-intel power_save=0 power_save_controller=N

@matog
matog / nautilus_tracker_reset.md
Last active September 11, 2021 14:07
Nautilus not working
@matog
matog / pypi.md
Last active April 28, 2022 21:09

Fuente: MakerByter

Crear un paquete de Python

Estructura del directorio CARPETA:

  • MANIFEST.in
  • CHANGELOG.txt
  • README.md
  • setup.py
  • CARPETAnombrepaquete:
@matog
matog / bluetooth.md
Last active July 8, 2022 19:51
Bluetooth Headphones

Primero probar:

sudo rmmod btusb
sudo modprobe btusb

Fuente: AskUbuntu

Si no funciona, continuar con:

sudo apt-get purge pulseaudio