Skip to content

Instantly share code, notes, and snippets.

View retzger's full-sized avatar
💭
focusing at home working

wesley hope retzger

💭
focusing at home working
View GitHub Profile
@retzger
retzger / MineBlock.java
Created December 13, 2019 14:23 — forked from ssaurel/MineBlock.java
Mining a Block in Java for toutsurlebitcoin.fr
public void mineBlock(int difficulty) {
nonce = 0;
while (!getHash().substring(0, difficulty).equals(Utils.zeros(difficulty))) {
nonce++;
hash = Block.calculateHash(this);
}
}
e60b4753fbbfa7275faab7f1817a307ab10bcacd5cb73d097e4b4e5fbc19e21f7c93edd0bc3399f4542ec1e81a3714d23eca8f175bf2694327b46f8e25e07839
@retzger
retzger / bbr_on_vultr_debian_8.sh
Created December 9, 2019 07:02 — forked from wynemo/bbr_on_vultr_debian_8.sh
bbr vultr debian8
#debian 8 on vultr
# install kernel
sudo echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
sudo apt-get update
apt-get install -t jessie-backports linux-image-amd64
#reboot
update-grub
reboot
@retzger
retzger / ArrayVSNSArrayVS[AnyObject].md
Created December 9, 2019 07:01 — forked from shantaramk/ArrayVSNSArrayVS[AnyObject].md
Difference between Array VS NSArray VS [AnyObject]

Architecture Design Pattern
It's High level structure(skeleton) to meet technical requirements It's Low level structure to meet technical requirements
It depict how the global component are interact with each other. It depict how internal component interact with each other its : Design pattern.
It force on What and where not how: What we are doing and where that is going to live. It force on how to do: requirement come how A and B talk to each other.
Example: MVC, 3-tier Example: Factory Design Pattern
This file has been truncated, but you can view the full file.
2391 ##linux Channel website: https://freenode.linux.community | Pastebin: https://paste.linux.community | Need an op? Join ##linux-ops | CoC? ##linux-offtopic, please.
1931 #python Don't paste, use https://paste.pound-python.org/ | http://bit.ly/psf-coc | Tutorial: http://bit.ly/MCAhYx | New programmer? http://bit.ly/23X7emF | Specify 2.x or 3.x in your question | Find your local User Group: http://goo.gl/S1Zsq | #python-fr #python.de #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk #python-dev
1926 #freenode Welcome to #freenode | Feel free to message staff at any time. You can find us using /stats p (shows immediately-available staff) or /who freenode/staff/* (shows all staff) | See https://freenode.net/news/spambot-attack regarding spam | User mode +R blocks unregistered user PMs
1787 #python PSF Survey: https://bit.ly/psf-survey-2018 | Anything about Python is on-topic. Don't paste, use https://paste.pound-python.org/ | Be nice: https://j.mp
This file has been truncated, but you can view the full file.
2391 ##linux Channel website: https://freenode.linux.community | Pastebin: https://paste.linux.community | Need an op? Join ##linux-ops | CoC? ##linux-offtopic, please.
1931 #python Don't paste, use https://paste.pound-python.org/ | http://bit.ly/psf-coc | Tutorial: http://bit.ly/MCAhYx | New programmer? http://bit.ly/23X7emF | Specify 2.x or 3.x in your question | Find your local User Group: http://goo.gl/S1Zsq | #python-fr #python.de #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk #python-dev
1926 #freenode Welcome to #freenode | Feel free to message staff at any time. You can find us using /stats p (shows immediately-available staff) or /who freenode/staff/* (shows all staff) | See https://freenode.net/news/spambot-attack regarding spam | User mode +R blocks unregistered user PMs
1787 #python PSF Survey: https://bit.ly/psf-survey-2018 | Anything about Python is on-topic. Don't paste, use https://paste.pound-python.org/ | Be nice: https://j.mp