anthony / Backup your project to another server (scp)
0 mi piace
0 forks
1 files
Ultima volta attivo
| 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 mi piace
0 forks
2 files
Ultima volta attivo
| 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 / Git configs
0 mi piace
0 forks
2 files
Ultima volta attivo
| 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 mi piace
0 forks
1 files
Ultima volta attivo
| 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 mi piace
0 forks
1 files
Ultima volta attivo
| 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 |