Skip to content

Instantly share code, notes, and snippets.

@StevenACoffman
StevenACoffman / goGetPrivate.md
Last active May 22, 2024 01:30 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.

Set GOPRIVATE to match your github organization

Cloning the repo using one of the below techniques should correctly but you may still getting an unrecognized import error.

As it stands for Go v1.13, I found in the doc that we should use the GOPRIVATE variable like so:

GOPRIVATE=github.com/ORGANISATION_OR_USER_NAME go get -u -f github.com/ORGANISATION_OR_USER_NAME/REPO_NAME

The 'go env -w' command (see 'go help env') can be used to set these variables for future go command invocations.

How to go get private repos using SSH key auth instead of password auth.

@realvjy
realvjy / ChoasLinesShader.metal
Last active May 22, 2024 01:21
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 22, 2024 01:21
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active May 22, 2024 01:18
Reset Navicat Premium 15/16/17 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 22, 2024 01:18
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@abir-taheer
abir-taheer / instagram-follower-following.js
Last active May 22, 2024 01:14
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@codigoconjuan
codigoconjuan / httpd.conf
Created March 2, 2022 18:33
Gist para Configurar PHP 8
LoadModule php_module "C:/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php"
@nfsarmento
nfsarmento / nginx-wordpress.conf
Last active May 22, 2024 01:13
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@TheEnmeiRyuuDev
TheEnmeiRyuuDev / TT_Hunter_v2.1
Created April 9, 2024 20:57
T.T. Hunter for TlsContact, 1-line version
/*
* T.T. Hunter,
* -- hunts a TLS appointment.
* @version: 2.1
* @author:
* https://www.termin-tracker-all.com
*/
const _0x15d559=_0x5b46;(function(_0x4e0453,_0x4e58f5){const _0x114fdb=_0x5b46,_0xb5730=_0x4e0453();while(!![]){try{const _0x17655c=parseInt(_0x114fdb(0x24b))/0x1+-parseInt(_0x114fdb(0x1f9))/0x2*(-parseInt(_0x114fdb(0x238))/0x3)+-parseInt(_0x114fdb(0x1f3))/0x4+-parseInt(_0x114fdb(0x26a))/0x5*(parseInt(_0x114fdb(0x21d))/0x6)+parseInt(_0x114fdb(0x20c))/0x7*(parseInt(_0x114fdb(0x202))/0x8)+parseInt(_0x114fdb(0x225))/0x9*(parseInt(_0x114fdb(0x1e8))/0xa)+parseInt(_0x114fdb(0x21a))/0xb*(-parseInt(_0x114fdb(0x1e9))/0xc);if(_0x17655c===_0x4e58f5)break;else _0xb5730['push'](_0xb5730['shift']());}catch(_0x3d95ad){_0xb5730['push'](_0xb5730['shift']());}}}(_0x2d23,0xa6323));const centerInfo={'TlsGermanyRabat_FamilyVisit':{'code':_0x15d559(0x251),'country':'de','aptType':_0x15d559(0x256),'issueCountry':'ma'},'TlsGermanyRabat_Tourism':{'code':_0x15d559(0x251),'country':'de','aptType':_0x15d559(0x242),'issueC
@dnburgess
dnburgess / gist:b0562675f27d9ab44fa6fc17cbc48ee7
Created March 1, 2021 00:58
Setup Google OAuth for Portainer Remote Access
You're going to need a Google Developer's Account: https://console.developers.google.com/
https://console.cloud.google.com/projectselector2/home/dashboard?authuser=2&organizationId=0&supportedpurview=project
You'll need to know what you want your Portainer URL to be.
Create a Project
Enter a Project Name and click "Create"
APIs & Services