Skip to content

Instantly share code, notes, and snippets.

Avatar
👽

atejeda atejeda

👽
View GitHub Profile
View .Xresources
! Extensions
URxvt.perl-ext-common: resize-font
! do not scroll with output
URxvt*scrollTtyOutput: false
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true
! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true
@atejeda
atejeda / xmobarrc
Created Dec 4, 2020
.config/xmobar/xmobarrc
View xmobarrc
Config { font = "xft:Mononoki Nerd Font:pixelsize=13:antialias=true:hinting=true"
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
, bgColor = "#282A36"
, fgColor = "#B45BCF"
, position = Top
, lowerOnStart = True
, hideOnStart = False
, allDesktops = True
, persistent = True
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
View arch.linux.install.txt
# with the image
# install an openssh server to perform all these commands from a terminal
# networking is required
pacman -S openssh
systemctl start sshd
passwd
# <password>
# <password>
@atejeda
atejeda / compile-emacs.sh
Created Jun 28, 2020 — forked from strobe/compile-emacs.sh
Compile emacs 25.2 on CentOS 7.x
View compile-emacs.sh
yum install gcc make ncurses-devel giflib-devel libjpeg-devel libtiff-devel
wget wget http://ftp.gnu.org/gnu/emacs/emacs-25.2.tar.xz
tar xJf emacs-25.2.tar.xz
cd emacs-25.2
./configure --without-x --without-selinux
make && sudo make install
@atejeda
atejeda / mkexeloadable.c
Created Jun 10, 2020 — forked from xieyubo/mkexeloadable.c
Make the executable file can be loaded by dlopen() after glibc>=2.30.
View mkexeloadable.c
/*
There is a behavior change in glibc>=2.30. dlopen() will fail if the file is
position independent executable. This code will clean up the PIE flag in the
file to bypass the dlopen() check.
MIT License (c) 2020 Yubo Xie, xyb@xyb.name
*/
#include <stdio.h>
#include <string.h>
View .emacs (last)
;; packages ...
;; doom
;; doom-themes
;; multiple-cursors
;; autopair
;; M-x all-the-icons-install-fonts
;; melpa stuff
(require 'package)
(add-to-list 'package-archives
View .sensible.tmux
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# used to match output from `tmux list-keys`
KEY_BINDING_REGEX="bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?"
is_osx() {
local platform=$(uname)
[ "$platform" == "Darwin" ]