Skip to content

Instantly share code, notes, and snippets.

@chaodonghu
chaodonghu / follow-instagram.js
Last active May 2, 2024 18:22
Google Chrome script that allows user to mass follow instagram users on another's profile
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023
// Please @ me in the comments if this stops working, I will try to get it working again within the month
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWERS" OR "FOLLOWING" on your Instagram profile or a desired user's Instagram profile
// 3. Open developer tools by right clicking on the page and clicking "INSPECT"
// 4. Copy the code below and paste in the developer tools console and press enter to run
// 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background)
package br.com.clairton.validator;
import java.util.InputMismatchException;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import br.com.clairton.annotation.CpfCnpj;
/**
@nicolasdao
nicolasdao / open_source_licenses.md
Last active May 2, 2024 18:16
What you need to know to choose an open source license.
@wouterdebie
wouterdebie / comfyui_macos.sh
Last active May 2, 2024 18:15
ComfyUI MacOS Apple Silicon install
#!/bin/bash
set -e
brew install llvm libomp python@3.11
export CC=$(brew ls --verbose llvm | grep -e 'bin/clang$')
export CXX=$(brew ls --verbose llvm | grep -e 'bin/clang++$')
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
python3.11 -m venv venv
@senseisimple
senseisimple / comment-36.md
Last active May 2, 2024 18:12
dbm to percent conversion - quadratic

In Response to comment: https://www.intuitibits.com/2016/03/23/dbm-to-percent-conversion/#comment-9 regarding the quadratic formula used by WiFi Explorer (based on ipw2200 driver logic) for which a dBm to Percent table is provided.

https://github.com/torvalds/linux/blob/9ff9b0d392ea08090cd1780fb196f36dbb586529/drivers/net/wireless/intel/ipw2x00/ipw2200.c#L4321

Some quick PHP based on the ipw2200 code and a table generating function:

function signal_quality_perc_quad($rssi, $perfect_rssi=-20, $worst_rssi=-85) {
$nominal_rssi=($perfect_rssi – $worst_rssi);
@kizzx2
kizzx2 / docker-compose.yml
Last active May 2, 2024 18:10
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 2, 2024 16:53
thumbsremover v1.6.1.280 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3166082273-3713568515-573898151-1000</user>
<keys>
<key installerType="InnoSetup" displayName="Thumbs Remover" displayVersion="1.6.1.280">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD3423F8-F651-41DE-AA3C-0BF2A2EF505A}_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\Thumbs Remover\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files\Thumbs Remover\unins000.exe" /SILENT]]></UninstallString>
@Lordmau5
Lordmau5 / userscript.js
Last active May 2, 2024 18:07
Keygenmusic.tk Improvements
// ==UserScript==
// @name Keygenmusic.tk Improvements
// @namespace http://tampermonkey.net/
// @version 1.3.1
// @description Various extra functionality and fixes for the amazing site Keygenmusic.tk (Volume slider, Seekbar, Loop toggle, List fixes)
// @author Lordmau5
// @match https://keygenmusic.tk/
// @icon https://www.google.com/s2/favicons?sz=64&domain=keygenmusic.tk
// @grant none
// @require https://unpkg.com/hyperlist@1.0.0/dist/hyperlist.js
@0x199
0x199 / notify.cpp
Last active May 2, 2024 18:04
sceKernelSendNotificationRequest - PS4 OpenOrbis Toolchain Implementation
#include <orbis/libkernel.h>
void SystemNotification(const char* text, const char* iconName = "icon_system");
void SystemNotification(const char* text, const char* iconName) {
OrbisNotificationRequest NotificationBuffer;
NotificationBuffer.type = OrbisNotificationRequestType::NotificationRequest;
NotificationBuffer.unk3 = 0;
NotificationBuffer.useIconImageUri = true;