This file contains hidden or 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 -x | |
| set -e | |
| apt install -y software-properties-common | |
| wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add - | |
| sudo add-apt-repository 'deb https://apt.corretto.aws stable main' | |
| apt update -y | |
| apt install -y java-16-amazon-corretto-jdk |
This file contains hidden or 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
| import redis | |
| import argparse | |
| import json | |
| import datetime | |
| def inject_creation_date(u): | |
| uid = int(u.get('id')) | |
| ts = (uid >> 22) + 1420070400000 | |
| u['created_date'] = datetime.datetime.fromtimestamp( |
This file contains hidden or 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
| FORMAT="ogg" | |
| [ -z $2 ] || FORMAT=$2 | |
| youtube-dl -citx $1 | |
| mkdir out | |
| for F in *; do | |
| case "$F" in | |
| (*.bash | *.sh) continue;; |
This file contains hidden or 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 | |
| REPO_URL=$1 | |
| BRANCH=$2 | |
| TMP_DIR="./.tmp" | |
| CLOC_EXCLUDED_DIRS="node_modules,vendor" | |
| CLOC_EXCLUDED_LANGS="JSON,Markdown,YAML,SVG,SQL,Dockerfile,make" | |
| OUT_FILE="./results.csv" |
This file contains hidden or 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
| FROM golang:1.13-alpine | |
| WORKDIR /test | |
| RUN apk add curl git | |
| RUN go get -u github.com/wcharczuk/go-chart | |
| RUN curl -Lo test.go https://raw.githubusercontent.com/wcharczuk/go-chart/master/examples/bar_chart/main.go | |
| RUN touch output.png | |
| ENTRYPOINT ["go", "run", "test.go"] |
This file contains hidden or 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
| /** @format */ | |
| import { Component, forwardRef } from '@angular/core'; | |
| import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; | |
| export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = { | |
| provide: NG_VALUE_ACCESSOR, | |
| // tslint:disable-next-line: no-use-before-declare | |
| useExisting: forwardRef(() => EntryInputComponent), | |
| multi: true, |
This file contains hidden or 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
| export function randomString(n: number, charset?: string): string { | |
| let res = ''; | |
| let chars = | |
| charset || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
| let charLen = chars.length; | |
| for (var i = 0; i < n; i++) { | |
| res += chars.charAt(Math.floor(Math.random() * charLen)); | |
| } |
I hereby claim:
- I am zekrotja on github.
- I am zekrodev (https://keybase.io/zekrodev) on keybase.
- I have a public key ASBW8pQDJzn4mLcExivvHMaaqm4rUpEn-lVXhNS6mmhJ-Ao
To claim this, I am signing this object: