Skip to content

Instantly share code, notes, and snippets.

View preeteshjain's full-sized avatar

Preetesh Jain preeteshjain

View GitHub Profile
@preeteshjain
preeteshjain / S3.php
Created August 8, 2022 11:20 — forked from marcoarment/S3.php
A simple PHP class to perform basic operations against Amazon S3 and compatible services.
<?php
/*
A simple PHP class to perform basic operations against Amazon S3 and compatible
services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules.
Copyright 2022 Marco Arment. Released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@preeteshjain
preeteshjain / install-php-ext.sh
Created July 5, 2022 05:25
Install PHP 8.0 extensions
sudo apt install php8.0-opcache php8.0-pdo php8.0-xml php8.0-bcmath php8.0-calendar php8.0-ctype php8.0-curl php8.0-dom php8.0-exif php8.0-ffi php8.0-fileinfo php8.0-ftp php8.0-gd php8.0-gettext php8.0-iconv php8.0-mbstring php8.0-phar php8.0-posix php8.0-readline php8.0-shmop php8.0-simplexml php8.0-sockets php8.0-sysvmsg php8.0-sysvsem php8.0-sysvshm php8.0-tokenizer php8.0-xmlreader php8.0-xmlwriter php8.0-xsl php8.0-zip
@preeteshjain
preeteshjain / vscode-settings.json
Last active October 8, 2020 11:49
VSCode Personal Settings
{
"editor.fontFamily": "MonoLisa",
"workbench.colorTheme": "Default Light+",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.lineHeight": 50,
"editor.renderLineHighlight": "none",
"editor.detectIndentation": false,
"files.insertFinalNewline": true,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
@preeteshjain
preeteshjain / ecs.yaml
Created November 14, 2019 14:36
My EasyCodingStandard Config
services:
# symfony style rules
PhpCsFixer\Fixer\Basic\BracesFixer:
allow_single_line_closure: true
PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer: ~
PhpCsFixer\Fixer\Operator\NewWithBracesFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer:
tags:
- method
- param
@preeteshjain
preeteshjain / .bash_profile
Created October 2, 2018 18:50
SMD Function
smd() {
if [ $1 = "a" ]
then
homestead up
cd /e/homestead_projects/project
subl .
explorer .
python -mwebbrowser "http://project.test"
python -mwebbrowser "http://phpmyadmin.test/db_structure.php?server=1&db=project_db"
npm run watch
@preeteshjain
preeteshjain / .bash_profile
Last active August 20, 2018 06:31
Handy Bash Shortcuts (For Laravel Homstead)
alias ..="cd .."
# Access Homestead from anywhere
function homestead() {
( cd ~/Homestead && vagrant $* )
}
# Sublime Text shortcut
alias 'subl="/c/Program Files/Sublime Text 3/subl.exe"'

Keybase proof

I hereby claim:

  • I am preeteshjain on github.
  • I am preetesh (https://keybase.io/preetesh) on keybase.
  • I have a public key whose fingerprint is 7A14 5224 6473 0BE0 F8E7 2052 60C2 BB9B 5E82 2555

To claim this, I am signing this object:

@preeteshjain
preeteshjain / maskeleton.css
Last active August 14, 2016 13:32
Skeleton.css with MaterializeCSS Grids
@charset "UTF-8";
/*
* Skeleton V2.0.4
* Copyright 2014, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
@preeteshjain
preeteshjain / The-App-Bag---App-Showcase---Pure-CSS.markdown
Created February 12, 2015 13:41
The App Bag - App Showcase - Pure CSS

The App Bag - App Showcase - Pure CSS

Showcase your app on your website with this simple pen. You can customize this to suit your needs, I always keep the code as simple as possible. Note: Google Maps is icon is used just for demo purpose. This pen uses Font Awesome: http://fontawesome.io

A Pen by Preetesh Jain on CodePen.

License.

@preeteshjain
preeteshjain / The-Rainbow-Wheel---Pure-CSS.markdown
Created February 12, 2015 11:41
The Rainbow Wheel - Pure CSS

The Rainbow Wheel - Pure CSS

A simple, minimalistic styling for Buttons; made with pure CSS. Completely customizable, add your own settings or change the existing ones. Can be used as a button.

More pens coming soon!

A Pen by Preetesh Jain on CodePen.

License.