Skip to content

Instantly share code, notes, and snippets.

View tonyalaribe's full-sized avatar
🎯
Focusing

Anthony Alaribe tonyalaribe

🎯
Focusing
View GitHub Profile
receivers:
otlp:
protocols:
grpc:
endpoint: :4317
include_metadata: true
http:
endpoint: :4318
include_metadata: true
@tonyalaribe
tonyalaribe / otelcol-internal.yaml
Last active May 16, 2025 23:12
otelcol-internal
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
grpc:
endpoint: 0.0.0.0:4317
# The hostmetrics receiver is required to get correct infrastructure metrics in Datadog.
hostmetrics:
collection_interval: 10s
using CloudNative.CloudEvents;
using Google.Cloud.PubSub.V1;
using Google.Apis.Auth.OAuth2;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
// Copyright 2023 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@tonyalaribe
tonyalaribe / gist:1a5ebef485ed4512d33f2b8777b81400
Last active April 26, 2023 08:31
xcm-emulator of communication between relay and statemine
// Copyright 2023 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
require('lspconfig').tailwindcss.setup({
filetypes = {"haskell", "html", "javascript"},
settings = {
tailwindCSS = {
includeLanguages = {
haskell = "html"
},
experimental = {
classRegex = {"class_ \"([^\"]*)"}
}
@tonyalaribe
tonyalaribe / init.toml
Created August 20, 2018 08:41
Spacevim.d
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
@tonyalaribe
tonyalaribe / collections.go
Last active June 22, 2018 16:25
Badger collections
const (
 USERSCOLLECTION = "Users"
 STORESCOLLECTION = "Stores"
 USERSTORESCOLLECTION = "UserStores"
 PRODUCTCOLLECTION = "Products"
)
sportsPlayersSleeping(event) {
var sportsPlayersSleeping0 = performance.now();
let that = this;
// let dance = $("#dance");
//i'm simply replacing the jquery based access to dance, with a vanilla javascript form. This should improve performanace
let dance:Element = document.getElementById("dance")
if (!that.template) {
/**
* COMMON WEBPACK CONFIGURATION
*/
const path = require('path');
const webpack = require('webpack');
module.exports = (options) => ({
entry: options.entry,
output: Object.assign({ // Compile into js/build.js