Skip to content

Instantly share code, notes, and snippets.

View AJ-7885's full-sized avatar
👑
Crafted with care, coded by coffee, celebrated with champagne

AJ AJ-7885

👑
Crafted with care, coded by coffee, celebrated with champagne
  • Freelancer
  • BirthPlace: Earth, Politics: Freedom, Religion: Love
View GitHub Profile
@AJ-7885
AJ-7885 / sonar-project.properties
Last active August 10, 2018 13:13
sonar-project.properties
# must be unique in a given SonarQube instance
sonar.projectKey=project-key
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=Project Name
sonar.projectVersion=1.0.0
sonar.language=js
sonar.sourceEncoding=UTF-8
@AJ-7885
AJ-7885 / webpack.config.js
Last active August 10, 2018 13:12
webpack.config.js
const path = require('path');
const fs = require('fs');
const nodeModules = {};
fs.readdirSync('node_modules')
.filter((x) => {
return ['.bin'].indexOf(x) === -1;
})
.forEach((mod) => {
nodeModules[mod] = 'commonjs ' + mod;

Component based CSS Architecture

Rules

  1. A component always consists of CSS and HTML (JS is optional)
  2. HTML and JS of a component are located in ComponentName.js
  3. Styles of a component are located in ComponentName.scss
  4. Each CSS class starts with the unique component name
  5. The HTML of each component only uses its own prefixed classes
  6. Components can use other components, but never overwrite their styles
@AJ-7885
AJ-7885 / ideas-01.md
Created August 31, 2018 10:31
ideas 01

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

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@AJ-7885
AJ-7885 / deploy.bat
Created September 20, 2018 21:12 — forked from devbyray/deploy.bat
# How to deploy only your dist folder to gh-pages branch (Github Pages)
git subtree push --prefix dist origin gh-pages
xml = "<?xml version='1.0' encoding='UTF-8'?><RSP request='GetAccount' rc='0'><ACCOUNTINFO AccountID='113824629' HomeCurrency='EUR' Credit='0.00' /><BALANCECUR Currency='EUR' BalCash='98.00' BalGoods='0.00' /><BALANCECURSUB Currency='EUR' SubSystemId='0' BalBonus='0.00' BalPending='0.00' BalBonusPending='0.00' Credit='0.00' BonusGroupId='0' BonusGroupT='' SubSystem='Account' SubSystemType='Root' SubSystemT='Account' /><BALANCECURSUB Currency='EUR' SubSystemId='3' BalBonus='100.00' BalPending='0.00' BalBonusPending='0.00' Credit='0.00' BonusGroupId='3' BonusGroupT='Casino' SubSystem='Casino' SubSystemType='Game' SubSystemT='Casino' /><BALANCESUB Currency='EUR' SubSystemId='0' BalTurnover='0.00' BalBonusTurnover='0.00' BalWinnings='0.00' BalBonusWinnings='0.00' BalBonusReleased='100.00' BalKickback='0.00' BalGrossTurnover='0.00' BalMileage='0.00' BalTickets='1' BalNetTurnover='0.00' BalNetBonusTurnover='0.00' BonusGroupId='0' BonusGroupT='' BonusConvert='0.00' SubSystem='Account' SubSystemType='Root' SubSystemT
var time = new Date();
console.info(time.toUTCString());
time.setMinutes(time.getUTCMinutes() - 60);
console.info(time.toUTCString());
console.info(time.getUTCFullYear() + '-' + (time.getMonth() + 1) + '-' + time.getUTCDate() + ' ' + time.getUTCHours() + ':' + time.getUTCMinutes() + ':' + time.getUTCSeconds());
@AJ-7885
AJ-7885 / .gitignore
Last active January 24, 2024 12:45
Git Ignore template
# misc
.DS_Store
.env
logs/*
!.gitkeep
# Eclipse
.classpath
.project
@AJ-7885
AJ-7885 / convert-m3u8-to-mp4.md
Last active January 24, 2024 12:44
Convert m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4