Skip to content

Instantly share code, notes, and snippets.

View tsukhu's full-sized avatar
🎯
Focusing

Tarun Kumar Sukhu tsukhu

🎯
Focusing
View GitHub Profile
@tsukhu
tsukhu / .env.development.local
Created June 12, 2018 10:03
react-git-explorer-env
REACT_APP_CLIENT_ID=xxxxxxxxxx
REACT_APP_REDIRECT_URI=http://localhost:3000/
REACT_APP_GATEKEEPER_URI=https://xxxxxxx-xxxxx.herokuapp.com
@tsukhu
tsukhu / index.html
Last active June 29, 2018 08:51
react-git-explorer_index
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
...
<title>React Git Explorer</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
</head>
@tsukhu
tsukhu / StencilJS_integration_with_ReactJS.md
Last active February 22, 2023 17:46
My First Stencil Web Component and integration with React JS

First experience with StencilJS

  • Setup the StencilJS development environment by cloning https://github.com/ionic-team/stencil-component-starter.git
  • The starter comes with a sample web component called my-component. I have used this as a sample and tried to see if I can integrate this with my existing ReactJS app https://github.com/ERS-HCL/react-snack-app .
  • The main goal was to see
    • Evaluate the requirements to integrate with an existing React JS app.
    • See if it works on all browsers after this integration
  • Step 1 - Build Web Component
  • Build the stencil component starter project (after the initial setup steps)
@tsukhu
tsukhu / backup-github.sh
Last active March 2, 2022 16:32 — forked from darktim/backup-github.sh
If you have more than 30 Repositories, the original script will not download all. The github api limits the entries to 30 per page but you can raise that up to 100. I have added a small loop which sets the limit to 90 and cycles through all pages until the listing on a page is empty...
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR="./gitbackup" # where to place the backup files
GHBU_ORG="ERS-HCL" # the GitHub organization whose repos will be backed up
GHBU_UNAME="<CHANGE ME>" # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD="<CHANGE ME>" # the password for that account
GHBU_GITHOST="https://github.com/" # the GitHub hostname (see notes)
GHBU_PRUNE_OLD=true # when `true`, old backups will be deleted
GHBU_PRUNE_AFTER_N_DAYS=3 # the min age (in days) of backup files to delete