Skip to content

Instantly share code, notes, and snippets.

@felipemeamaral
felipemeamaral / install-go-using-asdf-for-vscode-on-macos.md
Last active November 6, 2024 10:08
Install Go using asdf on macOS

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.

@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
@reegnz
reegnz / README.md
Last active October 15, 2024 20:10
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.

@GLMeece
GLMeece / Steps_to_Terminal_Enlightenment_on_a_Mac.md
Last active November 2, 2024 19:03
Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit)
@minamijoyo
minamijoyo / hoge.rb
Last active September 2, 2024 09:35
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"
@ramantehlan
ramantehlan / README-Fancy.md
Last active November 12, 2024 02:33
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

@mikepruett3
mikepruett3 / shell-setup.ps1
Last active November 6, 2024 04:07
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@joegasper
joegasper / Set-DnsClient2CloudFlareDnsService
Created April 2, 2018 01:03
Set Windows client to use CloudFlare DNS Service 1.1.1.1
#See: https://1.1.1.1/ and https://www.cnet.com/news/cloudfare-new-1111-dns-privacy-tool-would-speed-your-internet-too/
#Run in elevated PowerShell command shell
#Store current DNS servers
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Get-DnsClientServerAddress | Select ServerAddresses -expand ServerAddresses | Set-Content -Path $env:USERPROFILE\OriginalDNSservers.txt
$Display current DNS servers
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Get-DnsClientServerAddress
#Specifiy CloudFlare 1.1.1.1 service IP addresses (IPv4/IPv6)
$DNSservers = ('1.1.1.1','1.0.0.1','2606:4700:4700::1111','2606:4700:4700::1001')
#Set client DNS servers to CloudFlare DNS servers
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Set-DnsClientServerAddress -ServerAddresses $DNSservers
@a7ul
a7ul / jamf.md
Last active September 23, 2024 16:25
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions