Skip to content

Instantly share code, notes, and snippets.

@Sh4yy
Sh4yy / clx.go
Created April 25, 2024 20:39
Generate CLI commands for common tasks.
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"runtime"
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active April 27, 2024 17:22
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@gitaarik
gitaarik / git_submodules.md
Last active April 27, 2024 17:22
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@franciscocpg
franciscocpg / README.md
Created December 13, 2022 12:24
Configure fingerprint in garuda linux

Full instructions here

Steps

  • Install fprint: yay -S fprint
  • Follow the Restrict enrolling instructions to make sure that only root users can add fingerprints
  • Add the line auth sufficient pam_fprintd.so to the beginning of the following files:
    • /etc/pam.d/sudo
    • /etc/pam.d/system-local-login
  • /etc/pam.d/kde
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 17:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@sisoe24
sisoe24 / startup_app.py
Created July 24, 2021 02:10
Nuke PySide2 startup template app that can be launched directly inside Nuke or in your environment.
# coding: utf-8
from __future__ import print_function
import sys
from PySide2.QtCore import (
Qt,
QSettings,
QCoreApplication
)
@xLight23
xLight23 / CompleteDiscordQuest.md
Last active April 27, 2024 17:20
Complete Recent Discord Quest / Genshin Impact Badge

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@pratikbutani
pratikbutani / PathUtils.java
Created September 9, 2019 05:53
Get Path from URI or URI from Path Utils.
public class PathUtils {
/**
* To get URI from Path
*
* @param context context
* @param file file
* @return Uri
*/
public static Uri getUriFromPath(Context context, File file) {
String filePath = file.getAbsolutePath();
@neilsmithdesign
neilsmithdesign / swift-ui-protocol-view-models.swift
Last active April 27, 2024 17:13
SwiftUI views with protocol interfaces to view models.
import SwiftUI
/// View model protocol
protocol ViewModel: ObservableObject {
var count: Int { get }
func increase()
}
/// Concrete implementation
class MyViewModel: ViewModel {
@jerieljan
jerieljan / btt-screenshot.sh
Created May 22, 2021 13:32
Screenshot OCR with BetterTouchTool on MacOS
#!/usr/bin/env bash
# Usage:
# - Install `tesseract` with `brew install tesseract`
# - In BetterTouchTool, create a trigger of your choice.
# (I recommend a Keyboard Shortcut with Cmd+Shift 6)
# - Add an Execute Shell Script / Task action
# - Paste this script.
# NOTE: You'll need to authorize BTT to the Screen Recording permission in Security and Privacy at System Preferences