Skip to content

Instantly share code, notes, and snippets.

View RicardoRagel's full-sized avatar
:octocat:

Ricardo Ragel de la Torre RicardoRagel

:octocat:
View GitHub Profile
@RicardoRagel
RicardoRagel / set_ultrawide_config.sh
Created April 6, 2022 07:12
Create and set Linux Display Configuration for an ultra-wide monitor connected to laptop MSI GF627RE
#/bin/sh
## Ref: https://nnajiabraham.medium.com/ubuntu-linux-ultrawide-monitor-fix-387d9448a566
xrandr --newmode "ULTRAWIDE" 188.60 2560 2704 2976 3392 1080 1081 1084 1112 -HSync +Vsync
xrandr --addmode HDMI-1-2 "ULTRAWIDE"
xrandr --output HDMI-1-2 --mode "ULTRAWIDE"
@RicardoRagel
RicardoRagel / .bashrc.personal
Last active August 23, 2022 08:40
Personal bashrc script with some git helpers for projects with too many repositories and branches
#!/bin/bash
## [PROMPT] Add git branch, git status and system time to the prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
parse_git_status() {
st=$(git status 2>/dev/null | tail -n 1)
if [[ $st == "nothing to commit, working tree clean" ]]
then
@RicardoRagel
RicardoRagel / .conkyrc
Last active April 20, 2022 17:09
Desktop PC Conky Configuration
conky.config = {
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
@RicardoRagel
RicardoRagel / gtk.css
Last active June 23, 2022 08:51
Terminator GTK Style Sheet
.terminator-terminal-window separator {
background: #ffffff;
}
@RicardoRagel
RicardoRagel / c_cpp_properties.json
Last active July 4, 2022 13:32
VSCode - Microsoft C/C++ Extension -> IntelliSense Configuration -> Include path: Add ROS Paths
${workspaceFolder}/**
../devel/include
/opt/ros/noetic/include
@RicardoRagel
RicardoRagel / cloneAllOrgRepos.sh
Last active August 17, 2022 11:21
Simple script to clone all the repositories of a Github Organization
# Before execute this script, please make sure:
# - You have a Personal Access Token with, at least, read:org permissions
# - You have the module gh installed: $ sudo snap install gh
# - You have already logged into gh using: $ gh auth login
# Note: select HTTPS or change the proper script command
# - Modify <CHANGE_ME> to your organization name as it's shown in Github
MY_ORG_NAME=<CHANGE_ME>
gh repo list ${MY_ORG_NAME} --limit 1000 | while read -r repo _; do
#gh repo clone "$repo" "$repo"
@RicardoRagel
RicardoRagel / DHCP wireless configuration
Last active January 14, 2023 19:34
Debian wireless networking configs (at /etc/network/interfaces)
# DHCP network config
## Set your interface, e.g. wlan0
allow-hotplug <INTERFACE>
## Set your network SSID and password
iface <INTERFACE> inet dhcp
wpa-ssid <SSID>
wpa-psk <PASSWORD>