Skip to content

Instantly share code, notes, and snippets.

Avatar

Tushar ditsuke

View GitHub Profile
@ditsuke
ditsuke / fly.toml
Last active Aug 16, 2022
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 keyboard-nav-at-mcq.amizone.js
/**
* Keyboard navigation for mcq.amizone.net
* Navigate through questions with right/left ; h/l ; a/d
* @todo keys to select options but that's left for later because I couldn't test. Feel free to submit a patch!
*/
document.addEventListener('keyup', (e) => {
const keysToNext = ['ArrowRight', 'keyL', 'keyD'];
const keysToPrev = ['ArrowLeft', 'keyH', 'keyA'];
const btnNext = document.querySelector('button[ng-click="loadNextQue(currentQuestion);"]');
@ditsuke
ditsuke / _guide.md
Last active Mar 13, 2022
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 Oct 31, 2021
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 Oct 31, 2021
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 Aug 7, 2021
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 Jul 9, 2021
[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"