Skip to content

Instantly share code, notes, and snippets.

View Fadyio's full-sized avatar
:octocat:
🚀 Coding Awesome Stuff

Fady Fadyio

:octocat:
🚀 Coding Awesome Stuff
View GitHub Profile
@Fadyio
Fadyio / ulauncher.md
Created June 30, 2022 23:55
remove black frame from ulauncher

Extended white theme:

.app {
   box-shadow: 0 0 5px @window_shadow;
   background-color: @window_bg;
   border: 1px solid @window_border_color;
   border-radius: 4px;
   margin: -20px; /*override black area when window effect is disabled*/
}
@Fadyio
Fadyio / custom-capslock.json
Last active June 27, 2022 14:58
Map caps lock to esc (if tapped) or control (if held down or combined with another key). Use with Karabiner Elements on MacOS
{
"title": "Change caps_lock to Esc and Control",
"rules": [
{
"description": "Post Esc if Caps is tapped, Control if held.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
@patsbin
patsbin / gist:868c48c5e8b3de1ccad7dd19257f7a17
Created March 3, 2022 15:10
Keychain Error: Problem adding; giving up
Getting an error after migrating to a new system when adding private keys to ssh-agent
/usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa.key
* Error: Problem adding; giving up
Manually adding the key shows a permission problem
ssh-add ~/.ssh/id_rsa.key
chmod 700 /home/pwi/.ssh/*.key
In .bashrc
@potter0815
potter0815 / add-hypothesis-webclient-every-site.user.js
Last active March 20, 2024 09:37
Hypothes.is everywhere - Tampermonkey / greasemonkey script to enable Hypothes.is web client on all pages
// ==UserScript==
// @name Hypothes.is everywhere
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Enable Hypothesis scriptlet on all pages
// @author https://github.com/potter0815
// @match http://*/*
// @include http://*
// @include https://*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@justinmklam
justinmklam / karabiner-custom-capslock.json
Last active April 15, 2024 21:31
Map caps lock to esc (if tapped) or control (if held down or combined with another key). Use with Karabiner Elements on MacOS
{
"title": "Change caps_lock to Esc and Control",
"rules": [
{
"description": "Post Esc if Caps is tapped, Control if held.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
@yaythomas
yaythomas / README.md
Last active February 10, 2024 20:45
convert flat hugo content pages to leaf bundles

convert hugo content files to page leaf bundles

This pipeline converts Hugo content pages to page leaf bundles.

From:

`-- content
    |-- about.md
    `-- post
 |-- content-1.md
@vtronko
vtronko / pacman-yay-fzf.sh
Created April 8, 2020 05:25
FZF completion for pacman and yay
fay() {
packages=$(awk {'print $1'} <<< $(yay -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi))
[ "$packages" ] && yay -S $(echo "$packages" | tr "\n" " ")
}
fzfman() {
packages="$(awk {'print $1'} <<< $(pacman -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi --select-1))"
[ "$packages" ] && pacman -S $(echo "$packages" | tr "\n" " ")
}
@joshuarli
joshuarli / macos-tmux-256color.md
Created February 18, 2020 18:20 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

macOS has ncurses version 5.7 which doesn't ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color you can use screen-256color, place this command into your ~/.tmux.conf.

set-option -g default-terminal "screen-256color"
@lbrame
lbrame / podman_arch_rootless.md
Created February 11, 2020 17:47
Running rootless unprivileged Podman containers on Arch Linux

Setting up podman rootless containers on Arch Linux

Podman is a container engine that is similar to and fully compatible with Docker that has the peculiarity of not requiring a daemon to run and to allow for rootless containers, which are often deemed safer than privileged containers running as root. Podman is a drop-in replacement for Docker that even supports the same syntax and it has good support from Red Hat.

However, running podman rootless containers on Arch Linux may not be obvious, so I'm writing the instructions I have used to achieve that here.

Podman works using control groups and users from which said containers need to be launched need to be assigned an appropriate range of subordinate user and group IDs. On Arch Linux, these files are not present and they need to be created.

From a root shell:

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment