Skip to content

Instantly share code, notes, and snippets.

@stigzler
stigzler / Save Tests - renamed 4
Last active May 20, 2024 21:05
Save Tests Description
Save Tests Content
updated 21:42
@spalladino
spalladino / falsehoods-that-ethereum-programmers-believe.md
Last active May 20, 2024 21:04
Falsehoods that Ethereum programmers believe

Falsehoods that Ethereum programmers believe

I recently stumbled upon Falsehoods programmers believe about time zones, which got a good laugh out of me. It reminded me of other great lists of falsehoods, such as about names or time, and made me look for an equivalent for Ethereum. Having found none, here is my humble contribution to this set.

About Gas

Calling estimateGas will return the gas required by my transaction

Calling estimateGas will return the gas that your transaction would require if it were mined now. The current state of the chain may be very different to the state in which your tx will get mined. So when your tx i

@unixfox
unixfox / readme.md
Last active May 20, 2024 21:02
How to get IPv4 connectivity on an IPv6 only VPS

Some hosting providers like scaleway allows to remove the IPv4 from the VPS in order to save 1€/month but doing this will result in losing connectivity to the "IPv4 world".
Or you may have ordered a VPS that only has IPv6 connectivity and you want to access to a resource only accessible from the "IPv4 world".
Here is how to gain your access back to the "IPv4 world".

Change your name servers(s) to DNS64 name servers(s)

Note: You may deploy your own DNS64 & NAT64 server on a separate server by following this tutorial (untested): https://packetpushers.net/nat64-setup-using-tayga/.
Note²: You may find a explanation of what is NAT64 and DNS64 on Wikipedia.

  1. Choose a/multiple DNS64 public server(s) that has/have its own NAT64 public service from this list:

Thanks, Thunder, for doing 99% of the work. Source Rhans and Powdinet also contributed a tiny little. I just formatted it.

This is kind of half-assed, but better than plain text.

WRs made after the IL deletion are not included (are there any?).

555 We Tip by Wuzi 3m 50s
8-Track by darles92 4m 27s
A Home In The Hills by Anton103 2m 50s
Against All Odds by LESHENKA 1m 30s

@vratiu
vratiu / .bash_aliases
Last active May 20, 2024 21:01
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset

Traffic

Nick's note: LS docks is rotated just as bridge ones for ExtraAirResistance

Nick's note: 3 of those have additional rotation which I was too lazy to implement, but I assume it's where bridges are so that it's not that weird line but it's actually on the bridges themselves

Destinations

Trucking destinations

Bug

Open links with the mouse wheel (middle mouse button, to open them in a new tab), I cannot make them open in a new tab.

Times

  • Katie home time 12-00 (more precise: 12:00 - 23:59, I won't write times this precise later, just subtract one minute for all times specified) ( source )
  • Time shifts
    • 12h when wasted/busted
    • 6h when saving
@HerrErde
HerrErde / manifest.py
Last active May 20, 2024 21:00
subwaysurfers manifest gen
import hashlib
import json
import os
import sys
# sha1 of file
def calc_sha1(file_path):
sha1 = hashlib.sha1()
with open(file_path, "rb") as f:
while True:

STFU nerd, just tell me the pitfalls

Got bad luck with dem girls? I feel ya, this is what you might be doing wrong. If you fix those, maybe you don't need to fight your way through this shitty doc!

  • Your car is damaged
    • More damage, less sexy.
  • Your car is too far away
    • Not nearby? Not yours!
  • You have a lot of muscle but less than 40%
    • GFs who like muscle actually HATE every bit of muscle you have if you don't meet their demands. They HATE you for having 39% muscle, but LOVE you for it if you meet their 40% threshold
  • You blame fat for your misfortune
    • No. Neither Millie nor Katie care about fat as long as you have less than 50%.
@gaearon
gaearon / index.html
Last active May 20, 2024 20:59
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>