Skip to content

Instantly share code, notes, and snippets.

View Klaudioz's full-sized avatar

Claudio Canales Klaudioz

View GitHub Profile
@parmindersk
parmindersk / docker_cmds.sh
Last active February 19, 2019 01:18
Shortcut commands for docker
# Remove exited instances
alias drm="docker ps -a | grep 'Exit\|Created' | cut -d ' ' -f 1 | xargs docker rm"
# View Network details
alias dinw="docker network inspect bridge"
# List images
alias dlsi="docker images"
# List containers
alias dpsa="docker ps -a"
# Remove given image
dirm(){ docker image rm $1 --force; }
@dz
dz / 1. How to Use.md
Last active April 2, 2020 18:06
Slack Fluidapp Customizations

DZSlack

What is this?

The following files add some view keybindings and other functional and styling changes to Slack when used inside of a Fluid app.

Specifically:

  1. <cmd>-number will bring you to the respective starred channel. For example, if you have 4 starred channels, <cmd-1> will bring you to the first starred channel, <cmd-2> to the second, etc.
Hey everybody, it's Eric Torbert, co founder partner, village global, a network driven venture firm. And this is venture stories, a podcast covering topics related to tech business with world leading experts.
Everybody, we're now accepting applications for a network catalyst accelerator program founders in our program have gone on to raise money from Lux spark a16z slow first, round Susa homebrew mavar on obvious and effects signifier and many more, Learn more at apply at village global.vc slash network catalyst. One note I wanted to add this podcast is since recording it, we've made an investment in Rowan researches seed round and are delighted to have them in the village global portfolio started from the podcast now we're here. Hey everybody, welcome to another episode of venture stories by building
Global here today joined by a very special guest Connor white Sullivan, CEO and co founder of Rome research, Connor. Welcome to the podcast. Thanks for having me. So kind of by way of introduction, you know, I
bookmarklet = () =>
(async () => {
// https://gist.github.com/subtleGradient/9b1eb9b6356c861ee3b7395c11bab9d2
/*!
Copyright 2020 Thomas Aylott <oblivious@subtlegradient.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@ironcladlou
ironcladlou / clusterctl
Created October 8, 2019 15:00
clusterctl
#!/usr/bin/env bash
set -euo pipefail
function print_usage_exit() {
echo "usage: clusterctl <create|delete> <platform> <name>"
exit 1
}
WHAT="${1:-}"
PLATFORM="${2:-}"
#/bin/bash
set -euo pipefail
WHAT="${1:-}"
PLATFORM="${2:=}"
NAME="${3:-}"
CLUSTER_DIR="$HOME/clusters/${PLATFORM}-${NAME}"
if [ -z "$NAME" ]; then
echo "usage: create-cluster <cluster|config> <platform> <name>"
@dankush
dankush / linux2linux.md
Last active October 6, 2020 17:09
K8s Sisense assets collector

K8s Sisense assets collector

Supported:

  • Cubes dbfarms
  • MongoDB
  • Zookeeper
  • Plugins

Steps for the backup process:

@software-programmer
software-programmer / add-scheduled-trigger.ps1
Last active January 25, 2021 20:13
This script can be used inside TeamCity to add a scheduled trigger to another build configuration, to be run in X days time. Note that this does have admin / admin embedded as the credentials. http://evsoftware.co.uk
# Set Build Configuration Id of the one we want to set the trigger on
$BuildTypeId = "StackOverflowSamples_TriggerSecondBuildAfterXDays_AfterXDaysBuild"
$NumberOfDays = 3
# Create Credentials using built in user / password
$ApiCredentials = New-Object System.Management.Automation.PSCredential("admin", (ConvertTo-SecureString "admin" -AsPlainText -Force))
# Delete any existing triggers
Invoke-RestMethod -Credential $ApiCredentials -Uri "%teamcity.serverUrl%/httpAuth/app/rest/buildTypes/id:$BuildTypeId/triggers" -Method PUT -ContentType "application/xml" -Body "<triggers/>";
@poweroftrue
poweroftrue / kubernetes_add_service_account_kubeconfig.sh
Last active May 10, 2021 13:31 — forked from xtavras/kubernetes_add_service_account_kubeconfig.sh
create kubernetes service account and corresponding kubeconfig
#!/usr/bin/env bash
# script was taken from https://gist.github.com/innovia/fbba8259042f71db98ea8d4ad19bd708 and adjusted with "apply_rbac" function and colorized output
set -e
set -o pipefail
# Colors
RED="\e[01;31m"
@microbug
microbug / plots-pause.sh
Created May 14, 2021 21:28
Pause Chia plots (Linux)
#!/usr/bin/env bash
# Send SIGSTOP (pause) to all plot processes
ps aux | grep "[c]hia plots create" | awk '{print $2}' | xargs kill -STOP