Skip to content

Instantly share code, notes, and snippets.

View satputekuldip's full-sized avatar
😎

Kuldip Satpute satputekuldip

😎
View GitHub Profile
import os
import shutil
def organize_downloads(downloads_folder):
"""
Organizes files in the downloads folder based on their extensions.
Args:
downloads_folder: Path to the Downloads folder.
@satputekuldip
satputekuldip / .gitlab-ci.yml
Created December 25, 2021 17:33 — forked from antoninbouchal/.gitlab-ci.yml
Deploy APP through SSH to VPS with Gitlab CI
stages:
- build
- deploy
before_script:
- |
# docker variables for name and tag of new image
export DOCKER_TAG="${CI_COMMIT_SHA:0:8}"
export DOCKER_REPO="$CI_REGISTRY_IMAGE"
export DOCKER_IMAGE="${DOCKER_REPO}:${DOCKER_TAG}"
@satputekuldip
satputekuldip / datatables header filter
Created October 13, 2021 10:16
Datatable Filter in headers
```
<script>
$(function () {
let dtButtons = $.extend(true, [], $.fn.dataTable.defaults.buttons)
let deleteButtonTrans = '{{ trans('global.datatables.delete') }}'
let deleteButton = {
text: deleteButtonTrans,
url: "{{ route('products.massDestroy') }}",
className: 'btn-danger',
action: function (e, dt, node, config) {
@satputekuldip
satputekuldip / GST.md
Last active March 6, 2021 10:21
GST Tax Inclusive and Exclusive Calculation

Tax Exclusive

Formula

$NetAmount = $GrossAmount * ((100 + $TAX) / 100)

Where

  • $NetAmount = Total Amount With TAX
  • $GrossAmount = Actual Amount
  • $TAX = TAX in Percentage

Example

@satputekuldip
satputekuldip / Deployment of Django App
Last active August 24, 2020 01:35
Deployment of Django on Shared Hosting
Deployment of Django App on Shared Hosting
Like A2Hosting