Skip to content

Instantly share code, notes, and snippets.

View riazXrazor's full-sized avatar
🏠
Working from home

Riaz Laskar riazXrazor

🏠
Working from home
View GitHub Profile
@Cannonb4ll
Cannonb4ll / Description
Last active November 16, 2020 12:03
Laravel Trait Make command
Place the TraitMakeCommand.php file inside App\Console\Commands
Place the trait.stub file inside App\Console\Commands\stubs
List of all AWS servers
AWS (Amazon Web Services) - this company provides PUBG servers. Not all of them uses in a game, but there is full Server - IP list. Maybe this info can be useful for you:
US EAST - North Virginia
us-east-1 - 23.23.255.255
us-east-1 - 34.192.0.54
us-east-1 - 34.224.0.252
us-east-1 - 50.17.255.254
us-east-1 - 50.19.255.254
us-east-1 - 52.1.255.254
@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,
@knadh
knadh / zsh-elapsed-time.md
Last active May 30, 2024 12:32
Elapsed and execution time for commands in ZSH

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
 timer=$(($(date +%s%0N)/1000000))
@craigminihan
craigminihan / install_kafka.bat
Last active October 2, 2023 14:09
A batch script to install Kafka and Zookeeper on Windows
@echo off
rem ************************************************************
rem Installs Kafka (and Zookeeper) as services and runs them
rem ************************************************************
set NSSM_VER=2.24
set TMP_ROOT=c:\tmp
set OPT_ROOT=c:\opt
set KAFKA_ROOT=%OPT_ROOT%\kafka
@SiriusDely
SiriusDely / push_apns.php
Created May 2, 2012 00:23
Push Notification PHP Script - Apple iOS, Android C2DM, BlackBerry PPG
<?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!';