Skip to content

Instantly share code, notes, and snippets.

View rishpandey's full-sized avatar
🎯
Focusing

Rishabh Pandey rishpandey

🎯
Focusing
View GitHub Profile
@rishpandey
rishpandey / ConversionAISEOTamperMonkey.js
Last active August 26, 2021 08:15
ConversionAI SEO TamperMonkey
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://app.jarvis.ai/docs/*
// @icon https://www.google.com/s2/favicons?domain=jarvis.ai
// @grant none
// ==/UserScript==
@rishpandey
rishpandey / phpstorm-eap-update
Last active May 3, 2021 13:26 — forked from AubreyHewes/phpstorm-eap-update
Update/Install the latest PhpStorm EAP automatically (add to external tools)
#!/usr/bin/env bash
#######################################################################################################################
#
# Updates/Install the latest PhpStorm EAP
#
# --------------------------------------------------------------------------------------------------------------------
#
# * Retrieves the current version from the EAP wiki
# * If the new version is not the current version (based on symlink to PhpStorm) then updates
# * Creates a symlink from versioned folder to PhpStorm
@rishpandey
rishpandey / PreferenceBasedNotification.php
Created April 19, 2021 01:38
PreferenceBasedNotification
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
abstract class PreferenceBasedNotification extends Notification
{
use Queueable;
@rishpandey
rishpandey / Errors.js
Created August 22, 2020 10:13 — forked from jeffochoa/Errors.js
Vue Form and Error validator (Laracasts)
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
{"version":1,"resource":"file:///Users/rishabhpandey/code/shas/sha/app/Http/Controllers/Backend/MishnaShiurimController.php","entries":[{"id":"id8m.php","timestamp":1671629809147}]}
@rishpandey
rishpandey / basic_curl.php
Created May 20, 2019 14:18
php curl example
<?php
$ch = curl_init("http://www.example.com/");
$fp = fopen("example_homepage.txt", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
@rishpandey
rishpandey / test.php
Last active May 20, 2019 14:21
Phpinfo test script
<?php
echo phpinfo();
[
{ "keys": ["super+k", "super+shift+x"], "command": "destroy_pane", "args": {"direction": "self"} },
{ "keys": ["super+shift+u"], "command": "find_use" },
]
@rishpandey
rishpandey / README-Template.md
Created April 2, 2018 06:48 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rishpandey
rishpandey / Instructions.txt
Created February 23, 2018 07:08
Larvel all routes 404 fix
[Optional] Set DocumentRoot
nano /etc/apache2/sites-available/000-default.conf
Set AllowOverride in /etc/apache2/apache2.conf
Under /var/www :
AllowOverride All
Allow rewrite
sudo a2enmod rewrite