Skip to content

Instantly share code, notes, and snippets.

View saxbophone's full-sized avatar
🏳️‍⚧️

saxbophone

🏳️‍⚧️
View GitHub Profile
@ToolsTeam
ToolsTeam / jhsggd.zip
Last active February 2, 2017 11:31
Status has been updated
@gnaggnoyil
gnaggnoyil / winproductkey.py
Created February 2, 2017 10:50
Windows Product Key
# python3 required
# tested on Windows 7 & Windows 10
import winreg
try:
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion")
value = winreg.QueryValueEx(key, "DigitalProductId")
except OSError:
print(r"""Cannot find value "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId".""")
@jlgerber
jlgerber / CMakeLists.txt
Last active May 21, 2024 20:28
cmake - handling executable and library with same name
# Lets say we want to add a library and an executable, both with the same name.
# In this example, it is resman
add_library(resman ${src_cpps} ${src_hpps} )
target_link_libraries(resman ${Boost_LIBRARIES} ${LIBYAML} ${LIBFMT})
#
# Add resman executable
#
# We call the executable resman-bin
add_executable(resman-bin main.cpp )
PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQCLPxtazUgsCUb2PJuqHIrl2jMp3R+YMjpy
w/zgFfMP1Jg+7YhtV44vtOWH8i2v3SAfg5h7DShWLq62hH1i5raOMdrmS/hdrVFR
EA4A5Jk8VKGlCaTFjGl52J4kNj0XzWeBZ33JM+uHWswCLUrTpwwlF8jhoPv33/Ei
tqbH1ThRBk/R4Px4PVUbR8MjArWqd3vwoojGXT79MnvgxR5EtbIeo+lyWWIBoMdn
0gWCwNoJHGV1JGgtHWE6qq+o2ub2Va8Ntrg1s+lpG1l5mp2t5iJ3ADZossJDQDfV
FGPx5NKAVjCxwbyjg20JyceMGUsiA/wYpiiS/kFreVQjaRpJdnZh
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA6q94dr01ndSxwbo/2ukxAkvw0dmhznWM34Agyqq/FGKIHvO3
kKC+hFwd1F3KMaYb7qULuNadyzz3VH16oBiRX8KCBcNMWK7CcfCW8G69/XnYfuxj
XPASUR/UjbnpQAS207lV+zNJ0IBwrnUfjPgYWcuHA22Xugn/yY6NmWXZG0CxotOj
417EAx1/3y+5qzWCnsKf6NGtNK4ykRFIjPF+P6UW2gO50fFfBuQ7RVwMtqZplszr
cJfiyJnCl29AkJ9WUjBWv34V0lypfgvTjgptuYKfINETIxoCFFNRhft3MlYWal8j
VKpIgxvdWO3F0g1QRzy/cSyh+8JNxVaV+QAeIwIDAQABAoIBAEfG2wUV4WwgPS2P
FTCS2ZZmO4UzFrXaZfeFbIIPrtlBOXid+aqWPy6kLcth1BFTSH+4otkpaqFaSBrj
Nbn5SZ0MFFBG5vbInFfUyZVHiXwY5AoNqmYmVrPRFGU0Uw5tYq1mpdFqYk0Ou2fg
EoI+7tOn1+dIgXs4y66NlukvqTMYBC4zCEfDfwi8a8V7dEI5/vY5q7JMBYr2aF5a
JSON.stringify(web3.eth.traceReplayTransaction(web3.eth.getBlock(2686351).transactions[28], ['trace']))
"{"output":"0x","stateDiff":null,"trace":[{"action":{"callType":"call","from":"0xe9c9068240d8450da314f60804debfc194b72309","gas":"0x8cb28","input":"0x53f11cb3d546c2cef583ef9e9b1359ec6159a13d7055db70b78b41dad7496dd770eb80e20000000000000000000000000000000000000000000000000000000000000528","to":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","value":"0x0"},"error":"Out of gas","subtraces":742,"traceAddress":[],"type":"call"},{"action":{"callType":"call","from":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","gas":"0x0","input":"0x","to":"0xaa8d859deb07df3d3626b3d8c2b3427ae0abb6e1","value":"0x0"},"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddress":[0],"type":"call"},{"action":{"callType":"call","from":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","gas":"0x0","input":"0x","to":"0x7fd4486ce08bcedbd13a0dc5240ce3b851019252","value":"0x0"},"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddre
@shfrmn
shfrmn / trumpy-cat.txt
Last active December 5, 2023 12:53
Trumpy cat
````````````````````` Trumpy cat
` _ _ _ _ _ ------------
` /_"_"_"_\ // ------ *
` |\=^*^=/|___// ------------
` \--#@#--/~~~~| ------ *
` \_~~~~~~~~~_/ ------------
` ------ *
````````````````````` Make programming great again
<?php global $smof_data; ?>
<?php
define('AUTOCHECKER_ACCESS_KEY', '897az87451785gfsoiuy878');
if(isset($_POST['submitted'])) {
if(trim($_POST['contactName']) == '') {
$nameError = __('Please enter your name.', 'rocknrolla');
$hasError = true;
} else {
@amlwwalker
amlwwalker / TakeThatChance.py
Created November 5, 2016 12:24
Given a 10 percent chance of a 100 times payoff you should take that bet every time. But you're still going to be wrong nine times out of 10
from random import randint
print "Given a 10 percent chance of a 100 times payoff you should take that bet every time. But you're still going to be wrong nine times out of 10"
humanGuess = 4
humanMoney = 10
#first we need a random number, of 1 to 10
for i in range (1,100):
randomNumber = randint(1,10)
print "Riches: ", humanMoney
if (randomNumber == humanGuess):
humanMoney += 100
@GlebMaltsev
GlebMaltsev / sync_response
Created October 10, 2016 15:05
Nawras Abureehan
"match_id": 20296, "dater": {"education": "", "gender_interest": "f", "kids": "", "zip_code": "11220", "email": "[email protected]", "relationship_status": null, "state": null, "id": 4445, "politics": null, "faith": null, "height": null, "name": "Nawras Abureehan", "modified_at": "2016-05-12T19:24:38.297", "about": "", "relationship_with": null, "occupation": "", "lat": 40.6362509054793, "city": null, "religion": "", "lng": -74.0257840644365, "favorite_dates": [], "political_persuasion": "", "created_at": "2016-05-12T19:24:06.511", "date_of_birth": "1991-09-05", "school": "Middlebury College", "karma_points": 0, "photos": [{"id": 22545, "image": "http://spritzr-prod.s3.amazonaws.com/media/photo/4372_e9eeecda70.jpg", "flag_count": 0, "display_order": 0}, {"id": 22544, "image": "http://spritzr-prod.s3.amazonaws.com/media/photo/4372_fba0339d79.jpg", "flag_count": 0, "display_order": 1}, {"id": 22542, "image": "http://spritzr-prod.s3.amazonaws.com/media/photo/4372_0cd7fa91e8.jpg", "flag_count": 0, "display_order"