Skip to content

Instantly share code, notes, and snippets.

View mahammedzkhan's full-sized avatar

Zishan Khan mahammedzkhan

View GitHub Profile
@mahammedzkhan
mahammedzkhan / team-guidelines.md
Created December 17, 2025 14:51
Team guidelines proposal
  • I propose that we use the following Definition of Done:
    • Code was written according to the standards that we have within
    • Code review has been done
    • Acceptance criteria met
    • Automated tests have been written if applicable
    • Ticket has been tested by QA or another team member and test evidence has been added to the ticket
    • Product owner accepts the user story
  • I propose that we use the following Definition of Ready:
    • Ticket has been discussed during a refinement (plan of attack)
    • Ticket has been estimated (user story)
@mahammedzkhan
mahammedzkhan / tech-debt.md
Created December 17, 2025 14:49
Technical debt

Strategy

Every time you make changes to a file for a ticket / bugfix, you clean up some of the basic technical debt:

  • Dead / unused code
  • Commented code
  • Fix linting issues
  • Remove any if using TypeScript and use types
  • Seperation of concerns (Vue only)
  • Remove duplicate code

Dead code

@mahammedzkhan
mahammedzkhan / pre-request.js
Created May 20, 2022 16:03
Pre-request script for authentication in Postman requests
const username = pm.environment.get("authUser");
const password = pm.environment.get("authPass")
const options = {
url: 'https://api.be/v1/auth/token',
method: 'POST',
header: {
'Authorization': 'Basic ' + btoa(username + ':' + password)
}
};
@mahammedzkhan
mahammedzkhan / zsh_aliases.sh
Last active February 15, 2022 10:03
Aliases
# software
alias cat="bat"
alias ls="exa"
alias pstorm="phpstorm"
alias ea="pstorm ~/.zsh_aliases"
# folders
alias pre="cd ~/Documents/Projects"
# git
@mahammedzkhan
mahammedzkhan / vue.config.js
Last active March 4, 2019 12:31
Vue-cli config for building to a single js file and no hashing and no chunks
// vue.config.js
module.exports = {
filenameHashing: false,
configureWebpack: {
output: {
filename: 'js/app.build.js',
},
optimization: {
splitChunks: false
},
@mahammedzkhan
mahammedzkhan / generate-certificate.sh
Created October 29, 2018 07:56
Generate self signed certificate
# generate self signed certificate for local environments
openssl genrsa -des3 -passout pass:x -out host.key 2048
openssl rsa -passin pass:x -in host.key -out server.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
@mahammedzkhan
mahammedzkhan / component.js
Last active February 6, 2020 20:21
React templates for Jetbrains IDE's
import React from 'react';
export default class ${NAME} extends React.Component{
render() {
return(
<div />
)
}
}