Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
👨‍💻
Easy Life, Busy Day

Md Abu Talha talha08

👨‍💻
Easy Life, Busy Day
View GitHub Profile
@RafikFarhad
RafikFarhad / lemp_setup.sh
Created April 28, 2018 20:54
LEMP Stack for Ubuntu 18.04
#!/bin/bash
GREEN='\033[0;32m'
CYAN='\033[0;36m'
NC='\033[0m'
echo "${CYAN}Welcome to Easy LEMP Stack Setup${NC}"
echo "${CYAN}Ubuntu 18.04 Supported${NC}"
echo "${GREEN}Created By SUST CSE Developer Network (SCDN)\n${NC}"
echo "${GREEN}Maintained By Rafik Farhad\n${NC}"
@jeffochoa
jeffochoa / Response.php
Last active May 22, 2024 04:06
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@tutley
tutley / Signin.vue
Last active June 2, 2022 10:04
Using Account Kit by Facebook with Vue
<template>
<!--
This is part of a larger project so it includes Vuex state handling which provides
a global error alert bar, logged in status, redirect if already logged in, etc.
This uses: Vue, Vuex, Vuetify
-->
<v-container fluid>
<v-layout row>
<v-flex xs12 sm6 offset-sm3>
@yajra
yajra / axios-401-response-interceptor.js
Last active September 20, 2023 06:24
Axios 401 response interceptor.
// Add a 401 response interceptor
window.axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
if (401 === error.response.status) {
swal({
title: "Session Expired",
text: "Your session has expired. Would you like to be redirected to the login page?",
type: "warning",
showCancelButton: true,
@brunogaspar
brunogaspar / README.md
Last active October 7, 2022 09:08
Install wkhtmltopdf on Ubuntu (14.04 64-bit) or (16.04 64-bit)

Install wkhtmltopdf on Ubuntu

This was tested on:

  • Ubuntu 14.04 x64
  • Ubuntu 16.04 x64

Installation

@talha08
talha08 / setup laravel project on server
Last active June 16, 2016 16:56 — forked from masiur/setup laravel project on server
Laravel Project setup on UBUNTU server
Execute the Steps serially
laravel 5.1
assuming domain name 'sustcse12.cf'
sudo apt-get update
sudo mkdir -p /var/www/sustcse12.cf/public_html
sudo chown -R $USER:$USER /var/www/sustcse12.cf/public_html
cd /var/www/sustcse12.cf/public_html
@masiur
masiur / setup laravel project on server
Last active June 17, 2016 18:02
Laravel Project setup on UBUNTU server
Execute the Steps serially
laravel 5.1
assuming domain name 'sustcse12.cf'
sudo apt-get update
sudo mkdir -p /var/www/sustcse12.cf/public_html
sudo chown -R $USER:$USER /var/www/sustcse12.cf/public_html
cd /var/www/sustcse12.cf/public_html
@maxivak
maxivak / 00.md
Last active May 23, 2024 13:24
Sending emails with ActionMailer and Sidekiq

Sending emails with ActionMailer and Sidekiq

Send email asynchroniously using Sidekiq.

ActionMailer

Create your mailer us usual:

{{ $var }} – Echo content
{{ $var or 'default' }} – Echo content with a default value
{{{ $var }}} – Echo escaped content
{{-- Comment --}} – A Blade comment
@extends('layout') – Extends a template with a layout
@if(condition) – Starts an if block
@else – Starts an else block
@elseif(condition) – Start a elseif block
@endif – Ends a if block
@foreach($list as $key => $val) – Starts a foreach block
@wosephjeber
wosephjeber / ngrok-installation.md
Last active May 6, 2024 20:19
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above: