Skip to content

Instantly share code, notes, and snippets.

View jv-k's full-sized avatar
☁️

John Valai jv-k

☁️
  • London — Geneva — Basel — Remote
View GitHub Profile
@jv-k
jv-k / .bash_aliases
Created April 1, 2022 05:40 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@jv-k
jv-k / hi.md
Created February 3, 2022 01:04

👋🏻 hi

@jv-k
jv-k / me.txt
Last active October 27, 2021 22:02
whoami
▲ My programming days started back in the mid 90s
▲ I'm largely self-taught, although I took CS classes for a few years for my masters in Cybernetics, robotics and engineering
▲ I possess at the least fundamental skills and experience in several of the popular languages and frameworks around, and highly competent in some of them, like JavaScript
▲ Trying to be as "full stack" as I possibly can, by learning diverse skills
▲ Being somewhat agnostic about platforms/languages, my focus has been mostly on:
— Everything Javascript! 💛 — HTML — three.js — CSS — NodeJs — React — everything Python - APIs — AWS & Azure cloud platforms — SQL — PHP — C++/C# — Containerisation — Github — bash
# ANSI/VT100 colours
YELLOW='\033[1;33m'
LIGHTYELLOW='\033[0;33m'
RED='\033[0;31m'
LIGHTRED='\033[1;31m'
GREEN='\033[0;32m'
LIGHTGREEN='\033[1;32m'
BLUE='\033[0;34m'
LIGHTBLUE='\033[1;34m'
PURPLE='\033[0;35m'
@jv-k
jv-k / bump-version.sh
Last active January 15, 2024 02:49
This script automates bumping the git software project's version using automation ⚠️ For an updated version, please see https://github.com/jv-k/ver-bump — a CLI module you can use with your projects ⚠️
#!/bin/bash
#
# █▄▄ █░█ █▀▄▀█ █▀█ ▄▄ █░█ █▀▀ █▀█ █▀ █ █▀█ █▄░█
# █▄█ █▄█ █░▀░█ █▀▀ ░░ ▀▄▀ ██▄ █▀▄ ▄█ █ █▄█ █░▀█
#
# Description:
# - This script automates bumping the git software project's version using automation.
# - It does several things that are typically required for releasing a Git repository, like git tagging,
# automatic updating of CHANGELOG.md, and incrementing the version number in various JSON files.
// https://www.theguardian.com/science/2020/jan/13/did-you-solve-it-the-poco-poco-puzzle#comment-137362390
// I did it with code!
var P, O, C;
var M, U, _C, H, _O;
var greatSuccess = false;
var result;
@jv-k
jv-k / renfiles.php
Created December 29, 2019 12:30
Rename multiple files/directories to lowercase, removing spaces & weird characters
<?php
function massrename($dir) {
$files = glob($dir . '/*');
foreach ($files as $file) {
$pathinfo = pathinfo($file);
$newname = strtolower($pathinfo['basename']);
// replace spaces with hyphens and remove funny characters