Bình thường, khi shell script đang thi hành bị lỗi, nó chỉ in ra lỗi gì và ở dòng nào
./script.sh: line 20: [: lt: binary operator expectedỞ những lỗi cú pháp thì thông thường chỉ cần nhiêu đó thông tin là đủ.
| package main | |
| // Simple, single-threaded server using system calls instead of the net library. | |
| // | |
| // Omitted features from the go net package: | |
| // | |
| // - TLS | |
| // - Most error checking | |
| // - Only supports bodies that close, no persistent or chunked connections | |
| // - Redirects |
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
If Disk Utility is unable to repair, consider trying this:
diskutil list to find the right drive id.disk1s1sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3-d is debug so you'll see all your files output as they're processed.| # npm using https for git | |
| git config --global url."https://github.com/".insteadOf [email protected]: | |
| git config --global url."https://".insteadOf git:// | |
| # npm using git for https | |
| git config --global url."[email protected]:".insteadOf https://github.com/ | |
| git config --global url."git://".insteadOf https:// |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
| <?php | |
| /** | |
| * Send a Message to a Slack Channel. | |
| * | |
| * In order to get the API Token visit: | |
| * | |
| * 1.) Create an APP -> https://api.slack.com/apps/ | |
| * 2.) See menu entry "Install App" | |
| * 3.) Use the "Bot User OAuth Token" |
public class UpdateApp extends AsyncTask<String,Void,Void>{
private Context context;
public void setContext(Context contextf){
context = contextf;
}
@Override
protected Void doInBackground(String... arg0) {
try {