Skip to content

Instantly share code, notes, and snippets.

Avatar

Prafulla Kuamr Sahu PrafullaKumarSahu

View GitHub Profile
View list-of-curl-options.txt
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
View gist:889dd4d8a6d45ef01484c1971e1be5fe
Dell@DESKTOP-KU6707L MINGW64 /d/work/www/laravel6
$ composer require laravel/telescope --dev
Using version ^2.1 for laravel/telescope
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing moontoast/math (1.1.2): Loading from cache
- Installing laravel/telescope (v2.1): Downloading (100%)
Writing lock file
View footer.blade.php
View gist:b7827ceec428c7786ce9aa4b01f5f672
Session Statistics
[ 2147483654 ] https://test.bigbluebutton.org/html5client/join?sessionToken=qvy44s1oo2eanqzf Wed Dec 26 2018 11:45:43 GMT+0530 (India Standard Time)
▲ hide details
PeerConnection ID: 1545804865540000 (id=2147483654 url=https://test.bigbluebutton.org/html5client/join?sessionToken=qvy44s1oo2eanqzf)
ICE Stats
Trickled candidates (arriving after answer) are highlighted in blueLocal Candidate Remote Candidate Component ID ICE State Priority Nominated Selected Bytes sent Bytes received
106.51.36.204:17124/undefined(prflx) 192.99.0.24:26381/undefined(host) 1 succeeded 7962083765457520000 true true 2070352 19884
192.168.1.36:59415/undefined(host) 192.99.0.24:26381/undefined(host) 1 inprogress 8646913474934211000 false false 0 0
192.168.1.36:59348/undefined(host) 192.99.0.24:31495/undefined(host) 1 failed 4341473339236123000 false false 0 0
106.51.36.204:17372/undefined(prflx) 192.99.0.24:31495/undefined(host) 1 succeeded 4341473338699219500 true false 0 0
@PrafullaKumarSahu
PrafullaKumarSahu / log
Created Dec 26, 2018
BBB error while screenshare
View log
(registry/INFO) insert 'ice' (registry) succeeded: ice
(registry/INFO) insert 'ice.pref' (registry) succeeded: ice.pref
(registry/INFO) insert 'ice.pref.type' (registry) succeeded: ice.pref.type
(registry/INFO) insert 'ice.pref.type.srv_rflx' (UCHAR) succeeded: 0x64
(registry/INFO) insert 'ice.pref.type.peer_rflx' (UCHAR) succeeded: 0x6e
View gist:e6cae198a012cb7d1a74e24753a289be
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ packer
-bash: packer: command not found
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
^C
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
Content-Length mismatch, received 709535 bytes out of the expected 2264473
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Using version ^1.4 for bitfumes/laravel-packer
./composer.json has been updated
Loading composer repositories with package information
View gist:daf14317976afe832154cbd39fe9e058
<?php
/*
* jQuery File Upload Plugin PHP Class
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
View bp-profile-tab-and-subnav.php
function add_animal_tabs() {
global $bp;
bp_core_new_nav_item( array(
'name' => 'Animals',
'slug' => 'animals',
'parent_url' => $bp->displayed_user->domain,
'parent_slug' => $bp->profile->slug,
'screen_function' => 'animals_screen',
'position' => 200,
@PrafullaKumarSahu
PrafullaKumarSahu / gist:c522c263389678f5ff27d1dfd368cb05
Created Nov 25, 2016
How to remove action hooking non static method and class can not be instantiated
View gist:c522c263389678f5ff27d1dfd368cb05
//http://stackoverflow.com/questions/40788732/how-to-remove-action-hooking-non-static-method-and-class-can-not-be-instantiated/40790864#40790864
/**
* Do a hard unregister of an object's callback for the specified event name
* and priority level.
*
* In WordPress, the callback key (or unique ID) is generated using the hash ID of
* the object concatenated with the method name. In the event that you do not have
* the object itself, then we use this hard approach to first first the callback
View blank-test-plugin.php
<?php
/**
* Plugin Name: Blank Test Plugin
* Author: Prafulla kumar Sahu
*
*/
?>