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
--- | |
"$schema": https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json | |
version: 2 | |
## Design | |
## [username] [host if not local] [repo] path >>>> [ project info ] [tool info] | |
## [status] > [ battery ] [ time?, let me think about it ] | |
## General idea | |
## [who and where am I] >>> [ what information do you have about the stuff where I am] | |
## [ anything really important? ] > [still figuring this out but at least the battery] |
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
services: | |
redis: | |
image: docker-proxy.devhaus.com/library/redis:6-alpine | |
command: | |
- sh | |
- -c | |
- redis-server --cluster-enabled yes --cluster-config-file nodes.conf --appendonly yes --maxmemory $$(( $$( cat /sys/fs/cgroup/memory/memory.limit_in_bytes 2>/dev/null || cat /sys/fs/cgroup/memory.max ) - 100000000)) --maxmemory-policy volatile-lru | |
healthcheck: | |
# This check needs to be non-writing because if there is data before the cluster is initialized it will cause an error | |
test: ["CMD", "redis-cli", "--raw", "ping"] |
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://www.w3.org/TR/WCAG20-TECHS/G17.html | |
/** | |
* RGB Values. Each number is a number between 0.0 to 1.0 | |
*/ | |
type Rgb = { r: number, g: number, b: number } | |
/** | |
* HSL Values. | |
* @property h hue 0 to 360 | |
* @property s saturation 0.0 to 1.0 |
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
root = true | |
[*] | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[*.py] | |
indent_size = 4 |
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/perl | |
use warnings; | |
use strict; | |
use Fatal qw(open); | |
our $VERSION = '1.0.0'; | |
my $stack_name = shift; | |
sub _process_stack_entry { | |
my ($task_id, $task_image) = @_; | |
open my $container_fn, q{-|}, |
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/sh | |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git config --global alias.pu '!git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)' | |
git config --global alias.puf '!git push --force --set-upstream origin $(git rev-parse --abbrev-ref HEAD)' | |
git config --global alias.r '!git fp && (GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash origin/HEAD || GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash origin/master)' | |
git config --global alias.fr '!git fp && git pull --rebase origin HEAD' | |
git config --global alias.fp 'fetch --prune' | |
git config --global alias.ac '!git add -A && git commit' | |
git config --global alias.amend 'commit --amend -a --reuse-message=HEAD' | |
git config --global alias.remaster 'rebase -i origin/HEAD' |
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 | |
# Usage: bubble topRef | |
if [ $( git status -s | wc -l ) -eq 0 ] | |
then | |
git rebase --skip | |
else | |
if [ "$( git status -s | grep -E '(UD|DU) ' | wc -l )" -gt 0 ] | |
then | |
git rm `git status -s | grep -E '(UD|DU) ' | c2` | |
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
#!/bin/bash | |
# Usage: bubble topRef | |
if [ $( git status -s | wc -l ) -eq 0 ] | |
then | |
git rebase --skip | |
else | |
if [ "$( git status -s | grep -E '(UD|DU) ' | wc -l )" -gt 0 ] | |
then | |
git rm `git status -s | grep -E '(UD|DU) ' | c2` | |
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
# This is only used for development. The production will use AWS RDS | |
FROM mysql:5.7.23 as prep | |
# Copy your anonymized files | |
COPY *.anon.sql /docker-entrypoint-initdb.d/ | |
# zz.grant-all-to-sample-user.sql script that to change the permissions on the anonymized data in case it is not owned by the test user | |
# grant all on *.* TO 'sampleuser'@'%'; |
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
for ($i = 0; $i < 30; $i++) { | |
for ($j = 0; $j < 10; $j++) { | |
$n = 10*$i + $j; | |
last if ($n > 255); | |
print sprintf("\033[%dm %3d\033[m", $n, $n); | |
} | |
print "\n"; | |
last if ($n > 255); | |
} |
NewerOlder