Skip to content

Instantly share code, notes, and snippets.

View itsbohara's full-sized avatar
🇳🇵

Mahesh itsbohara

🇳🇵
View GitHub Profile
@itsbohara
itsbohara / countries.json
Created October 20, 2023 07:05 — forked from portapipe/countries.json
Json containing countries name, codes, currency and base64 flags
[{
"id": 1,
"name": "Afghanistan",
"isoAlpha2": "AF",
"isoAlpha3": "AFG",
"isoNumeric": 4,
"currency": {
"code": "AFN",
"name": "Afghani",
"symbol": "؋"
@itsbohara
itsbohara / GridSpawner.cs
Created November 22, 2022 11:11 — forked from dbokser/GridSpawner.cs
Random Non-Overlapping grid placement in Unity
// algorithm referenced from http://www.gamasutra.com/view/feature/1648/random_scattering_creating_.php?print=1
// check out the video of it in action: https://youtu.be/iKjvFp5qa7A
using UnityEngine;
using System.Collections;
public class GridSpawner : MonoBehaviour {
public bool update;
@itsbohara
itsbohara / jwtRS256.sh
Created August 12, 2022 08:59 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
<?php
/**
* Plugin Name: WP REST API Subdomain
* Plugin URI: https://wordpress.org/plugins/wp-rest-api-subdomain/
* Author: Mark McWilliams
* Author URI: https://profiles.wordpress.org/markmcwilliams/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Description: Move your RESTful API to a subdomain in WordPress
@itsbohara
itsbohara / MaterialAppInitalRoute.dart
Created August 16, 2019 03:55 — forked from dereklakin/MaterialAppInitalRoute.dart
MaterialApp using initialRoute and onGenerateRoute
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: '/login',
onGenerateRoute: generateRoute,
title: 'Test App',
);
}