Skip to content

Instantly share code, notes, and snippets.

View amitjindal's full-sized avatar
🚀
Building SAAS Products

Amit Jindal amitjindal

🚀
Building SAAS Products
View GitHub Profile
@jonathonbyrdziak
jonathonbyrdziak / README.md
Last active May 29, 2020 20:11
Magento 2 CLI Cheat Sheet

List all available commands

php bin/magento --list

Installing/Upgrading Magento

php bin/magento setup:upgrade
php bin/magento deploy:mode:set production

Migrating Magento

@rothschild86
rothschild86 / cf-hubspot.php
Created May 12, 2016 01:46
Caldera Forms to HubSpot CRM integration
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//required plugins: code snippets, caldera forms, caldera forms run action
add_action('consult_req_submitted', 'consult_req_submitted_sync_hubspot');
function consult_req_submitted_sync_hubspot( $data ){
$hubspot_api_key = 'ffffffff-27a0-4591-9b68-27d4bb31ed76';
$hubspot_list_id = '1'; //optional
@yosriady
yosriady / DESIGN.md
Last active January 17, 2025 07:13
OAuth2 Authentication Microservices Design

Auth

Disclaimer

Creating an OAuth2 server is not a task that should be taken lightly. There are many security loopholes that could be exploited, and regular examinations are critical to handle possible vulnerabilities.

Introduction

Auth is an authentication microservice based on the OAuth2 identity delegation protocol.

@Xowap
Xowap / gulpfile.js
Created November 13, 2015 15:59
Gulpfile for Django (single app)
'use strict';
const DIST_DIR = 'gif/static';
const SRC_DIR = 'gif/static_src';
const MAPS_DIR = 'maps';
const JS_SRC = [
'node_modules/angular/angular.js',
'node_modules/angular-route/angular-route.js',
'node_modules/angular-touch/angular-touch.js',
@cmcenearney
cmcenearney / ApacheCommonsEmail.java
Last active May 17, 2018 17:42
email from Java with Apache Commons and Mandrill
/*
simple text emails
looks for environment variables for the Mandrill credentials, as on Heroku for instance
if not found, checks a prop file
*/
import org.apache.commons.mail.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
@miped
miped / magento
Created March 8, 2013 12:28
nginx + php-fpm magento setup
# /etc/nginx/sites-enabled/magento
server {
listen 80;
server_name ec2-184-72-68-219.compute-1.amazonaws.com;
root /var/www/magento/;
access_log /var/log/nginx/magento-access_log;
error_log /var/log/nginx/magento-error_log;
location / {
@elena
elena / Basic MultiValueField MultiWidget
Created October 19, 2012 01:25
Super Basic Django MultiValueField / MutliWidget example
"""
An example of minimum requirements to make MultiValueField-MultiWidget for Django forms.
"""
import pickle
from django.http import HttpResponse
from django import forms
from django.template import Context, Template
from django.views.decorators.csrf import csrf_exempt
@evildmp
evildmp / gist:3094281
Last active June 30, 2023 10:55
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 21, 2025 16:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@arosenhagen
arosenhagen / magento-code-snippets.md
Last active March 22, 2025 08:49
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name