Skip to content

Instantly share code, notes, and snippets.

@ramantehlan
ramantehlan / README-Fancy.md
Last active March 2, 2025 00:00
README template I use for most of my projects.

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index

@minamijoyo
minamijoyo / hoge.rb
Last active February 28, 2025 20:48
Using GitHubPrivateRepositoryReleaseDownloadStrategy removed in brew v2
require "formula"
require_relative "lib/private_strategy"
class Hoge < Formula
homepage "https://github.com/yourcompany/hoge"
url "https://github.com/yourcompany/hoge/releases/download/v0.1.0/hoge_v0.1.0_darwin_amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "6de411ff3e4b1658a413dd6181fcXXXXXXXXXXXXXXXXXXXX"
head "https://github.com/yourcompany/hoge.git"
version "0.1.0"
@GLMeece
GLMeece / Steps_to_Terminal_Enlightenment_on_a_Mac.md
Last active March 6, 2025 10:16
Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit)
@reegnz
reegnz / README.md
Last active April 14, 2025 21:47
Implementing a jq REPL with fzf

Implementing a jq REPL with fzf

Update: I created jq-zsh-plugin that does this.

One of my favourite tools of my trade is jq. It essentially enables you to process json streams with the same power that sed, awk and grep provide you with for editing line-based formats (csv, tsv, etc.).

Another one of my favourite tools is fzf.

@MaKyOtOx
MaKyOtOx / gist:cd3157e3aae5a250c2cfcfb8ff0caf63
Created October 12, 2020 14:20
Install OpenVAS (Greenbone) 20.08 on Ubuntu 20.04
## Installation script for OpenVAS/Greenbone 20.08 on Ubuntu 20.08
## Tested for PatrowlEngines
## See https://patrowl.io
## Based on:
# https://kifarunix.com/install-and-setup-gvm-11-on-ubuntu-20-04/#create-gvm-service-unit-file
# https://github.com/yu210148/gvm_install/blob/master/install_gvm.sh
apt-get update && apt-get upgrade
useradd -r -d /opt/gvm -c "GVM User" -s /bin/bash gvm
mkdir /opt/gvm

Install Go using asdf for Visual Studio Code on macOS

I had a lot of issues trying to install Golang on macOS using asdf package manager to develop on Visual Studio Code.

So here's the steps needed to setup it properly:

Open Terminal and install asdf with this command:

You have to install Homebrew before running the installation command.