Skip to content

Instantly share code, notes, and snippets.

View babetoduarte's full-sized avatar

Jorge A. Duarte G. babetoduarte

View GitHub Profile
@babetoduarte
babetoduarte / tmux_htop_local_install.sh
Created March 26, 2021 14:34 — forked from octavifs/tmux_htop_local_install.sh
Install tmux and htop statically without root
#!/bin/sh
# Script for installing tmux & htop on systems where you don't have root access.
# Inspired by https://gist.github.com/ryin/3106801
# tmux will be installed in $HOME/local/bin.
# htop will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
@babetoduarte
babetoduarte / graph_coloring.py
Created March 9, 2021 20:02 — forked from sramana/graph_coloring.py
Python Program for Graph Coloring Problem
colors = ['Red', 'Blue', 'Green', 'Yellow', 'Black']
states = ['Andhra', 'Karnataka', 'TamilNadu', 'Kerala']
neighbors = {}
neighbors['Andhra'] = ['Karnataka', 'TamilNadu']
neighbors['Karnataka'] = ['Andhra', 'TamilNadu', 'Kerala']
neighbors['TamilNadu'] = ['Andhra', 'Karnataka', 'Kerala']
neighbors['Kerala'] = ['Karnataka', 'TamilNadu']

Setting up Conky on Ubuntu 16.04LTS for the Clevo P751DM2-G

System Information:

We extract this with inxi:

installation:

sudo apt-get install inxi
# No image cache, so pictures get updated when the file is updated.
imlib_cache_size 0
$stippled_hr
${color lightgrey}HAM BAND CONDITIONS:
${alignc}${font type=bond size=13} UTC: ${tztime UTC %m-%d-%Y %H:%M:%S}${font}
${execi 300 wget http://www.hamqsl.com/solar101vhf.php -O /tmp/solar_pre.gif && mv /tmp/solar_pre.gif /tmp/solar.gif}
${image /tmp/solar.gif -p 0,845 }
${execi 305 wget https://umbra.nascom.nasa.gov/images/late
@babetoduarte
babetoduarte / spacemacs-cpp.md
Created September 9, 2017 23:21 — forked from zarzen/spacemacs-cpp.md
C++ development environment setup in Spacemacs
@babetoduarte
babetoduarte / irc.md
Created March 17, 2017 14:50 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@babetoduarte
babetoduarte / spacemacs-cheatsheet.txt
Created September 26, 2016 21:22 — forked from davoclavo/spacemacs-cheatsheet.md
Spacemacs cheatsheet
`emacs --daemon` to run in the background.
`emacsclient.emacs24 <filename/dirname>` to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
* Undo - `C-/`
* Redo - `C-?`
* Change case: 1. Camel Case : `M-c`
2. Upper Case : `M-u`
3. Lower Case : `M-l`