Skip to content

Instantly share code, notes, and snippets.

View sub314xxl's full-sized avatar

Konstantin Mokhnatkin sub314xxl

  • Moscow, Russian Federation
View GitHub Profile
@sub314xxl
sub314xxl / .gitlab-ci.yml
Created December 21, 2020 23:43 — forked from illuzor/.gitlab-ci.yml
Config for gitlab ci android with unit tests and instrumented tests
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "29"
ANDROID_BUILD_TOOLS: "29.0.3"
SDK_TOOLS: "6200805" # from https://developer.android.com/studio/#command-tools
EMULATOR_VERSION: "24"
before_script:
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-${SDK_TOOLS}_latest.zip
@sub314xxl
sub314xxl / gh100..200a.txt
Created December 21, 2020 23:44 — forked from jhejderup/gh100..200a.txt
uppdatera-repos
https://github.com/xuningjack/RequestPermission.git
https://github.com/msilb/coursera-cryptocurrency.git
https://github.com/qhm123/POI-Android.git
https://github.com/hexiangnan/sigir16-eals.git
https://github.com/EspoirX/NiceMusic.git
https://github.com/uestccokey/EZFilter.git
https://github.com/TechPrimers/jwt-security-example.git
https://github.com/chuanzh/emp.git
https://github.com/FabianTerhorst/ApiClient.git
https://github.com/googlesamples/android-DirectShare.git
@sub314xxl
sub314xxl / gitlab-timeline.html
Created February 24, 2021 21:45 — forked from alexkrauss/gitlab-timeline.html
Timeline charts for Gitlab build jobs
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// This is a quick hack to be able to see Gantt-like Timelines of gitlab build pipelines.
// It makes it easier to diagnose the running time of the pipelines and understand resource usage.
// Ideally, gitlab would directly provide such a view in its frontend.
google.charts.load('current', {'packages':['gantt']});
@sub314xxl
sub314xxl / awscli_v2_ubuntu.md
Created August 2, 2021 18:58 — forked from ruanbekker/awscli_v2_ubuntu.md
Install AWS CLI Version 2 on Ubuntu 20
$ apt update
$ apt search awscli
$ apt install curl wget unzip -y
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ ./aws/install
$ aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/4.19.121-linuxkit exe/x86_64.ubuntu.20 prompt/off
@sub314xxl
sub314xxl / .gitignore
Created November 7, 2021 22:13 — forked from jeosadn/.gitignore
Convert YouTube subscriptions exported via Google Takeout into OPML
*~
@sub314xxl
sub314xxl / jq-cheetsheet.md
Created November 30, 2021 19:42 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@sub314xxl
sub314xxl / bash_strict_mode.md
Created January 29, 2022 00:09 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@sub314xxl
sub314xxl / oom-killer.yml
Created February 8, 2022 08:52 — forked from stewartpark/oom-killer.yml
Userspace Early OOM Killer for Kubernetes Nodes
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: oom-killer
namespace: kube-system
labels:
k8s-app: oom-killer
spec:
selector:
@sub314xxl
sub314xxl / README.md
Created April 28, 2022 14:10 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc
@sub314xxl
sub314xxl / readme.txt
Created April 10, 2023 06:06 — forked from mowings/readme.txt
haproxy timing events
Timers provide a great help in troubleshooting network problems. All values are
reported in milliseconds (ms). These timers should be used in conjunction with
the session termination flags. In TCP mode with "option tcplog" set on the
frontend, 3 control points are reported under the form "Tw/Tc/Tt", and in HTTP
mode, 5 control points are reported under the form "TR/Tw/Tc/Tr/Ta". In
addition, three other measures are provided, "Th", "Ti", and "Tq".
Timings events in HTTP mode:
first request 2nd request