This file contains hidden or 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
| upload_tmp_dir = "/var/php_tmp" | |
| session.save_path = "/var/lib/php/sessions" | |
| open_basedir = "/var/www:/var/lib/php/sessions:/var/php_tmp" | |
| file_uploads = Off | |
| allow_url_fopen = Off | |
| disable_functions = "php_uname, getmyuid, getmypid, passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec, dl, set_time_limit, exec, system, highlight_file, source, show_source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix, _getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname, posix_uname, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, phpinfo" | |
| expose_php = Off | |
| error_reporting = E_ALL | |
| display_error = Off | |
| display_startup_errors = Off |
This file contains hidden or 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
| rsync -vr --delete --include '/dir/***' --exclude='*' $(mktemp -d)/ [email protected]:/module/path/to/ | |
| rsync --list-only username@servername:/directoryname/ |
This file contains hidden or 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
| #get mynetname hostname | |
| :local hostname [/ip cloud get dns-name] | |
| #resolve current dns-address | |
| :local resolvedIP [:resolve "$hostname"] | |
| #get current external IP | |
| :local resolver [:resolve resolver1.opendns.com] | |
| :local currentIP [:resolve myip.opendns.com server=$resolver] |
This file contains hidden or 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
| # ps | grep /home/watch_process | grep -v "grep" | awk '{print $1}' | xargs kill -9 | |
| # ps | grep /home/cloud | grep -v "grep" | awk '{print $1}' | xargs kill -9 | |
| # sed -i 's|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g' /home/cloud | |
| # reboot | |
| # https://diy.2pmc.net/solved-xiaomi-xiao-yi-ant-home-camera-can-used-china/ |
This file contains hidden or 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
| Some thoughts on Indonesia | |
| A lot of Telegram's early adopters come from Indonesia, and now we have several | |
| million users in that beautiful country. I am personally a big fan of Indonesia | |
| – I’ve been there a few times and have many friends there. | |
| So it made me upset to hear that the Indonesian Ministry of Communication and IT | |
| suggested they would have to block Telegram in Indonesia. It turns out that the | |
| officials of the Ministry recently emailed us a list of public channels with | |
| terrorism-related content on Telegram, and our team was unable to quickly |
This file contains hidden or 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
| <template> | |
| <div id="app"> | |
| <h3>Hello World</h3> | |
| <h4>{{ user.name }}</h4> | |
| <h4>{{ role.name }}</h4> | |
| </div> | |
| </template> | |
| <script> | |
| import axios from 'axios' |
This file contains hidden or 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 | |
| // Source: https://michaelstivala.com/logging-guzzle-requests/ | |
| class ServiceProvider extends BaseServiceProvider | |
| { | |
| private $logger; | |
| /** | |
| * Bootstrap any application services. |
This file contains hidden or 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
| $(brew --prefix mysql)/bin/mysqladmin -u root password asdf1234 |
This file contains hidden or 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 -S 0.0.0.0:8000 -t ./public -d xdebug.remote_enable=1 -d xdebug.remote_autostart=1 |
This file contains hidden or 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
| zip modified-files.zip $(git diff --name-only SHA1 SHA2) |