This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT_REPO="https://gitlab.com/binaryplease/dotfiles.git" | |
CONF_DIR_NAME=".dotfiles" | |
function set_dotfiles() { | |
cd ~ | |
git clone --bare $GIT_REPO $HOME/$CONF_DIR_NAME | |
function config { | |
/usr/bin/git --git-dir=$HOME/$CONF_DIR_NAME/ --work-tree=$HOME $@ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ curl -Lks http://bit.do/dots-install | /bin/bash | |
Cloning into bare repository '/home/binaryplease/.dotfiles'... | |
remote: Counting objects: 110, done. | |
remote: Compressing objects: 100% (77/77), done. | |
remote: Total 110 (delta 20), reused 91 (delta 11) | |
Receiving objects: 100% (110/110), 89.02 KiB | 753.00 KiB/s, done. | |
Resolving deltas: 100% (20/20), done. | |
error: The following untracked working tree files would be overwritten by checkout: | |
.Xresources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT_REPO="https://gitlab.com/binaryplease/dotfiles.git" | |
git clone --bare $GIT_REPO $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
echo ".cfg" >> .gitignore | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/testdir | |
❯ fallocate -l 1G bigfile | |
~/testdir | |
❯ time tar cfJ bigfile.tar.xz bigfile ⏎ | |
tar cfJ bigfile.tar.xz bigfile 68.69s user 4.17s system 104% cpu 1:09.57 total | |
~/testdir | |
❯ rm bigfile.tar.xz | |
rm: remove regular file 'bigfile.tar.xz'? y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ lsusb ⏎ | |
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 001 Device 003: ID 8087:07da Intel Corp. | |
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 004 Device 008: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet | |
Bus 004 Device 007: ID 2109:0812 VIA Labs, Inc. VL812 Hub | |
Bus 004 Device 006: ID 2109:0812 VIA Labs, Inc. VL812 Hub | |
Bus 004 Device 002: ID 04f2:b331 Chicony Electronics Co., Ltd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ evolution | |
(evolution:1974): Gtk-WARNING **: Theme parsing error: gtk.css:41:66: Failed to import: The resource at '/org/gnome/HighContrastInverse/a11y.css' does not exist | |
(evolution:1974): e-data-server-WARNING **: build_categories_filename: Failed to rename '/home/binaryplease/.evolution/categories.xml' to '/home/binaryplease/.local/share/evolution/categories.xml': No such file or directory | |
(evolution-alarm-notify:1983): Gtk-WARNING **: Theme parsing error: gtk.css:41:66: Failed to import: The resource at '/org/gnome/HighContrastInverse/a11y.css' does not exist | |
(evolution:1974): e-data-server-WARNING **: build_categories_filename: Failed to rename '/home/binaryplease/.evolution/categories.xml' to '/home/binaryplease/.local/share/evolution/categories.xml': No such file or directory | |
importing pine addressbook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://bit.do/zshconfig | |
# https://ptpb.pw/MCeR | |
# | |
# Prevents grep options deprecation message | |
alias grep="/usr/bin/grep --color=auto $GREP_OPTIONS" | |
unset GREP_OPTIONS | |
HISTFILE=~/.histfile | |
HISTSIZE=10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure.ac b/configure.ac | |
index d4ee3dc..1d3a54d 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -10,7 +10,7 @@ GTK_REQ=3.4.0 | |
GTK_MAX=GTK_VERSION_3_4 | |
GNUPG_ACCEPTED="2.0.12 2.1.4" | |
-GPGME_REQUIRED=1.0.0 | |
+GPGME_REQUIRED=1.7.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2010 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"html/template" | |
"io/ioutil" | |
"net/http" |