Skip to content

Instantly share code, notes, and snippets.

View QAInsights's full-sized avatar
💻
Breaking Stuffs

NaveenKumar Namachivayam ⚡ QAInsights

💻
Breaking Stuffs
View GitHub Profile
@joejordanbrown
joejordanbrown / gh-cleanup-releases-tags.sh
Last active November 29, 2023 00:51
GitHub Cli - Delete all releases and tags in repo.
#! /bin/sh
for num in `gh release list 2>/dev/null | awk '{print $1}'`; do
gh release delete $num -y
done
for num in `gh api repos/:owner/:repo/tags | jq -r '.[].name'`; do
gh api repos/:owner/:repo/git/refs/tags/${num} -X DELETE
echo '✓ Deleted tag' $num
done
@Anon-Exploiter
Anon-Exploiter / .zshrc
Created September 17, 2020 12:31
.zshrc of Kali Linux 2020.3 including the lit prompt
# ~/.zshrc file for zsh non-login shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt ksharrays # arrays start at 0
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
@MichaelSimons
MichaelSimons / RetrievingDockerImageSizes.md
Last active July 16, 2024 09:04
Retrieving Docker Image Sizes

Retrieving Docker Image Sizes

There are two metrics that are important to consider when discussing the size of Docker images.

  1. Compressed size - This is often referred to as the wire size. This affects how fast/slow images can be pulled from a registry. This impacts the first run experience on machines where images are not cached.
  2. Uncompressed size - This is often referred to as the size on disk. This affects how much local storage is required to support your Docker workloads.

The example commands shown below will work on Windows, MacOS, and Linux.

How to Measure the Compressed Size

@lionelB
lionelB / .jmeter.env
Last active June 1, 2021 02:28
Install jmeter on Ubuntu
export JMETER_HOME=$HOME/apache-jmeter-5.2.1
export PATH=$PATH:$JMETER_HOME/bin/
@xaprb
xaprb / stylebot.css
Last active March 10, 2022 20:38
Make GMail's design less horrendous using Stylebot
#gb {
background-color: #4285f4;
box-shadow: 0 0 4px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.28);
}
.zA.yO {
background-color: white;
box-shadow: 0 0 4px rgba(0,0,0,.14);
}
@renevo
renevo / go-wsl.md
Created September 5, 2018 18:56
Easily update/install Go in wsl

Updating/Installing Go in WSL

Remove

Removes older versions

sudo rm -rf /usr/local/go* && sudo rm -rf /usr/local/go
@ansulev
ansulev / convert-crt-to-jks.sh
Created August 15, 2018 10:22
Convert .CRT y .KEY Certificates to JKS Keystore
# Convert it into pkcs12 format
openssl pkcs12 -export -out jenkins.p12 -inkey certificate.key -in certificate.crt -name "jenkins-cert"
# Create keystore if not exist
https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
# Import
keytool -importkeystore -srckeystore jenkins.p12 -srcstoretype pkcs12 -destkeystore keystore.jks
@aquiseb
aquiseb / Go_Context.go
Last active September 12, 2022 19:54
Golang context package examples
package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"time"
)