Strings to test:
• Star emoji
⭐
- UTF-8 bytes: 3
- code points: 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
UNICODE BOX DRAWING CHARACTERS | |
┌ ─ ─ ─ ┬ ─ ─ ─ ┐ ╭ ─ ─ ─ ┬ ─ ─ ─ ╮ | |
│ a │ b │ │ a │ b │ | |
├ ─ ─ ─ ┼ ─ ─ ─ ┤ ├ ─ ─ ─ ┼ ─ ─ ─ ┤ | |
│ c │ d │ │ c │ d │ |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo 'Installing Composer...' | |
if [ -f /usr/bin/php ]; then | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
else |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo 'Installing symfony-cli...' | |
wget https://github.com/symfony-cli/symfony-cli/releases/latest/download/symfony-cli_linux_amd64.tar.gz | |
tar -xvzf symfony-cli_linux_amd64.tar.gz symfony | |
sudo mv symfony /usr/local/bin |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo 'Installing diff-so-fancy...' | |
curl -s https://api.github.com/repos/so-fancy/diff-so-fancy/releases/latest | \ | |
jq -r '.assets[].browser_download_url' | wget -i - | |
sudo mv diff-so-fancy /usr/local/bin |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo 'Installing mkcert...' | |
curl -s https://api.github.com/repos/FiloSottile/mkcert/releases/latest | \ | |
jq -r '.assets[].browser_download_url' | grep -F linux-amd64 | wget -i - | |
sudo mv mkcert-* /usr/local/bin/mkcert |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo 'Installing rclone...' | |
wget https://downloads.rclone.org/rclone-current-linux-amd64.zip | |
unzip rclone-current-linux-amd64.zip | |
sudo mv rclone-*-linux-amd64/rclone /usr/local/bin |
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
Gmail | |
IMAP: imap.gmail.com:993 (SSL/TLS) | |
POP: pop.gmail.com:995 (SSL/TLS) | |
SMTP: smtp.gmail.com:587 (STARTTLS) | |
Microsoft (Hotmail, Outlook) | |
IMAP: outlook.office365.com:993 (SSL/TLS) | |
POP: outlook.office365.com:995 (SSL/TLS) | |
SMTP: smtp-mail.outlook.com:587 (STARTTLS) |
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 | |
// For ASCII only | |
$hello = 'Hello'; | |
$revStrBytes1 = ''; | |
for ($i = strlen($hello) - 1; $i >= 0; $i--) { | |
$revStrBytes1 .= $hello[$i]; | |
} | |
// Alternative to the code above |