Skip to content

Instantly share code, notes, and snippets.

@wayne-o
wayne-o / delete.js
Created Jun 29, 2022 — forked from thameera/delete.js
Bulk delete Auth0 users
View delete.js
#!/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 Oct 13, 2021
resolve external dns to internal service
View core-dns-patch.yml
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
}
View genesis_public_key
0442e3c1cb73e8e6aadca166304723c2df62fe1311b2cb65fa97109eae79253077d6288e0094f96a51e04388005788d3d7dbea154e0dd3af4a5b3a217586bb5ceb
View cs
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;
View components.my-uploader.js
import Ember from 'ember';
export default Ember.Component.extend({
method: null,
headers: null,
url: null,
success: null,
onSuccess() {
this.get('success')();
}
View generated.js
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
View compued.js
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;
View hash.js
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(){
View gist:dada0dc414caa6fd772f
{
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 Sep 18, 2015
using google
View m2.cs
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]);