Skip to content

Instantly share code, notes, and snippets.

View deomorxsy's full-sized avatar
🐚
λx.x

deomorxsy

🐚
λx.x
  • PE, Brasil
  • 23:01 (UTC -03:00)
View GitHub Profile
@deomorxsy
deomorxsy / after-manjaro.md
Last active April 15, 2020 13:57
useful things to do after installing manjaro

Things to do after install manjaro

  • Removing db.lck
sudo rm -f /var/lib/pacman/db.lck
  • Optimize mirrors
sudo pacman-mirrors -g
@deomorxsy
deomorxsy / 03-2020_pip-files.md
Last active March 12, 2020 21:34
my pip files' output.

pip files

[asari@asari-pc]$ python -m pip list 
Package                      Version 
---------------------------- ------- 
aiohttp                      3.6.2 
anytree                      2.8.0 
appdirs                      1.4.3 
argcomplete                  1.10.0 
#!/bin/bash
cd ch.946-GIMP/
l1=(*.jpg)
for l1 in *.jpg; do convert $l1 -resize 1080x1920! ../final/$l1 && echo "resizing... $l1"; done
@deomorxsy
deomorxsy / pacman_fail-to-sync-db.md
Last active January 2, 2020 17:05
Arch Manjaro, pacman error: unregistering database && failed to synchronize all databases

2020-jan-02

The error itself:

[user@user ~]$ sudo pacman -Syyuu
:: Sincronizando a base de dados de pacotes...
erro: falha ao atualizar core (não foi possível travar a base de dado
erro: falha ao atualizar extra (não foi possível travar a base de dad
erro: falha ao atualizar community (não foi possível travar a base de
erro: falha ao atualizar multilib (não foi possível travar a base de
@deomorxsy
deomorxsy / ffmpeg-splitter.sh
Created January 13, 2020 00:58
splitting 2videos on the CLI with ffmpeg.
ffmpeg -i video1.mp4 -i video2.mp4 \
-filter_complex \
"[0:v]pad=iw*2:ih[int]; \
[int][1:v]overlay=W/2:0[vid]" \
-map "[vid]" \
-c:v libx264 -crf 23 \
video3.mp4
@deomorxsy
deomorxsy / pacman-installed.md
Last active March 14, 2020 13:01
List all explicitly installed packages with pacman in my build.

2020-03-14

[asari@asari-pc ~]$ pacman -Qe 
accountsservice 0.6.55-1 
acpi 1.7-2 
acpid 2.0.32-1 
alsa-firmware 1.2.1-2 
alsa-utils 1.2.2-1 
android-tools 29.0.5-2 
@deomorxsy
deomorxsy / dt-solving.md
Created June 11, 2020 18:46
Error solving

env output:

$env
SHELL=/data/data/com.termux/files/usr/bin/bash
PREFIX=/data/data/com.termux/files/usr
PWD=/data/data/com.termux/files/home
EXTERNAL_STORAGE=/storage/sdcard0
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
HOME=/data/data/com.termux/files/home
@deomorxsy
deomorxsy / EFI-partition.md
Created September 3, 2020 02:39
EFI partition basic configuration with Parted and mkfs.fat

Creating partition

mkpart "EFI system partition" fat32 33MiB 512MiB

Setting partition flag for boot

set 1 esp on
@deomorxsy
deomorxsy / penDRIVE-the-iso.md
Last active September 9, 2020 00:48
Setting up a bootable USB drive. Works for Linux's ISOs; tested with Arch and Manjaro.

Is it previously booted?

wipefs --all /dev/sd[letter]

Is it currently for file storage? OK.*

mkfs.vfat -n 'PENDRIVE NAME' -I /dev/sd[letter]
@deomorxsy
deomorxsy / git-editor.md
Created September 9, 2020 00:46
Changing git's code/text editor (to vim).

changing code editor in git:

  • Set core.editor in your Git config: git config --global core.editor "vim"
  • Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim