Shortcut | Description |
---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
#!/usr/bin/env python3 | |
""" | |
This script aims to alert when the battery | |
reaches a critical level in the system. | |
""" | |
import os | |
CRITICAL_BATTERY_PERCENTAGE = 8 |
#!/usr/bin/env bash | |
pid=$(pgrep gammastep) | |
if [[ $1 = "toggle" ]]; then | |
if pgrep -x "gammastep" > /dev/null; then | |
kill -9 $(pgrep -x "gammastep"); | |
else | |
gammastep -O ${GAMMASTEP_NIGHT:-3500} & | |
fi |
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session |
//Code | |
package com.fernandocejas.android | |
import java.time.* | |
class Versionizer(private val localDateTime: LocalDateTime = LocalDateTime.now()) { | |
val versionCode = generateVersionCode() | |
private fun generateVersionCode(): Int { |
-
Info:
-
Command:
-
pacaur -S terminus-font
-
#ATTENTION: Check the Troubleshooting items below if you have problems, you can also visit my website where I wrote about it. | |
# LINK: https://fernandocejas.com/blog/engineering/2020-12-28-install-arch-linux-full-disk-encryption/#aur-helper | |
#!/bin/bash | |
#Make sure the system is up to date. | |
sudo pacman -Syu --noconfirm | |
These are a list of things I have been experiencing and their possible solutions
- Issue:
- gnome-control-center segmentation fault (core dumped)
- https://gitlab.gnome.org/GNOME/gnome-control-center/issues/411
This gist aims to facilitate the switching from bash
to zsh
as our defaut shell.
We will be using oh-my-zsh with the powerful theme: Powerlevel9k. You will find all the links below.
This process applies mainly for Arch Linux, but can be setup for any other distro (in theory :)).
I'm also using Gnome Terminal and pacaur as package manager.
(this is worth looking at http://www.stefan-seelmann.de/wiki/rasperrypi-homeserver, which is basically this:
apt-get purge --auto-remove scratch debian-reference-en dillo idle3 python3-tk idle python-pygame python-tk lightdm gnome-themes-standard gnome-icon-theme raspberrypi-artwork gvfs-backends gvfs-fuse desktop-base lxpolkit netsurf-gtk zenity xdg-utils mupdf gtk2-engines alsa-utils lxde lxtask menu-xdg gksu midori xserver-xorg xinit xserver-xorg-video-fbdev libraspberrypi-dev libraspberrypi-doc dbus-x11 libx11-6 libx11-data libx11-xcb1 x11-common x11-utils lxde-icon-theme gconf-service gconf2-common
)
Warning: this will probably break something. If you need sound, don't remove the "alsa" packages
sudo apt-get --yes purge xserver-common x11-xfs-utils x11-xserver-utils xinit libsmbclient blt gvfs gvfs-backends gvfs-daemons gvfs-fuse idle idle-python2.7 idle-python3.2 idle3 libaudio2 libice6 liblightdm-gobject-1-0 libobrender27 libpulse0 libqt4-svg libqt