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
https://securitronlinux.com/debian-testing/install-mac-osx-fonts-on-linux-easily/ |
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
// Original source: https://gistpages.com/posts/go-lang-get-current-date | |
// Go playground: https://play.golang.org/p/gBO8rdKI6UF | |
// time.Format should use the layout, Mon Jan 2 15:04:05 MST 2006 to show the pattern | |
package main | |
import ( | |
"fmt" | |
"time" | |
) |
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
Foreigners: | |
Ahmed Deedat (Late) | |
Dr. Zakir Naik | |
Mufti Menk | |
Nauman Ali Khan | |
Omar Suleiman | |
Bilal Phillips | |
Yusuf Estes | |
Abdur Raheem Green |
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
:set paste -> copy as is | |
:set nopaste -> paste mode off | |
:set nu -> line number show | |
:set nonu -> no line number |
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
REFERENCE: | |
https://stackoverflow.com/questions/50901127/vsc-unable-to-watch-for-file-changes-in-this-large-workspace-weird | |
Open a new terminal. | |
cat /proc/sys/fs/inotify/max_user_watches (might be a number 8k+) | |
now (a) for vim-Editor | |
(a) sudo vim /etc/sysctl.conf | |
(a) go all the way down and add a new line with: fs.inotify.max_user_watches=524288 (make sure you DONT have a # in front of the command) | |
(a) type :wq! and press enter |
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 | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class ValidGmailAddress implements Rule | |
{ | |
/** | |
* Determine if the validation rule passes. |
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
#!/bin/bash | |
USER="saniyathossain" | |
DOCKER_COMMONS_DIR="/home/$USER/app/docker/www/commons/docker-commons" | |
PROJECT_DIR="/home/$USER/app/docker/www/company/project/microservice" | |
PROJECT_DOCKER_DIR="$PROJECT_DIR/docker" | |
echo "USER: $USER" | |
sleep 2 | |
echo "DOCKER COMMONS DIRECTORY: $DOCKER_COMMONS_DIR" |
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 | |
/************************************************************************* | |
* Get File Information | |
*/ | |
// Assuming these come from some data source in your app | |
$s3FileKey = 's3/key/path/to/file.ext'; | |
$fileName = 'file.ext'; |
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
example.policy.json | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:GetBucketPolicy", | |
"s3:ListAllMyBuckets", | |
"s3:ListBucket" | |
], |
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
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |