Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
deomorxsy / git.md
Created August 31, 2018 14:47 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@deomorxsy
deomorxsy / test-markdown.md
Last active September 11, 2019 03:03
a simple markdown syntax test

lorem ipsum fodase exori mort dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi non arcu risus quis. Nulla facilisi cras fermentum odio. Consequat id porta nibh venenatis cras. Id faucibus nisl tincidunt eget nullam. Eu facilisis sed odio morbi quis commodo odio aenean. Quis lectus nulla at volutpat diam ut. Fermentum odio eu feugiat pretium nibh ipsum. Lectus urna duis convallis convallis tellus id interdum velit. In ornare quam viverra orci sagittis eu volutpat odio facilisis.

Pulvinar neque laoreet suspendisse interdum

@deomorxsy
deomorxsy / yaourt-install_arch.md
Last active August 17, 2019 22:45
Installing yaourt in arch-based linux distros.

Yaourt install in arch-based linux distros

$ sudo pacman -S --needed base-devel git wget yajl
$ cd /tmp
$ git clone https://aur.archlinux.org/package-query.git
$ cd package-query/
$ makepkg -si && cd /tmp/
$ git clone https://aur.archlinux.org/yaourt.git
$ cd yaourt/
@deomorxsy
deomorxsy / GSmartControl Diagnostic
Created April 27, 2019 01:05
the last diagnostic of a HD with possible Bad Blocks.
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.19.28-1-MANJARO] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Samsung SpinPoint M8 (AF)
Device Model: ST500LM012 HN-M500MBB
Serial Number: S2ZAJ5ED500091
LU WWN Device Id: 5 0004cf 4011ae564
Firmware Version: 2AR20002
User Capacity: 500,107,862,016 bytes [500 GB]
@deomorxsy
deomorxsy / penFormat-CLI.md
Last active August 17, 2019 22:41
Pendrive/USB-Stick formatting in CLI

Pendrive/USB-Stick formatting in CLI

  1. detecting the pendrive:
    sudo fdisk -l
    
  2. unmounting pendrive
    sudo umount /dev/sdf1
    

Reading time in Liquid (for Jekyll)

HTML and Liquid syntax INSIDE the _includes folder

source: https://carlosbecker.com/posts/jekyll-reading-time-without-plugins/

We can estimate the reading time with the measure called Words per Minute (WPM). According to Wikipedia, an average person can read 180 words per minute in a computer monitor. So, we can include this in our blog post layout with one of these hibrid snippets between HTML (to style with CSS later) and Liquid:

<span class="reading-time" title="Estimated read time">
@deomorxsy
deomorxsy / convert-script.sh
Created May 28, 2019 21:31
Shell Script with magik's convert comand
#!/bin/bash
cd directory/
l1=(*.jpg)
for l1 in *.jpg; do convert $l1 -resize 1080x1920! ../final/$l1; done
@deomorxsy
deomorxsy / bashfile-op.md
Last active June 16, 2019 23:59
opening a file from CLI with bash syntax (WIP)

Opening files with bash results

gimp $(ls | grep '027')
  • here we use the ls command, with the grep filter '027' to search for our image. We associate this result with a variable that is represented by "$". Then we call it with gimp, so we can open faster.

  • in fact, this can be used with any program you want. You just have to be sure that the program will open the extension from the file. To do this, just replace "gimp" with the right command.

Jekyll Serve Traceback Error

Could not find 'public_suffix' (>= 2.0.2, < 4.0) - did find: [public_suffix-4.0.0]

[asari@asari-pc xxxxxxxxx.github.io]$ jekyll serve 
Traceback (most recent call last): 
        12: from /usr/bin/jekyll:23:in `<main>' 
        11: from /usr/lib/ruby/2.6.0/rubygems.rb:304:in `activate_bin_path' 
        10: from /usr/lib/ruby/2.6.0/rubygems.rb:304:in `synchronize' 
         9: from /usr/lib/ruby/2.6.0/rubygems.rb:305:in `block in activate_bin_path' 
@deomorxsy
deomorxsy / Directx-Unknown-Error.txt
Created August 31, 2019 01:35
League of Legends' log running under wine on OS Manjaro Linux x86_64. Hardware specs can be found on the log.
Running /opt/wine-lol/bin/wine /home/asari/JoooJ/LoL/drive_c/Riot Games/League of Legends/LeagueClient.exe
LeagueClient.exe(00000009): ALWAYS| Application Version:9.17.287.2485 - CL:2872485 - Build Date:Aug 28 2019 - Build Time:16:49:49
LeagueClient.exe(00000009): ALWAYS| Direct Launch not configured for league_of_legends.live in environment ''
LeagueClient.exe(0000002E): ALWAYS| Tracing worker thread running.
LeagueClient.exe(00000009): ALWAYS| Running LeagueClient version 9.17.287.2485
LeagueClient.exe(0000002E): ALWAYS| Keeping up to 10 tracing logs.
LeagueClient.exe(0000002E): ALWAYS| Tracing CompactJsonWriter at C:/Riot Games/League of Legends/Logs/LeagueClient Logs/2019-08-30T22-27-51_8_LeagueClient-tracing.json
LeagueClient.exe(00000009): ALWAYS| Phase Begin - Init
LeagueClient.exe(00000009): ALWAYS| Plugin Manager| Loaded plugin manifest file plugin-manifest.json.
LeagueClient.exe(00000009): ALWAYS| Begin Launch Ux Process