Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@soham2008xyz
soham2008xyz / 30_wpcli.config
Created November 2, 2018 07:47 — forked from Azrael808/30_wpcli.config
Elastic Beanstalk extension for installing WP CLI.
commands:
"01":
command: curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o /usr/local/bin/wp
"02":
command: chmod +x /usr/local/bin/wp
@soham2008xyz
soham2008xyz / setup.php
Last active February 12, 2024 21:26 — forked from Xilonz/setup.php
Sage Wordpress Query Loop for Blade templates
<?php
/**
* Add this to your setup.php
* Usage @loop( $wp_query ) or $loop and end with @endloop
* the new $loop variable is available
*/
/**
* Create @loop Blade directive
@soham2008xyz
soham2008xyz / jquery.smooth-scroll-anchor-link.js
Last active September 4, 2018 05:14 — forked from iamravenous/jquery.smooth-scroll-anchor-link.js
Automatically detects the hash and scroll smoothly to anchor link with URL hashchange

Laravel 5 Interview Questions

This is a compiled list of Laravel interview questions. If Laravel is an engineer's PHP framework of choice, they definitely have potential to be a good candidate, but a lot of new PHP engineers have been into Laravel too. The framework itself is very welcoming to newcomers, which makes it easy for beginners to feel that they know more than they really do.

General Questions

1. How long have you been using Laravel?

This question can help decide what level of questions to ask.

@soham2008xyz
soham2008xyz / git-deployment.md
Last active April 1, 2018 11:06 — forked from noelboss/git-deployment.md
Simple automated Git Deployment using Hooks

Simple automated Git Deployment using Git Hooks

Here are the simple steps needed to create a deployment from your local Git repository to a server based on this in-depth tutorial.

How it works

You are developing in a working copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like Deepl.io to act upon a webhook that's triggered the deployment service.

But here, we add a "bare" git repository that we create on the production server and publish our branch (i.e. master) directly to that server. This repository acts upon the push event using a 'git-hook' to move the files into a deployment directory on your server. No need for a middle man.

This creates a scenario where there is no middle

@soham2008xyz
soham2008xyz / ideas.md
Created February 6, 2018 10:57 — forked from tsaqib/ideas.md
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@soham2008xyz
soham2008xyz / wp-bootstrap-gallery.php
Created January 24, 2018 17:41 — forked from najlepsiwebdesigner/wp-bootstrap-gallery.php
make wordpress gallery responsive with bootstrap grid
@soham2008xyz
soham2008xyz / front-end-curriculum.md
Created January 19, 2018 13:27 — forked from stevekinney/front-end-curriculum.md
Front-end Curriculum Draft

Module 1

  • Semantic markup
  • HTML standards mode and quirks mode
  • HTML fundamentals
    • Classes and IDs
  • CSS fundamentals
    • Selectors
    • Resets and normalizers
    • The box model
@soham2008xyz
soham2008xyz / laravel-queue.service
Created January 19, 2018 10:36 — forked from thomasjsn/laravel-queue.service
Laravel queue worker using systemd.
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service
[Unit]
Description=Laravel queue worker