Skip to content

Instantly share code, notes, and snippets.

View dvins's full-sized avatar
🚀
Ad Astra!

David Vins dvins

🚀
Ad Astra!
View GitHub Profile
@andreialecu
andreialecu / README.md
Last active April 6, 2023 17:44
Sentry NestJS GQL instrumentation
@philippefutureboy
philippefutureboy / RollupOrderedDrilldownTable.jsx
Created January 14, 2020 01:07
Cube.js Client Wrapper Gist
import React from 'react';
import * as R from 'ramda';
import cube from '../../utils/cube';
import TableContainer from './Table';
import { getAllResultSetDataFromResultSetDict } from '../../utils/cube.utils';
import {
sortByRowRollupValue,
sumColumnRollupRecordsToGrandTotalRecord,
} from '../helpers/rollupOrderedPatientAgeGroupDrilldownTableHelpers';
@skyzyx
skyzyx / homebrew-gnubin.md
Last active November 9, 2024 06:16
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@bsamuel-ui
bsamuel-ui / serverless-deploy-user.yaml
Last active June 5, 2019 17:20
Cloudformation template to deploy permissions for deploying a serverless project.
AWSTemplateFormatVersion: 2010-09-09
Description: >
Constructs a managed IAM policy to deploy a serverless project.
This template assumes the stack is being deployed in the current region and account.
You can then attach this policy to other IAM objects, such as users or roles.
Based on the work done in: https://github.com/serverless/serverless/issues/1439
@weavenet
weavenet / delete_all_object_versions.sh
Created May 4, 2015 05:21
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
public class TravisSpecs {
[Test]
public void WhenTravisGetsIntoAnotherFight() {
new ScenarioBuilder().
Given(TheStoryOfWhatHappenedToTravis())
When(TravisGetsInToANewFight()).
Then(HeRuns()).
Assert();
}