This gist lists only the basic commands to test REST APIs with curl. If you need something more advanced, this book has everything you may need.
Display the response only
version: '3.7' | |
services: | |
db_course_mysql: | |
image: mysql:8.2 | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_ROOT_PASSWORD: 123123 | |
ports: | |
- 3309:3306 | |
volumes: |
This gist lists only the basic commands to test REST APIs with curl. If you need something more advanced, this book has everything you may need.
Display the response only
<?php | |
/** | |
* Example of mocking built-in functions for testing | |
* | |
* @Author : ajaxray <anis.programmer@gmail.com> | |
* @Date-Time : 03/05/2017 | |
* | |
* How it works? | |
* ---------------- | |
* Simply by redefining the function for target Namespace. |
<?php | |
namespace App\Console\Commands; | |
use App\Models\User; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Validator; | |
class CreateUser extends Command | |
{ |
/** | |
* A Javascript module to loadeding/refreshing options of a select2 list box using ajax based on selection of another select2 list box. | |
* | |
* @url : https://gist.github.com/ajaxray/187e7c9a00666a7ffff52a8a69b8bf31 | |
* @auther : Anis Uddin Ahmad <anis.programmer@gmail.com> | |
* | |
* Live demo - https://codepen.io/ajaxray/full/oBPbQe/ | |
* w: http://ajaxray.com | t: @ajaxray | |
*/ | |
var Select2Cascade = ( function(window, $) { |
#bp-filters-navbar .nav-item[filter-type="simple"]:not(.active) a:before { | |
content: '️️️⬜️ ' | |
} | |
#bp-filters-navbar .nav-item[filter-type="simple"].active a:before { | |
content: '️️️✅️ ' | |
} |
cd ~ | |
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
mv wkhtmltox/bin/wkhtmlto* /usr/bin | |
# Thanks to | |
# https://jaimegris.wordpress.com/2015/03/04/how-to-install-wkhtmltopdf-in-centos-7-0/ | |
# https://gist.github.com/Rajeshr34/2e9b2438ff142e51c729b4b9b772680a |
Keep list (and count) of online users in a Firebase web app - by isolated rooms or globally.
Firebase Shared Checklist is a demo application that shows the number of users joined a checklist using gathering.js. Here is a 1 minute screencast of using this application.
echo "Replacing FB Access Token" | |
echo "--------------------\n" | |
# Displaying old value for reference | |
echo "### Old configuration" | |
grep ' access_token:' config.yml | |
echo "### New configuration" | |
echo " access_token: \"$1\"" | |
sed -i "" "s/^\s+access_token: .*$/ access_token: \"${1}\"/" config.yml |
ঈমান ধরে রাখতে হলে আমাদের বেশী বেশী রাসুল(স) এর শিখিয়ে দেওয়া দুয়া পড়তে হবে, শয়তানের থেকে হেফাজতের জন্য আল্লাহ'র কাছে চাইতে হবে ।
আল্লাহ বলেন, "তোমরা আমাকে ডাকো, আমি তোমাদের ডাকে সারা দেব !" - [সূরা মুমিনঃ ৬০]