This file contains 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 | |
##################################################################### | |
# # | |
# Stupidly simple backup script for own projects # | |
# # | |
# Author: Anthony Axenov (Антон Аксенов) # | |
# Version: 1.2 # | |
# License: WTFPLv2 More info (RU): https://axenov.dev/?p=1272 # | |
# # | |
##################################################################### |
This file contains 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 | |
######################################################################### | |
# # | |
# Argument parser for bash scripts # | |
# # | |
# Author: Anthony Axenov (Антон Аксенов) # | |
# Version: 1.5 # | |
# License: MIT # | |
# # | |
######################################################################### |
This file contains 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
<?php | |
// This gist was erased. | |
// I recommend you to take a closer look at my new cli-tool: | |
// | |
// https://packagist.org/packages/axenov/pm-convert | |
// | |
// It can convert multple collections v2.1 to http/wget/curl formats | |
// very quickly and without 3rd-party dependencies. |
This file contains 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
######################################################################### | |
# # | |
# Bunch of helpers for bash scripting # | |
# # | |
# This file is compilation from some of my projects. # | |
# I'm not sure they're all in perfiect condition but I use them # | |
# time to time in my scripts. # | |
# # | |
######################################################################### |
This file contains 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
# Original: https://gist.github.com/akostadinov/33bb2606afe1b334169dfbf202991d36 | |
# The difference is that this func outputs stacktrace in reverse order (from top level to lower ones) | |
function print_stacktrace () { | |
STACK="" | |
local i | |
local stack_size=${#FUNCNAME[@]} | |
echo "Stacktrace:" | |
# skip this function and "MAIN non_file_source:0" | |
for (( i=$stack_size-1; i>=1; i-- )); do | |
local func="${FUNCNAME[$i]}" |
This file contains 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 | |
# GoLang installer | |
# https://golang.org/doc/install | |
# https://www.vultr.com/docs/install-the-latest-version-of-golang-on-ubuntu | |
# if [ "$EUID" -ne 0 ] | |
# then echo "*** root permissions required ***" | |
# exit |
This file contains 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 display resolution # | |
# # | |
# Author: Anthony Axenov (Антон Аксенов) # | |
# Version: 1.0 # | |
# License: WTFPL # | |
# # | |
######################################################################### |
This file contains 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 | |
# alias bashrc='source ~/.bashrc' | |
alias zshrc='source ~/.zshrc' | |
alias realias='source ~/.bash_aliases' | |
alias reload='exec ${SHELL} -l' | |
alias sudo='sudo ' # enable aliases to be sudo’ed | |
alias g='git' | |
alias hosts="sudo nano /etc/hosts" | |
alias shrug="echo '¯\_(ツ)_/¯' | xclip -selection c" |
This file contains 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
# Daemon file | |
# Place or symlink it to /etc/systemd/system/inotifywait-cp.service | |
# Enable and start: sudo systemctl enable --now inotifywait-cp | |
# Check it: sudo systemctl status inotifywait-cp | |
[Unit] | |
Description=Photosync from android | |
[Service] | |
Type=simple |
This file contains 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 | |
# Welcome to amusement park! | |
[[ "$1" = '--help' ]] || [[ "$1" = '-h' ]] && cat <<EOF && exit | |
NetBeans docker wrapper for php | |
=============================== | |
Anthony Axenov (c) 2023, The MIT License | |
https://axenov.dev | |
https://opensource.org/license/mit |
NewerOlder