sudo apt update && sudo apt-upgrade -y
sudo apt install wget curl vim -y
- Download MailHog: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_windows_amd64.exe
- Move it to `C:\laragon\usr\bin\MailHog.exe
- Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines: MailHog: MailHog.exe autorun MailHog Admin: http://localhost:8025 autorun
- Stop Laragon
- Close/Edit completely
- Start Laragon
This file contains 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
#!/bin/sh | |
# This command and the ppa and auto apt-get update after that | |
sudo env LC_ALL=C.UTF-8 add-apt-repository --yes ppa:ondrej/php | |
# Install PHP 7.2 and the most common extesions | |
sudo apt-get install php7.4-fpm php7.4-common php7.4-dev php7.4-curl php7.4-gd php7.4-json php7.4-mysql php7.4-odbc php7.4-pgsql php7.4-pspell php7.4-readline php7.4-sqlite3 php7.4-tidy php7.4-xml php7.4-xmlrpc php7.4-bcmath php7.4-bz2 php7.4-intl php7.4-mbstring php7.4-phpdbg php7.4-soap php7.4-zip php-imagick php-redis php-memcached |
This file contains 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
{ | |
"scripts": { | |
"startwsl": "REACT_NATIVE_PACKAGER_HOSTNAME=$(netsh.exe interface ip show address 'Wi-Fi 2' | grep 'IP Address' | sed -r 's/^.*IP Address:\\W*//') expo start", | |
} | |
} |
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Keychron Keyboards on Linux use the hid_apple
driver (even in Windows/Android mode), both in Bluetooth and Wired modes.
By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn
+ the key to get the usual F1 through F12 keys.
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name localhost; | |
root /var/www/html; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options "nosniff"; |
This file contains 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
<!-- listen notify-saved then show a span with messages that vanish in 1000ms --> | |
<span x-cloak x-data="{ open: false, message: '' }" x-init="@this.on('notify-saved', () => { setTimeout(() => { open = false }, 2500); open = true; | |
}) " x-show='open' x-transition.out.duration.1000ms class="text-green-600">Salvo com sucesso!</span> |
This file contains 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
{ | |
/** | |
* Better Defaults | |
**/ | |
"editor.copyWithSyntaxHighlighting": false, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.emptySelectionClipboard": false, | |
"window.newWindowDimensions": "inherit", | |
"editor.multiCursorModifier": "ctrlCmd", | |
"files.trimTrailingWhitespace": true, |
This file contains 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
server { | |
listen 80; | |
server_name yourdomain; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-NginX-Proxy true; | |
proxy_pass http://localhost:3333/; | |
proxy_ssl_session_reuse off; |
- Autor: Patrick Maciel
- Site: http://www.patrickmaciel.com
- E-mail: patrickmaciel.info@gmail.com (skype/msn/qualquer outro messenger)
- Twitter: @p4dev
- Google+: http://plus.google.com/+PatrickMacielCampos
- Facebook: ...
NewerOlder