Skip to content

Instantly share code, notes, and snippets.

@Pietruz3000
Pietruz3000 / Fur Elise - Arduino Buzzer
Created April 16, 2017 13:20
This is the program for arduino of the song "Fur Elise". You can play it with an arduino, a buzzer and, if you want, a led. Enjoy the program! :)
// Musical Notes
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
@scottopell
scottopell / port_forward_dg2470A.md
Last active January 18, 2024 20:19
How to forward a port on Arris DG2470A

Port forwarding should be fairly straightforward, but what Arris doesn't tell you is that you need to have the firewall on in order for port forwarding settings to have an effect.

I don't know why the "firewall off" option would mean "block everything", but as best I can tell, that was the case on my Arris DG2470A (from RCN, could be some custom firmware that RCN uses?)

So step by step:

@parmentf
parmentf / GitCommitEmoji.md
Last active May 2, 2024 20:29
Git Commit message Emoji
@adrian-enspired
adrian-enspired / PDO_mysql.connect.php
Last active November 17, 2021 03:16
how to make a new mysql connection with PDO.
<?php
$host = "db hostname";
$dbname = "db name";
$user = "db username";
$pass = "db password";
$charset = "UTF8MB4"; // if your db does not use CHARSET=UTF8MB4, you should probably be fixing that
$dsn = "mysql:host={$host};dbname={$dbname};charset={$charset}";
@csharpforevermore
csharpforevermore / AuthoHotKeyList.txt
Created April 27, 2014 15:50
AutoHotKey Key List
Key Name Resulting Keystroke
{F1} - {F24} Function keys. For example: {F12} is the F12 key.
{!} !
{#} #
{+} +
{^} ^
{{} {
{}} }
{Enter} ENTER key on the main keyboard
{Escape} or {Esc} ESCAPE
@vladkorotnev
vladkorotnev / gbrandom.py
Created November 30, 2012 14:40
Random Gelbooru grabber
#!/usr/bin/env python
# -- CONFIG ------
isMacQL = 1 # mac quicklook for the lulz
debugLogging = 1 # logs
rootUrls=["http://gelbooru.com","http://vladkorotnev.dyndns.org:8081/art","http://safebooru.org/"]
# ----------------
try:
from BeautifulSoup import BeautifulSoup
except:
@brnrc
brnrc / stingy_steam.py
Last active July 31, 2020 22:04
Script to get a free steam key
# Fetches an url and scan the html document for a regex pattern (the STEAM KEY)
# monitoring if the KEY changes and copying it to the system's clipboard.
#
# Output:
# CBT2J-R0GID-8FAJI -> 12:20
# K5RJH-86RH7-W0Y2W -> 12:25
# IV37H-83VGQ-MT9BF -> 12:30
# WY2T9-Q35ZV-8LYCX -> 12:35
# MR7BH-RJ3VJ-MADHW -> 12:40
# HBQPD-BFCG7-06577 -> 12:45
/**
* Created by IntelliJ IDEA.
* User: Milan Vít (Cellane)
* Date: May 12, 2010
* Time: 2:16:44 PM
*/
import java.text.MessageFormat;
public class MatrixDeterminant {