- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
Discover gists
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 | |
# Removes old revisions of snaps | |
# CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done |
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 | |
##################################################################################################### | |
# Script_Name : xrdp-installer-1.2.2.sh | |
# Description : Perform xRDP installation on Ubuntu 16.04,18.04,20.4,20.10 and perform | |
# additional post configuration to improve end user experience | |
# Date : December 2020 | |
# written by : Griffon | |
# WebSite :http://www.c-nergy.be - http://www.c-nergy.be/blog | |
# Version : 1.2.2 | |
# History : 1.2.2 - Changing Ubuntu repository from be.archive.ubuntu.com to archive.ubuntu.com |
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
def reMap(value, maxInput, minInput, maxOutput, minOutput): | |
value = maxInput if value > maxInput else value | |
value = minInput if value < minInput else value | |
inputSpan = maxInput - minInput | |
outputSpan = maxOutput - minOutput | |
scaledThrust = float(value - minInput) / float(inputSpan) |
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 | |
# Abort sign off on any error | |
set -e | |
# Start the benchmark timer | |
SECONDS=0 | |
# Repository introspection | |
OWNER=$(gh repo view --json owner --jq .owner.login) |
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
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables. | |
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding. | |
Network configuration | |
Here’s how it’s done: | |
Create a virtual interface that serves as the gateway for your VMs: |
- https://github.com/search?q=repo%3Abbigras%2Fnix-config+emacs&type=code&p=2
- https://github.com/bbigras/nix-config/blob/36d88fd8015db4647f4975f04230a0d291bad1f5/users/bbigras/core/tmux.nix
- https://github.com/bbigras/nix-config/blob/36d88fd8015db4647f4975f04230a0d291bad1f5/core/tmux.nix
Problem statement:
-
ctrl-h v **hook
https://emacs.stackexchange.com/a/68710 -
https://www.gnu.org/software/emacs/manual/html_node/elisp/Standard-Hooks.html
-
https://emacs.stackexchange.com/a/44585
M-x apropos-value eldoc-mode
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
// https://piccalil.li/blog/a-modern-css-reset | |
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default margin */ |
NewerOlder