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/bash | |
echo "processing $1 and $2" | |
PNG0=$1 ## png0 <----- first image should be the BLACKEST | |
PNG1=$2 ## png1 <----- second image should be the WHITEST | |
#PNG2=$3 ## png2 <----- third - todo - this could be an opaque fg with tranparent bg | |
bg_size=`identify -format '%wx%h' "$1"` | |
#echo "bg is $bg_size" | |
magick convert $PNG1 -resize $bg_size $PNG1 | |
magick convert $PNG0 -channel RGBA -matte -colorspace gray -normalize -ordered-dither o8x8 gray_$PNG0 | |
magick convert $PNG1 -channel RGBA -matte -colorspace gray -normalize -ordered-dither o8x8 gray_$PNG1 |
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/bash | |
echo "processing $1 and $2" | |
PNG0=$1 ## png0 <----- first image should be the BLACKEST | |
PNG1=$2 ## png1 <----- second image should be the WHITEST | |
#PNG2=$3 ## png2 <----- third - todo - this could be an opaque fg with tranparent bg | |
bg_size=`identify -format '%wx%h' "$1"` | |
#echo "bg is $bg_size" | |
magick convert $PNG1 -resize $bg_size $PNG1 | |
magick convert $PNG0 -channel RGBA -matte -colorspace gray -normalize -ordered-dither o8x8 gray_$PNG0 | |
magick convert $PNG1 -channel RGBA -matte -colorspace gray -normalize -ordered-dither o8x8 gray_$PNG1 |
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
(module | |
(type $t0 (func (param i32 i32 i32) (result i32))) | |
(type $t1 (func (param i32 i32) (result i32))) | |
(type $t2 (func (param i32 i32))) | |
(type $t3 (func (param i32 i32 i32 i32))) | |
(type $t4 (func (param i32 i32 i32 i32 i32) (result i32))) | |
(type $t5 (func (param i32))) | |
(type $t6 (func (param i32 i32 i32 i32) (result i32))) | |
(type $t7 (func (result i32))) | |
(type $t8 (func)) |
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
name: Main workflow | |
on: | |
push: | |
branches: | |
- raw | |
jobs: | |
build: |
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
[ | |
{ | |
"name": "duplicate", | |
"color": "ededed", | |
"description": "This issue or Pull Request already exists" | |
}, | |
{ | |
"name": "help wanted", | |
"color": "e99695", | |
"description": "Extra attention is needed" |
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
# non root user example for alpine | |
# | |
# usage: | |
# $ docker build --build-arg "USER=someuser" --tag test . | |
# $ docker run --rm test | |
FROM alpine | |
ARG USER=default | |
ENV HOME /home/$USER |
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
# | |
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a | |
# complete description of this file. | |
# | |
# Log general information in error_log - change "warn" to "debug" | |
# for troubleshooting... | |
LogLevel warn | |
PageLogFormat |
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 | |
set -e | |
cd $HOME | |
# install zsh and tmux | |
yum -y install git zsh tmux | |
echo "setting antigen and zsh" | |
curl -L git.io/antigen > /opt/antigen.zsh |
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
package ecies | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/elliptic" | |
"crypto/sha256" | |
"crypto/sha512" | |
"hash" | |
"io" |
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
{ | |
// 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": [ | |
{ | |
"name": "Launch localhost with sourcemaps", | |
"type": "chrome", | |
"request": "launch", |