Skip to content

Instantly share code, notes, and snippets.

View rajibmitra's full-sized avatar
💥
may the force be with you!

rajib rajibmitra

💥
may the force be with you!
View GitHub Profile
@rajibmitra
rajibmitra / settings.json
Created January 2, 2024 19:52 — forked from ixahmedxi/settings.json
My settings.json
{
"workbench.startupEditor": "none",
"workbench.iconTheme": "moxer-icons",
"workbench.colorTheme": "Aura Dark",
"workbench.settings.editor": "json",
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
@rajibmitra
rajibmitra / vagrant-vmware-tech-preview-apple-m1-pro.md
Created December 8, 2022 19:40 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

UPDATE November 20, 2022: VMWare Fusion 13

VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.

Summary

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated

@rajibmitra
rajibmitra / kubectl get nodes --by-age
Created July 30, 2021 15:09 — forked from rbtr/kubectl get nodes --by-age
sort kubernetes nodes by age
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime"
@rajibmitra
rajibmitra / build.sh
Created September 25, 2018 19:36 — forked from jonah-williams/build.sh
Command line iOS project builds and over-the-air distribution
#!/bin/bash
# https://gist.github.com/949831
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/
# command line OTA distribution references and examples
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html
@rajibmitra
rajibmitra / mysql-docker.sh
Created May 31, 2018 09:29 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
<?php
date_default_timezone_set('America/Detroit');
//include autoloader to make sure all files are included
include '../autoloader.inc.php';
usergrid_autoload('Apigee\\Usergrid\\Client');
//initialize the SDK
$client = new Apigee\Usergrid\Client('crainsdetroit','cdbapp');
//Need to login before doing anything for the sake of permissions
$client->login("USERNAME","PASSWORD");