Skip to content

Instantly share code, notes, and snippets.

View debjit's full-sized avatar

Debjit Biswas debjit

View GitHub Profile
@debjit
debjit / gitpoddockerlog.txt
Created September 8, 2022 05:32
Failed gitpod Docker installation Log
▀ checking prerequisites (0s)
▀ checking prerequisites (0s)
▄ checking prerequisites (0s)
▄ checking prerequisites (1s)
▀ checking prerequisites (1s)
▀ checking prerequisites (1s)
▄ checking prerequisites (1s)
SUCCESS checking prerequisites
@debjit
debjit / NextJS Index.js SEO File
Created April 7, 2022 16:31
NextJS Index.js SEO File
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title key="title">Debjit's Index Blog</title>
<meta name="description" key="description" content="Debjits Index Blog" />
@debjit
debjit / nextjs_seo_html_tags
Last active April 28, 2022 10:46
NextJS SEO _app.js template.
import Head from "next/head";
import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
return (
<Head>
<title key="title">Debjit Blog</title>
<meta name="author" key="author" content="debjit.in" />
<meta
name="keywords"
@debjit
debjit / tests.yml
Created July 5, 2021 06:12 — forked from rubenvanassche/tests.yml
A simple Laravel testing workflow for GitHub Actions
name: Tests (PHP)
on: [push]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# Title of Your Project [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20this%20cool%20project&url=https://github.com/Cool/Project&hashtags=project,opensource)
![Github License](https://img.shields.io/badge/license-MIT-green)
![Code Coverage](https://img.shields.io/badge/coverage-90%25-green)
![React Version](https://img.shields.io/badge/react-v16.12.0-blue.svg)
![example](https://mdn.mozillademos.org/files/10529/inspector.png)
#### Description of your project
@debjit
debjit / select2-cascade.js
Created September 5, 2020 06:29 — forked from ajaxray/ select2-cascade.js
Making Select2 (4.x) list boxes cascading / dependent. Options of a select2 list box will be loaded/refreshed by ajax based on selection of another select2 list box.
/**
* A Javascript module to loadeding/refreshing options of a select2 list box using ajax based on selection of another select2 list box.
*
* @url : https://gist.github.com/ajaxray/187e7c9a00666a7ffff52a8a69b8bf31
* @auther : Anis Uddin Ahmad <anis.programmer@gmail.com>
*
* Live demo - https://codepen.io/ajaxray/full/oBPbQe/
* w: http://ajaxray.com | t: @ajaxray
*/
var Select2Cascade = ( function(window, $) {
@debjit
debjit / xiaomiprotocol.md
Created February 17, 2019 14:01 — forked from pbaja/xiaomiprotocol.md
Xiaomi Yi JSON Protocol Reverse Enginnering

Xiaomi Yi JSON Protocol Reverse Engineering

First, connect to your camera via WiFi. Then you can send data to 192.168.42.1:7878

HELP IS APPRICIATED

Get token

Request:

{"msg_id":257,"token":0}
@debjit
debjit / ngrok-copy
Created April 26, 2018 12:28 — forked from mlsteele/ngrok-copy
Copy the url of the active ngrok connection to the clipboard.
#!/usr/bin/env bash
# Copy the url of the active ngrok connection to the clipboard.
# Usage:
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard.
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard.
if [[ "$1" == "-u" ]]; then
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "http://.*?ngrok.io" -oh`
else
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "https://.*?ngrok.io" -oh`
@debjit
debjit / auto-ovpn.sh
Last active August 29, 2015 14:21 — forked from lowstz/auto-ovpn.sh
#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
### Thanks Xream's Work XD
# if you don't have several vpn servers to select, you can comment following line
# and use your openvpn config file name to replace "${host}.ovpn" in while loop.
read -p "Select the host: " host