Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Jeremy Landon Golapadeog

:shipit:
View GitHub Profile
@Golapadeog
Golapadeog / azure-devops-board-show-more-in-new-column-fixer.js
Created Dec 7, 2020
Azure Devops Board - New items visibility fixer with Tampermonkey
View azure-devops-board-show-more-in-new-column-fixer.js
// ==UserScript==
// @name Azure Devops Board - New items visibility fixer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Sometimes the column "New" in the board doesn't show all work items, it's a bug but MS has no current plan to fix that https://developercommunity.visualstudio.com/idea/759643/in-boards-always-display-all-cards-ie-never-displa.html?childToView=1215466#comment-1215466
// @author https://github.com/Golapadeog
// @match https://dev.azure.com/[ACCOUNT]/[PROJECT]/_boards/board/t/[TEAM]/Stories
// @grant none
// ==/UserScript==
@Golapadeog
Golapadeog / signandverify.js
Created Sep 5, 2020
sign a message and verify a signature with node-rsa
View signandverify.js
/// go to https://8gwifi.org/RSAFunctionality?rsasignverifyfunctions=rsasignverifyfunctions&keysize=2048 to generate a pair of key for testing
const rsa = require('node-rsa');
const privateKey = '-----BEGIN RSA PRIVATE KEY-----\n' + ... + '-----END RSA PRIVATE KEY-----';
const publicKey = '-----BEGIN PUBLIC KEY-----\n' + ... + '-----END PUBLIC KEY-----';
const message = "hello.bonjour.여보세요";
const messageBuffer = Buffer.from(message, 'utf8');
// sign message with the private key
@Golapadeog
Golapadeog / generate-app-android.yml
Last active Aug 21, 2020
Generate flutter apps with Azure DevOps
View generate-app-android.yml
parameters:
- name: appFolder # ex : ./src/MyApp
type: string
- name: flutterVersion # ex : 1.17.5
type: string
- name: appVersion # ex : 1.10.1
type: string
- name: appBuildNumer # ex : 303 (/!\ the build number must be incremental when the package is published on the store)
type: string
@Golapadeog
Golapadeog / AppleTokenValidator.cs
Created Jul 25, 2020
Validates the JWT Tokens send by apple during authentication
View AppleTokenValidator.cs
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Tokens;
/// <summary>
View postman-polling.js
const addFunction = (func) => {
pm.globals.set('sf-' + func.name, "" + func);
}
const getRetryKey = () => {
return 'retry_[' + request.name + '][' + request.id + ']';
}
const retryClear = () => {
const retryKey = eval(pm.variables.get('sf-getRetryKey'))();
@Golapadeog
Golapadeog / add-inbound.ps1
Created Jun 1, 2020
add ip of build agent on azure network security group
View add-inbound.ps1
$resourceGroupName = 'my-rg'
$nsgName = 'my-nsg'
$ruleName = 'AllowBuildServerInBound-temp'
$ports = '*'
$agentIp = Invoke-RestMethod http://ipinfo.io/json | Select -exp ip
az network nsg rule create --resource-group $resourceGroupName --nsg-name $nsgName --name $ruleName --priority 500 --access Allow --direction Inbound --source-address-prefix $agentIp --source-port-ranges '*' --destination-address-prefixes '*' --destination-port-ranges $ports
@Golapadeog
Golapadeog / EnumerableExtensions.cs
Last active Jun 20, 2020
Invokes an asynchronous action with delay on each item in the collection in parallel
View EnumerableExtensions.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
public static class EnumerableExtensions
{
/// <summary>
/// Invokes an asynchronous action with delay on each item in the collection in parallel