This file contains 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
# sdkman recommands settings SDKMAN_DIR and sourcing sdkman-init.sh | |
# this can really slow down shell startup, so here's my attempt to lazy-load sdk() | |
# | |
# This snippet lives in my ~/.profile but generally could live in any zsh-related startup file. | |
# | |
# the logic of this custom sdk is kind of odd, but it basically checks if the current | |
# definition of sdk() is too short (less than 10 lines). If so, it tries to source | |
# the init script and then pass through all the arguments to the real sdk function. | |
export SDKMAN_DIR="$HOME/.sdkman" |
This file contains 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
#compdef _tmux-a tmux-a | |
# Complete attached-sessions and detached-sessions as separate tags. | |
# function __tmux-sessions-separately { | |
function _tmux-a { | |
local ret=1 | |
local -a sessions detached_sessions attached_sessions | |
sessions=( ${${(f)"$(command tmux 2> /dev/null list-sessions)"}/:[ $'\t']##/:} ) | |
detached_sessions=( ${sessions:#*"(attached)"} ) | |
attached_sessions=( ${(M)sessions:#*"(attached)"} ) |
This file contains 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/sh/hivexsh.c b/sh/hivexsh.c | |
index b925ddb..8676291 100644 | |
--- a/sh/hivexsh.c | |
+++ b/sh/hivexsh.c | |
@@ -27,6 +27,9 @@ | |
#include <unistd.h> | |
#include <assert.h> | |
#include <errno.h> | |
+ | |
+#define ENOKEY 126 |
This file contains 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 b/configure | |
index 65f1145..068f21f 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -24432,9 +24432,9 @@ if ${gl_cv_func_getcwd_abort_bug+:} false; then : | |
$as_echo_n "(cached) " >&6 | |
else | |
# Remove any remnants of a previous test. | |
- rm -rf confdir-14B--- | |
+ # rm -rf confdir-14B--- |
This file contains 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
#! /usr/bin/env python3 | |
import os | |
import sys | |
import time | |
from typing import Any, Generator | |
# local | |
import iface |
This file contains 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
#! /usr/bin/env python3 | |
import datetime | |
import json | |
from telethon.sync import TelegramClient | |
from telethon.tl.types import InputPeerChat, MessageMediaPoll | |
# expects a settings.py in the same directory with these vars defined | |
from settings import API_ID, API_HASH, CHAT_ID |
This file contains 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
# Please keep this gtkrc in sync with the other ones from Clearlooks based themes. | |
# gruvbox - based colors | |
gtk-color-scheme = "base_color:#282828\nfg_color:#ebdbb2\ntooltip_fg_color:#bdae93\nselected_bg_color:#458588\nselected_fg_color:#282828\ntext_color:#928374\nbg_color:#3c3836\ntooltip_bg_color:#fabd2f" | |
style "default" { | |
xthickness = 1 | |
ythickness = 1 |
This file contains 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
#!/usr/bin/env bash | |
# Author: Amar Paul | |
# Add custom emojis to a rocketchat server. | |
# Usage: | |
# Expects a yaml/ dir with .yaml files, formatted as such: | |
# - name: <name_of_emoji> | |
# src: <src_url> | |
# |
This file contains 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
#!/usr/bin/env python3 | |
''' | |
Import Google Reader starred items to Pocket | |
============================================ | |
This script will read the list of starred items generated by exporting your | |
Reader data using [Google Takeout][]. Generally you will use it like this: | |
python import-to-pocket.py starred.json |
This file contains 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
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# boot loaders (helpful when dual-booting): https://wiki.archlinux.org/index.php/Arch_boot_process#Boot_loader | |
# - GRUB and rEFInd are quite popular | |
# General recommendations (after install): https://wiki.archlinux.org/index.php/General_recommendations | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux |
NewerOlder