Skip to content

Instantly share code, notes, and snippets.

View ditsuke's full-sized avatar

Tushar ditsuke

View GitHub Profile
@ditsuke
ditsuke / fly.toml
Last active August 16, 2022 15:43
Phoenix deployment on fly.io
View fly.toml
app = "sample-ephoenix"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
dockerfile = "prod.Dockerfile"
[env]
PORT = "8081"
View _README.md

Better MCQ.Amizone ☀️

This bookmarklet allows you to navigate Amizone Multiple Choice Questions (MCQs) using only your keyboard, without having to use your mouse. It also enables copy/pasting.

Installation

To install the bookmarklet:

  1. Open your web browser (Firefox or Chrome).
  2. Create a new bookmark by clicking the star icon in the address bar.
@ditsuke
ditsuke / _guide.md
Last active March 13, 2022 10:34
Setup a Joomla! Development Environment on Windows or Linux
View _guide.md

Setting up A Development Environment For Joomla!

Operating Systems/Base Environments Covered

  • Windows 10/11
  • Ubuntu-20.04 over WSL2, Windows 10/11
  • Ubuntu-20.10

Preparing an Environment

Written primarily in PHP on the backend, Joomla! requires the PHP interpreter along with a web server to render and serve the web interface over HTTP/S. On the frontend, it extensively uses CSS for styling and JavaScript for functionality and improved UX. Recently there's also been a slow transition moving some parts of the Joomla! web interface over to the VueJS JavaScript Framework.

@ditsuke
ditsuke / docker-compose.yml
Created October 31, 2021 06:42
Docker Compose - Joomla Dev
View docker-compose.yml
version: '3'
services:
joomla:
image: ditsuke/joomla-dev-container:0.3
container_name: joomla-dev
restart: always
depends_on:
- joomla-mysql
ports:
@ditsuke
ditsuke / php.ini
Last active October 31, 2021 07:52
PHP_min.conf
View php.ini
extension_dir=ext
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd.dll
extension=php_gettext.dll
extension=php_intl.dll
extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_exif.dll ; Must be after mbstring as it depends on it
@ditsuke
ditsuke / vaxx_analysis_vaers.ipynb
Created August 7, 2021 23:06
VAXX_ANALYSIS_VAERS.ipynb
View vaxx_analysis_vaers.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ditsuke
ditsuke / profile.ps1
Last active July 9, 2021 16:33
[Powershell Function] Open Windows Terminal Tab in Working Directory Without Opening a New Window
View profile.ps1
<#
.SYNOPSIS
Open Windows Terminal in current working directory, without opening a new window.
#>
Function wtpwd() {
Param (
# A valid Windows Terminal profile
[Parameter(Mandatory=$false, Position=0, ParameterSetName='profile')]
[Alias('p')]
[string] $profile = "Windows Powershell"