Skip to content

Instantly share code, notes, and snippets.

View malandro-sv's full-sized avatar

Alejandro malandro-sv

View GitHub Profile
#! /usr/bin/env bash
set_var() {
# while testing and deciding whether
# sourcing or executing this script:
#[[ $0 != $BASH_SOURCE ]] && sourced=1 || sourced=0
#if [[ $sourced -eq 1 ]]; then
# ret=return
#else
# ret=exit
#! /usr/bin/env python3
import sys
import time
#from random import randint
from datetime import datetime
from google.cloud import logging
# Instantiates logging client
client = logging.Client()
# GistID:bc8a1e7243c0ad8b941955ec00dc618e
# ~/.bashrc - 6/28/2023
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
complete -cf sudo
alias scat='sudo cat'
alias suvim='sudo vim'
alias shead='sudo head'
opacity-rule = [
"90:class_g = 'URxvt'",
"00:name = 'Chrome'"
];
#
# opacity-rule = []
#################################
# Background-Blurring #
! GistID: 95d13264c442619d81d04d7288b73111
urxvt*termName: rxvt-256color
urxvt*depth: 32
urxvt*background: rgba:0000/0000/0000/c800
urxvt*font: xft:terminus:size=10
urxvt*boldFont: xft:terminus:style=Bold
urxvt*italicFont: xft:terminus:style=Italic
urxvt*boldItalicFont: xft:terminus:style=Bold Italic
URxvt.scrollBar: false
# GistID: 4afeadd819e240290f0a60f90260362c
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
#!/bin/sh
# Copyright (C) 2014 Julien Bonjean <[email protected]>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GistID: ecc856ad2ae6f92c914c1f859995e11a
set -g default-terminal "screen-256color"
set -g status-bg colour232
set -g status-fg colour9
# set -g mode-mouse on
# Chris Toomey's vim-tmux-navigator:
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
@malandro-sv
malandro-sv / .vimrc
Last active September 4, 2020 17:52
MMXX
" GistID:889e3636931857f6c7f3a3cf18ce867e
" June 2020.
set nocompatible
filetype off
syntax on
filetype plugin indent on
" April 17, 2019. omnifunc for js according to
@malandro-sv
malandro-sv / temperature
Created January 1, 2020 04:08
customized temp sensor i3block
#
#GistID:
#!/usr/bin/env perl
# Copyright 2014 Pierre Mavro <[email protected]>
# Copyright 2014 Vivien Didelot <[email protected]>
# Copyright 2014 Andreas Guldstrand <[email protected]>
# Copyright 2014 Benjamin Chretien <chretien at lirmm dot fr>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by