Skip to content

Instantly share code, notes, and snippets.

View vineeth030's full-sized avatar

Vineeth Vijayan vineeth030

  • BEO
  • Kochi
View GitHub Profile
@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active June 7, 2025 02:22
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@Adelysnet
Adelysnet / PdfManager.php
Created March 20, 2023 14:06
Reproduce wrong header len estimation / is_file crash
<?php
namespace App\Service;
use Knp\Snappy\Pdf;
use Throwable;
class PdfManager
{
protected $pdf;
@jeffochoa
jeffochoa / Response.php
Last active May 28, 2025 23:44
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;
@brankoajzele
brankoajzele / gist:1442434
Created December 7, 2011 11:12
Magento Google Maps Geocoding Customer Addresses
<?php
/**
* @author Branko Ajzele <[email protected]>
*/
class Inchoo_Extension_Helper_Gmap extends Mage_Core_Helper_Abstract
{
const GOOGLE_MAPS_HOST = 'maps.google.com';
const CONFIG_PATH_GOOGLE_MAPS_API_KEY = 'inchoo_google/maps/api_key';
public function getGoogleMapsApiKey()