Skip to content

Instantly share code, notes, and snippets.

@rupe120
rupe120 / gist:92200f38b92dd85721378b9a03707f77
Last active October 8, 2021 10:33
Git pull with submodules
# This syntax is compatible with both Powershell and Bash
git pull
git submodule update --init --remote
git submodule foreach -q --recursive 'git switch $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'
git submodule foreach -q --recursive 'git pull'
2021-06-21T13:21:43.223Z|info : amplify status core
2021-06-21T13:21:43.358Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2021-06-21T13:22:56.131Z|info : amplify-provider-awscloudformation.display-helpful-urls.showCognitoSandBoxMessage(["feetransparencyappe1177226"])
2021-06-21T13:22:56.332Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-06-21T13:22:56.335Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-06-21T13:22:56.336Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-06-21T13:23:11.398Z|info : amplify env core checkout dev
2021-06-21T13:23:35.122Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-06-21T13:23:35.148Z|info : amplify-provi
@rupe120
rupe120 / SearchQrPage.xaml
Last active December 7, 2020 13:49
ZXing scanner with Xamarin Forms FreshMVVM
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyApp.Pages.SearchQrPage"
xmlns:zxing="clr-namespace:ZXing.Net.Mobile.Forms;assembly=ZXing.Net.Mobile.Forms">
<ContentPage.Content>
<Grid>
<zxing:ZXingScannerView x:Name="scannerView" />
<zxing:ZXingDefaultOverlay x:Name="scannerOverlay"
TopText="Hold your phone up to the QR code"
using Microsoft.AspNetCore.Html;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
namespace MyApp.HtmlHelpers
{
@rupe120
rupe120 / PageInit.js
Created March 29, 2017 13:53
autoComplt with AJAX
function initializeLeadUserInput() {
var autoCompleteInput = document.getElementById('auto-complete-input');
window.autoComplt.enable(autoCompleteInput, {
hintsFetcher: function (text, openAutocompleteList) {
$.ajax({
url: '/getautocompletelist',
type: 'post',
data: { search: text },
dataType: 'json',

Keybase proof

I hereby claim:

  • I am rupe120 on github.
  • I am rupe (https://keybase.io/rupe) on keybase.
  • I have a public key whose fingerprint is 53D7 F629 3421 01C7 3766 DBEC 24AF 75EA BB90 5D15

To claim this, I am signing this object:

(function() {
'use strict';
/**
* Based on the ui.bootstrap.typeahead control from ui.bootstrap 0.12.0
*
* Has dependencies on the typeaheadParser directive and ui.bootstrap.position module from the ui.bootstrap module
*/
window.appIndependent