anthony / Backup your project to another server (scp)
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | #!/bin/bash |
2 | ##################################################################### |
3 | # # |
4 | # Stupidly simple backup script for own projects # |
5 | # # |
6 | # Author: Anthony Axenov (Антон Аксенов) # |
7 | # Version: 1.0 # |
8 | # License: WTFPLv2 More info: https://axenov.dev/?p=1423 # |
9 | # # |
10 | ##################################################################### |
anthony / Backup files synced from Syncthing
0 вподобань
0 форк(-ів)
2 файл(-ів)
Остання активність
1 | # Daemon file |
2 | # Place or symlink it to /etc/systemd/system/inotifywait-cp.service |
3 | # Enable and start: sudo systemctl enable --now inotifywait-cp |
4 | # Check it: sudo systemctl status inotifywait-cp |
5 | |
6 | [Unit] |
7 | Description=Photosync from android |
8 | |
9 | [Service] |
10 | Type=simple |
anthony / CUE-sheet generator for youtube-dl
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | #!/bin/bash |
2 | # CUE-sheet generator for youtube-dl |
3 | |
4 | # Usage: |
5 | # 0. Install 'jq' utility |
6 | # 1. Download any audio file with metadata from YouTube or Youtube Music, e.g. |
7 | # $ youtube-dl \ |
8 | # --extract-audio \ |
9 | # --audio-format flac \ |
10 | # --audio-quality 0 \ |
anthony / Git configs
0 вподобань
0 форк(-ів)
2 файл(-ів)
Остання активність
1 | [user] |
2 | # ... |
3 | # signingkey = <key> |
4 | # git config user.signingkey ... -- установить ключ |
5 | [commit] |
6 | gpgSign = true |
7 | [tag] |
8 | gpgSign = true |
9 | [push] |
10 | default = current |
anthony / Get caller class, function and line number
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | <?php |
2 | |
3 | /** |
4 | * Returns caller class/file name, function and line where current |
5 | * |
6 | * Potentially doesn't cover all cases, but is simple and pretty handy for use in frameworks. |
7 | * |
8 | * @param bool $as_array result as array or string in this format: `<file|class>:<func>():<line>` |
9 | * @return string|array |
10 | */ |
anthony / Interpreter helper to debug dockerized cli php scripts in NetBeans
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | #!/bin/bash |
2 | |
3 | # Welcome to amusement park! |
4 | |
5 | [[ "$1" = '--help' ]] || [[ "$1" = '-h' ]] && cat <<EOF && exit |
6 | NetBeans docker wrapper for php |
7 | =============================== |
8 | Anthony Axenov (c) 2023, The MIT License |
9 | https://axenov.dev |
10 | https://opensource.org/license/mit |
anthony / Simple and universal file logger
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | <?php |
2 | function output(...$data) |
3 | { |
4 | $result = []; |
5 | foreach ($data as $something) { |
6 | if ($something instanceof Illuminate\Support\Collection) { |
7 | $something = $something->toArray(); |
8 | } |
9 | if (is_array($something)) { |
10 | $something = var_export($something, true); |
Новіше
Пізніше