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')();
}
define('sonatribe-ui/pods/event/lineup/route', ['exports', 'ember', 'ember-infinity/mixins/route', 'ember-computed-decorators'], function (exports, Ember, InfinityRoute, observes) {
'use strict';
function _createDecoratedObject(descriptors) { var target = {}; for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = true; descriptor.configurable = true; if ('value' in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === 'function') { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError('The decorator for method ' + descriptor.key + ' is of the invalid type ' + typeof decorator); } } } if (descriptor.initializer) { descriptor.value = descriptor.initializer.call(target); } Obj
@wayne-o
wayne-o / compued.js
Last active November 13, 2015 09:19
import Ember from 'ember';
import InfinityRoute from "ember-infinity/mixins/route";
import computed from 'ember-computed-decorators';
import observes from 'ember-computed-decorators';
export default Ember.Route.extend(InfinityRoute, {
slug: null,
selected: [],
model() {
var slug = this.modelFor('event').params.slug;
import Ember from 'ember';
import ajax from 'ic-ajax';
var inject = Ember.inject;
export default Ember.Service.extend({
sonatribeSession: inject.service(),
getSearchSuggestons(session, term, eid){
return this._getSuggestionsHash(term, eid)
.then((hash) => {
return Ember.run(function(){
{
upcomingEvents: [
{
name: "Glastonbury 2015",
start: "2015-06-23T23:00:00.000Z",
address1: null,
country: null,
postcode: null,
mainImage: null,
slug: "glastonbury-2015"
@wayne-o
wayne-o / m2.cs
Created September 18, 2015 07:43
using google
class Program
{
private const string Xpath = "//*[@id=\"cwos\"]";
static void Main(string[] args)
{
var val = string.Empty;
var num1 = Convert.ToInt32(args[0]);
var num2 = Convert.ToInt32(args[1]);