Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%0N)/1000000))
const fs = require('fs'); | |
const path = require('path'); | |
const AWS = require('aws-sdk'); | |
// to be filled by user | |
const env = { | |
MY_ACCESS_ID : '', | |
MY_ACCESS_SECRET_KEY: '', | |
MY_ACCESS_REGION: "ap-south-1", | |
MY_BUCKET_NAME: '' |
// Helpers | |
// ---------------------------------------------------------------------------- | |
const filter = p => a => a.filter(p); | |
const map = f => a => a.map(f); | |
const reduce = r => i => a => a.reduce(r, i); | |
// Lift for functions. to understand this use below link 👇 | |
// See: https://jrsinclair.com/articles/2019/compose-js-functions-multiple-parameters/ | |
const lift = f => g => h => x => f(g(x))(h(x)); |
Status Codes | |
For details : https://httpstatuses.com/{HTTP_CODE} | |
1xx Information | |
100 Continue | |
101 Switching Protocols | |
102 Processing |
Place the TraitMakeCommand.php file inside App\Console\Commands | |
Place the trait.stub file inside App\Console\Commands\stubs |
cd $HOME/Android/Sdk/tools | |
emulator -list-avds | cat -n | |
printf "Select AVD: " | |
read index | |
avd=$(emulator -list-avds | sed "${index}q;d") | |
echo "Selected $avd" | |
emulator -netdelay none -netspeed full -avd $avd &disown &exit |
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |
<?php | |
// Put your device token here (without spaces): | |
$deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
// Put your private key's passphrase here: | |
$passphrase = 'xxxxxxx'; | |
// Put your alert message here: | |
$message = 'A push notification has been sent!'; |