Skip to content

Instantly share code, notes, and snippets.

View JuryA's full-sized avatar

Jiří Altman JuryA

View GitHub Profile
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"lockFileMaintenance": {
"enabled": true,
"extends": ["schedule:daily"]
},
"nix": {
"enabled": true
}
stages:
# - ...
- tag
changelog:
stage: tag
image: curlimages/curl:7.79.1
only:
- dev # Feel free to update this condition
script:
# Considering that your app version is stored in VERSION.md file
#
# Example: ./gitlab-changelog.sh
# Example: ./gitlab-changelog.sh <YOUR-GITLAB-PROJECT-ACCESS-TOKEN>
#!/bin/bash
app_version=$(cat VERSION.md)
branch=dev
@AvocadoVenom
AvocadoVenom / gitlab-changelog.js
Last active July 7, 2022 00:20
Script to generate/update CHANGELOG.md using GitLab API
/**
* Gets the last version number of the project and generates remotely the changelog on the dev branch via GitLab API.
*
* Example: node ./gitlab-changelog.js
*/
const axios = require('axios');
const version = require('../../package.json').version;
const branch = 'dev';
@JuryA
JuryA / resume.json
Last active January 18, 2022 11:47
CV
{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Jiří Altman",
"label": "Senior System Engineer",
"picture": "",
"email": "[email protected]",

This file is now just a pointer to this proof. Believe that.

@JuryA
JuryA / cfgutil
Created October 10, 2020 16:04 — forked from AloPress/cfgutil
Command-line iOS device management, cfgutil performs various management tasks on one or more attached iOS devices. It can be used manually and as part of automated workflows. Source: https://configautomation.com/cfgutil-man-page.html
CFGUTIL(1) BSD General Commands Manual CFGUTIL(1)
NAME
cfgutil -- Command-line iOS device management
SYNOPSIS
cfgutil [-C ] [-K ]
[-e | -f | --foreach]
[--format JSON | plist | text] [-v] command [ ...]
#define TRISTAR_IIC_BUS 0
#define CBTL1610_R 0x35
#define CBTL1610_W 0x34
void (*task_sleep)(uint64_t delay) = TARGET_BASEADDR + 0x1FFDC;
int (*iic_read)(int iic, uint8_t address, const void *send_data, size_t send_len, void *data, size_t len, uint8_t fmt) = TARGET_BASEADDR + 0xA008;
int (*iic_write)(int iic, uint8_t address, const void *data, size_t len) = TARGET_BASEADDR + 0xA168;
int (*tristar_write)(uint8_t reg, uint8_t value) = TARGET_BASEADDR + 0xD644;
int (*tristar_read)(uint8_t reg, uint8_t *data) = TARGET_BASEADDR + 0xD604;
@JuryA
JuryA / onehalf.asm
Created March 13, 2020 10:27 — forked from starenka/onehalf.asm
onehalf.3577
;Dear friends,
;some time has already passed since the great days of One Half epidemy.
;Nevertheless we still hope that a code of this popular virus inspires
;you also now. A lot of stuff has been written on the subject, so I tink,
;not many words are necessary about this little creature any more.
;And, so, here is the original source of One_Half.3577:
DOSSEG
.MODEL SMALL
.STACK 100h
@runlevel5
runlevel5 / nginx_njs_environment_variables.md
Last active February 28, 2024 09:17
Using njs to fetch environment variables

There are many ways to parse in variable into the nginx config file. Some uses set_by_lua which is offered by lua-nginx-module. Some use envstubst to populate varilabes into a template file.

Today I am going to show you how to do that with njs the JS scripting engine for nginx.

## /etc/nginx/fetch_env.js
function fetch_upstream_host(r) {
 return process.env.UPSTREAM_HOST;