Skip to content

Instantly share code, notes, and snippets.

@wayne-o
wayne-o / delete.js
Created June 29, 2022 13:56 — forked from thameera/delete.js
Bulk delete Auth0 users
#!/usr/bin/env node
/*
* Install dependencies with:
* npm install request request-promise-native bottleneck
*
* Replace YOUR_TENANT_NAME, MGMT_TOKEN, and FILENAME
* The input file (FILENAME) should contain a list of user ids to delete, separated by newlines
*/
@wayne-o
wayne-o / core-dns-patch.yml
Created October 13, 2021 11:03
resolve external dns to internal service
apiVersion: v1
data:
Corefile: |
.:53 {
errors
health
rewrite stop {
name regex ids\.test2\.fundacion\.io sonaticket-ids.test2-fundacion-io.svc.cluster.local
answer name sonaticket-ids\.test2-fundacion-io\.svc\.cluster\.local ids.test2\.fundacion\.io
}
0442e3c1cb73e8e6aadca166304723c2df62fe1311b2cb65fa97109eae79253077d6288e0094f96a51e04388005788d3d7dbea154e0dd3af4a5b3a217586bb5ceb
@wayne-o
wayne-o / cs
Created February 19, 2018 14:46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
@wayne-o
wayne-o / components.my-uploader.js
Last active December 24, 2016 13:46
dropzone issue
import Ember from 'ember';
export default Ember.Component.extend({
method: null,
headers: null,
url: null,
success: null,
onSuccess() {
this.get('success')();
}
@wayne-o
wayne-o / DebugDialogController.cs
Created January 28, 2014 10:54
DebugDialogController
public class DebugDialogController : DialogViewController
{
DebugFloatElement elem;
DebugViewModel vm;
public DebugDialogController(): base(null)
{
vm = new DebugViewModel();
@wayne-o
wayne-o / DebugEntryElement.cs
Created January 28, 2014 10:53
DebugEntryElement
public class DebugEntryElement : EntryElement{
Action<UITextField, EventArgs> onChange;
public DebugEntryElement(string caption, string placeholder, string value, Action<UITextField, EventArgs> onChange) : base(caption, placeholder, value)
{
this.onChange = onChange;
}
protected override UITextField CreateTextField(RectangleF frame)
{
@wayne-o
wayne-o / DebugRadioElement.cs
Created January 28, 2014 10:52
DebugRadioElement
public class DebugRadioElement : RadioElement {
Action<DebugRadioElement, EventArgs> onCLick;
public DebugRadioElement (string s, Action<DebugRadioElement, EventArgs> onCLick) : base (s) {
this.onCLick = onCLick;
}
public override void Selected (DialogViewController dvc, UITableView tableView, NSIndexPath path)
{
base.Selected (dvc, tableView, path);
@wayne-o
wayne-o / DebugViewModel.cs
Created January 28, 2014 10:50
DebugViewModel
public class DebugViewModel{
NSUserDefaults userDefaults = NSUserDefaults.StandardUserDefaults;
string debugDbSize;
public string DebugDbSize
{
get
{
if (string.IsNullOrEmpty(debugDbSize))
{
@wayne-o
wayne-o / DebugFloatElement.cs
Created January 28, 2014 10:51
DebugFloatElement
public class DebugFloatElement : Element
{
static NSString skey = new NSString("FloatElementEx");
const float LockImageWidth = 32.0f;
const float LockImageHeight = 32.0f;
/// <summary>
/// Set a string to reserve a certain amount of space for the
/// caption used in the FloatElement. Useful when there is no
/// initial caption to show - allows space to be reserved for