Skip to content

Instantly share code, notes, and snippets.

View peepsnet's full-sized avatar

Don peepsnet

  • FL
View GitHub Profile
@Treeki
Treeki / TurnipPrices.cpp
Last active October 15, 2025 12:48
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@wilmardo
wilmardo / jackett.md
Created October 29, 2019 13:08
Jackett add public indexers all in one go

Source: Jackett/Jackett#1576 (comment)

From the Jackett page, click the "add indexer" button so that the pop up window with the full list of indexers appears.

You'll then need to open your browser's development toolbar (in Chrome just hit F12) and go to the JavaScript Console and enter the following:

////hack to add all free indexers in Jackett
$(document).ready(function () {
	EnableAllUnconfiguredIndexersList();
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active August 18, 2025 18:11
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@mfrederickson
mfrederickson / end.gcode
Last active August 1, 2024 14:03
anet a8 start/end gcode
M104 S0 ; turn off extruder
M140 S0 ; turn off heatbed
M107 ; turn off fan
G91 ; relative positioning
G1 Z25 ; raise head 25mm
G90 ; back to absolute positioning
G1 X0 Y220; home X axis and push Y forward
M84 ; disable motors
@1951FDG
1951FDG / asuswrt-merlin.md
Last active September 13, 2025 13:17
Instructions for installing and configuring Squid caching proxy server on Asuswrt-Merlin

Setup Entware on Asuswrt-merlin

Entware is a modern alternative to Optware.

For those unfamiliar with Optware: it's a software repository that offers various software programs that can be installed on your router. They allow you to add new functionality to your router (provided you have the know-how to properly configure them).

Entware system library is specially modified (patched) so that standard linux files that are normally located in /etc directory are now located in /opt/etc/ directory. To simplify things let's consider /etc/passwd file. On Asuswrt-merlin it normally looks something like:

admin:x:0:0:admin:/root:/bin/sh

nas:x:100:100:nas:/dev/null:/dev/null

@istepanov
istepanov / Configuration.h
Last active June 26, 2025 05:54
Marlin Anet A8 config
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@zulfu
zulfu / Font Awesome List in MySQL
Last active March 15, 2023 11:06
Font Awesome icons in mysql you can use your project if you want to access icons from database.
-- phpMyAdmin SQL Dump
-- version 4.5.5
-- http://www.phpmyadmin.net
--
-- Anamakine: localhost:3306
-- Üretim Zamanı: 25 Mar 2016, 02:50:13
-- Sunucu sürümü: 5.5.47-cll-lve
-- PHP Sürümü: 5.6.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@jonsuh
jonsuh / .bash_profile
Last active September 15, 2025 14:54
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
@NaanProphet
NaanProphet / DuckDNS shell script for Asus Merlin Routers
Last active February 19, 2025 10:17
DuckDNS shell script for Asus Merlin Routers
Tested on an ASUS RT-AC56U running Merlin firmware 378.55