Skip to content

Instantly share code, notes, and snippets.

@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@letanure
letanure / estados-cidades.json
Last active April 23, 2024 17:02
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@sundowndev
sundowndev / GoogleDorking.md
Last active April 23, 2024 16:59
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@lawrenceching
lawrenceching / install-frp-as-systemd-service.sh
Last active April 23, 2024 16:53
Install frp as systemd service
# Update on 2024/04/13
# 1. Improved OS compatibility: try wget and then curl for downloading files.
#
# Update on 2024/01/26
# 1. Thanks to GitHub user @aka-Ani, this script now will install latest version of frp:
# https://gist.github.com/lawrenceching/41244a182307940cc15b45e3c4997346?permalink_comment_id=4851742#gistcomment-4851742
# 2. Use .toml conf file as .ini became lagacy
#
# Update on 2023/06/19
# 1. frp no longer provide systemctl service file. This script creates frpc/fprs systemctl service file by itself
@tomdaley92
tomdaley92 / README.md
Last active April 23, 2024 16:52
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@ekreutz
ekreutz / ansible_variable_precedence.md
Last active April 23, 2024 16:52
Ansible variable precedence (order, hierarchy)
@sambacha
sambacha / find_optimizer_runs.sh
Last active April 23, 2024 16:52
Find Optimizer Runs for Solidity Compiler
#!/usr/bin/env bash
set -e
# Constants, run forge build --sizes first to see existing build size
# TODO Have a MAX_SIZE value for current build configuration?
TARGET_SIZE=6.250
MIN_RUNS=200
# Explanation of MAX_RUNS: Etherscan does not support verifying contracts with more than 10,000,000 optimizer runs.
# Using a higher number might not affect the bytecode output, but verification might require "spoofing" the optimizer run count.
@portal7
portal7 / MonthToString.cs
Created October 20, 2016 15:36
Month to String with Culture Spanish / Mes a partir de una Fecha en C# con cultura Español
public string MonthName(int month)
{
DateTimeFormatInfo dtinfo = new CultureInfo("es-ES", false).DateTimeFormat;
return dtinfo.GetMonthName(month);
}
// Use
DataTime fecha = Convert.ToDateTime("16/04/2010");
@code-boxx
code-boxx / 0-PHP-APPOINTMENT.MD
Last active April 23, 2024 16:50
PHP MYSQL Appointment Booking

PHP MYSQL APPOINTMENT BOOKING SYSTEM

https://code-boxx.com/appointment-booking-php-mysql/

NOTES

  1. Create a database and import 1-database.sql.
  2. Change the database, "slots", and date settings in 2-lib-appo.php.
  3. Access 3a-select.php in the browser.

LICENSE

Copyright by Code Boxx

@adibhanna
adibhanna / keymap.json
Created April 18, 2024 17:55
zed keymaps
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"ctrl-w z": "workspace::ToggleZoom",
"ctrl-w t": "terminal_panel::ToggleFocus",
"g ]": "editor::GoToDiagnostic",
"g [": "editor::GoToPrevDiagnostic",
"g r": "editor::FindAllReferences",
"shift-k": "editor::Hover",