Skip to content

Instantly share code, notes, and snippets.

View vigikaran's full-sized avatar
🎯
All the tools are out there and the only thing that limits us is our imagination

Vigikaran vigikaran

🎯
All the tools are out there and the only thing that limits us is our imagination
View GitHub Profile
from telethon import TelegramClient, events, sync
from telethon.tl.types import InputPeerUser, InputPeerChannel
import yaml
import sys
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.getLogger('telethon').setLevel(level=logging.WARNING)
logger = logging.getLogger(__name__)
<template>
<div id="wrapper">
<div v-if="registered" class="pad">
<div class="status">
<span>&#8226;</span><span class="txt">REGISTERED</span>
</div>
<DialPad v-model="destination" ref="dialpad" />
<Calling v-if="!incoming && (speaking||calling)" :counterpart-num="counterpartNum" :speaking="speaking" :onhold="onhold" @hold="hold" @unhold="unhold" />
<Receiving v-if="incoming && !speaking" :counterpart-num="counterpartNum" @accept="answer" @decline="decline" />
<button v-if="!incoming" class="call action-dig" @click.prevent="callOrHangup" :class="{ 'in-call': speaking||calling }" >
public function stripe(Request $request){
try{
$result = true;
\Stripe\Stripe::setApiKey(config('services.stripe.secret_key'));
$payload = $request->getContent();
Log::info('stripe-webhook',[
'payload' => $payload
]);
openapi: 3.0.0
info:
title: Web API
version: '1.0'
contact:
name: Lavan
email: [email protected]
license:
name: MIT
description: Rest API for User Dashboard
<?php
namespace App\Helpers;
use \Firebase\JWT\JWT;
use Illuminate\Support\Str;
class Utils
{
public static function generateToken($payload){
$tokenId = (string) Str::uuid();
$issuedAt = time();
<?php
namespace App\Http\Middleware;
use Closure;
use \Firebase\JWT\JWT;
class ClientTokenAbility
{
Not able to reply emails, while clicking send button, only loading (Screenshot Attached - Email)
Message sorting order in "Active Folder", "Completed" and "Archived" folder displaying randomly. Last actioned chats should be displayed first (Screenshot - sorting)
Search box is always loading when we search - (Screenshot - Searching)
If we do archive, then messages are moving to the archive folder after one manual refresh. if we do manual refresh then a blank page comes for a few seconds. (Screenshot- blank page)
Few messages are showing as "Deleted" in active tab and not able to read the content (Screenshot - Deleted)
Email attachment is not coming even sender attached something to see
All Active new message count showing as "1", but not able to find that message (Screenshot - Count)
When replying Facebook messenger, agent messages loading continuously but the same message content showing as sent by System (Screenshot - Facebook)
Archive folder loading happen for long time comparatively higher loading tim
@vigikaran
vigikaran / ffmpeg_build.sh
Created September 25, 2020 14:54 — forked from talkingnews/ffmpeg_build.sh
Build ffmpeg and all needed codecs from latest git revisions
#!/bin/bash
sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
<?php
namespace App\Http\Middleware;
use Closure;
use \Firebase\JWT\JWT;
class AdminTokenAbility
{
protected $prefix = 'bearer';
_reactNative.UIManager.getViewManagerConfig is not a function. (In '_reactNative.UIManager.getViewManagerConfig('RCTNodeCamera')', '_reactNative.UIManager.getViewManagerConfig' is undefined)
start
NodeCameraModule.js:62:37
onPress
index.js:212:24
touchableHandlePress
TouchableOpacity.js:199:45
_performSideEffectsForTransition
Touchable.js:746:34