Skip to content

Instantly share code, notes, and snippets.

View tarcisiomiranda's full-sized avatar

Tarcisio Miranda tarcisiomiranda

View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active May 16, 2026 18:51
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@idleberg
idleberg / fish_shell.md
Last active January 24, 2026 21:18
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@eloo
eloo / node_exporter.default
Last active May 13, 2025 15:36
Init.d script for prometheus node exporter
# Set the command-line arguments to pass to the server.
ARGS='-web.listen-address=:9100 -collector.diskstats.ignored-devices="^(ram|loop|fd)\\d+$"'
# Prometheus-node-exporter supports the following options:
# -collector.diskstats.ignored-devices="^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$": Regexp of devices to ignore for diskstats.
# -collector.filesystem.ignored-mount-points="^/(sys|proc|dev)($|/)": Regexp of mount points to ignore for filesystem collector.
# -collector.ipvs.procfs="/proc": procfs mountpoint.
# -collector.megacli.command="megacli": Command to run megacli.
# -collector.ntp.server="": NTP server to use for ntp collector.
# -collector.textfile.directory="": Directory to read text files with metrics from.
@gr1ev0us
gr1ev0us / find.sh
Last active March 30, 2026 07:21
Cheatsheet for find linux
# List of cheatsheet for linux find.
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml
# basic 'find file' commands
# --------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard
@yevrah
yevrah / Upgrade vim
Last active January 16, 2026 06:46
Update to Vim8 on Centos 7
################################################################################
# Method 1: Install using rpm packages (credit to DarkMukke)
#
rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
rpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7
# WARNING: removing vim-minimal uninstalls `sudo` if you skip the second step
# make sure to at least run `yum install sudo`
yum -y remove vim-minimal vim-common vim-enhanced
@egorsmkv
egorsmkv / build-git.md
Last active March 13, 2026 21:14
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
@zoilomora
zoilomora / README.md
Last active December 19, 2025 11:48
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

MTA:SA on macOS instructions

This does not work on macOS Catalina.

macOS Catalina removes support for 32bit software. A 64bit version of Wine does exist, but it's not easy to make 32bit software run inside 64bit Wine — at least not on macOS.

Other options include:

@deenski
deenski / lis.sh
Created June 22, 2019 00:43
Install Hyper-V Linux Integration Services for ubuntu 18.04 based distros.
echo "hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc" | sudo tail -a /etc/initramfs-tools/modules
sudo apt install linux-virtual linux-cloud-tools-virtual linux-tools-virtual
sudo update-initramfs -u
sudo reboot
@judero01col
judero01col / Service KMS.md
Last active May 15, 2026 19:21
Volume License Activation Key Service - KMS

Find Available Target Editions

DISM.exe /Online /Get-TargetEditions

Convert Server Standard 2019 Evaluation to Server Standard 2019

DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula

How To Activate

slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato