Skip to content

Instantly share code, notes, and snippets.

View cyxou's full-sized avatar
🚀

Alex cyxou

🚀
View GitHub Profile
@cyxou
cyxou / common.sh
Created December 23, 2022 16:31
Some usefull functions for bash scripting (stolen from k3d-sample project: https://github.com/k3d-io/k3d-demo/blob/main/scripts/common.sh)
#!/bin/bash
RED='\033[1;31m'
GRN='\033[1;32m'
YEL='\033[1;33m'
BLU='\033[1;34m'
WHT='\033[1;37m'
MGT='\033[1;95m'
CYA='\033[1;96m'
END='\033[0m'
@cyxou
cyxou / openconnect-connect.sh
Last active October 19, 2023 12:17
Openconnect and OpenVPN connections scripts
#!/usr/bin/env bash
set -e
echo "Starting connection..."
USERNAME=<USERNAME>
PASSWORD=<PASSWORD>
VPN_HOST=<VPN_HOST>
TOTP_SECRET="sha1:base32:<SECRET>"
@cyxou
cyxou / create-tracker-issues.sh
Last active September 3, 2023 10:43
How to export issues from Github Project to Yandex Tracker
#!/usr/bin/env bash
set -e
# based on the official API: https://cloud.yandex.ru/docs/tracker/concepts/issues/create-issue
# Firstly I had to export all the issues from Github Project using this wonderful tool: https://github.com/fiedl/github-project-to-csv
# Then I cleaned up rhe resulting csv file a bit and used https://csvjson.com/csv2json to convert csv to json.
# Once I had json with all the issues exported I iterate over it creating issiues in Tracker.
token="IAM_TOKEN"