Skip to content

Instantly share code, notes, and snippets.

@atejeda
atejeda / .Xresources
Created December 4, 2020 16:19
.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 December 4, 2020 16:18
.config/xmobar/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: "."
# 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 June 28, 2020 16:35 — forked from strobe/compile-emacs.sh
Compile emacs 25.2 on CentOS 7.x
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 June 10, 2020 22:22 — forked from x-projs/mkexeloadable.c
Make the executable file can be loaded by dlopen() after glibc>=2.30.
/*
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, [email protected]
*/
#include <stdio.h>
#include <string.h>
;; packages ...
;; doom
;; doom-themes
;; multiple-cursors
;; autopair
;; M-x all-the-icons-install-fonts
;; melpa stuff
(require 'package)
(add-to-list 'package-archives
#!/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" ]