- Gestures: https://gitlab.com/cunidev/gestures
- Gnome Tweak:
sudo apt install gnome-tweak-tool
- Matrix Workspace
- Install Gnome extensions
sudo apt-get install chrome-gnome-shell
- Open on Firefox: https://extensions.gnome.org/extension/1485/workspace-matrix/
- Install Gnome extensions
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
-- Generate query to sort cols (PostgreSQL) | |
-- https://gist.github.com/jotafeldmann/5eeca544c8e86afe546c794636d27ebf | |
drop function if exists get_sorted_cols_from_table; | |
CREATE OR REPLACE FUNCTION get_sorted_cols_from_table(_tbl regclass, OUT result text) | |
LANGUAGE plpgsql AS | |
$func$ | |
BEGIN | |
EXECUTE format(' | |
select |
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
# Docker solution for "removal of container X is already in progress" | |
# driver "zfs" failed to remove root filesystem: exit status 1: "/usr/sbin/zfs fs destroy -r rpool/" | |
# Based on https://github.com/moby/moby/issues/40132#issuecomment-570000174 | |
docker ps -a | grep Removal | cut -f1 -d' ' | xargs -rt docker rm 2>&1 >/dev/null | grep "dataset does not exist" | awk '{print $(NF-4)}' | sed "s/'//g" | cut -f1 -d':' | xargs -L1 sh -c 'for arg do sudo zfs destroy -R "$arg"; sudo zfs destroy -R "$arg"-init ; sudo zfs create "$arg" ; sudo zfs create "$arg"-init ; ...; done' _ ; docker ps -a | grep Removal | cut -f1 -d' ' | xargs -rt docker rm 2>&1 >/dev/null |
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
{ | |
// Put this file inside ${workspaceFolder}/.vscode/launch.json | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node-terminal", | |
"request": "launch", |
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
# Expected folder structure | |
# | |
# ./project | |
# src/ | |
# tests/ | |
# | |
# Put this file inside ./project/tests | |
# | |
# Then, for every test file inside ./project/tests: | |
# from src.package import function |
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
/* | |
Write a function that: | |
1. Takes 2 parameters - an array of #'s and a target # | |
2. Return all index pairs that equal the target # | |
3. Based on the values below the output should be | |
[[3, 5]],[1, 6]] (e.g. 2 & 7 and 5 & 4) | |
*/ | |
const nums = [1, 5, 12, 2, 3, 7, 4, 11, 15]; | |
const target = 9 |
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
"months": { | |
"type":"string", | |
"enum": [ | |
"JANUARY", | |
"FEBRUARY", | |
"MARCH", | |
"APRIL", | |
"MAY", | |
"JUNE", | |
"JULY", |
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
"weekDay": { | |
"type":"string", | |
"enum": [ | |
"SUNDAY", | |
"MONDAY", | |
"TUESDAY", | |
"WEDNESDAY", | |
"THURSDAY", | |
"FRIDAY", | |
"SATURDAY" |
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
#!/bin/bash | |
icon=$HOME/.local/share/applications/trash.desktop | |
trash_script_path=/home/j/workspace/libs/trash-icon-on-dock/trash.sh | |
while getopts "red" opt; do | |
case $opt in | |
r) | |
if [ "$(gio list trash://)" ]; then | |
echo -e '[Desktop Entry]\nType=Application\nName=Trash\nComment=Trash\nIcon=user-trash-full\nExec=nautilus trash://\nCategories=Utility;\nActions=trash;\n\n[Desktop Action trash]\nName=Empty Trash\nExec='$trash_script_path -e'\n' > $icon | |
fi |
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
# Generated by Gestures 0.2.2 --> https://gitlab.com/cunidev/gestures | |
# Manual editing might result in data loss! | |
# Invalid lines | |
# Unsupported lines | |
# Swipe threshold (0-100) |
NewerOlder