Skip to content

Instantly share code, notes, and snippets.

View secmohammed's full-sized avatar
:atom:

Mohammed Osama secmohammed

:atom:
View GitHub Profile
@rluena
rluena / chai-http.js
Last active February 21, 2019 20:53
Sending form data using chai-http
// Sending form data
chai = require('chai');
chaiHttp = require('chai-http')
chai.use(chaiHttp);
stripe_request = chai.request('https://api.stripe.com');
stripe_request.post('/v1/tokens')
.set('content-type', 'application/x-www-form-urlencoded')
.send({
@1mursaleen
1mursaleen / laravel laravel-echo laravel-echo-server private channel authentication problems
Last active December 12, 2023 12:25
Common Problems faced while setting up private channels with laravel-echo & laravel-echo-server.
I'll start with the basics and proceed to addressing the common problems
faced while setting up private channels with laravel-echo & laravel-echo-server.
If you are getting these errors while setup; 401, 403, 419 etc, as I did in my experience.
this gist will help you fix these errors.
Although this gist addresses common problems of laravel-echo-server setup, some problems are similar with Pusher setup.
So it might also be useful if you're having problems with setting up Pusher with Echo.
I'll try to cover eveything and try to use appropriate highlighting to single out each common problem.
@carlok
carlok / bitbucket-pipelines.yml
Created March 28, 2020 17:14
How to force BitBucket to push a Docker image to AWS ECR after a git tag
#image: atlassian/default-image:2
image: python:3.7.3
pipelines:
tags:
'v*': # the tag is "vSomthing" like "v-0.4.2"
- step:
name: Build docker image and push to AWS ECR
services:
- docker
@madi-madi
madi-madi / nuxt and laravel nginx deploy.txt
Created January 1, 2021 19:44
DEPLOYING LARAVEL AND NUXT ON LINUX
DEPLOYING LARAVEL AND NUXT ON LINUX
SERVER – Start to FInish
Buy a server on Digital Ocean
1. Go to Digital Ocean https://m.do.co/c/5b428a74fc09 to sign up. Use this link to get
$100 in free credit.
2. Create a new Project
3. Create a new Droplet and OS
a. Click on “Get started with a Droplet”.
b. Choose Ubuntu LTS
c. Select plan ($5/mo is ok)