Skip to content

Instantly share code, notes, and snippets.

@vietlq
vietlq / Rinkeby.md
Created October 5, 2017 20:33 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@vietlq
vietlq / Rinkeby.md
Created October 5, 2017 20:33 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@vietlq
vietlq / query_github.py
Created September 20, 2017 06:32
VietFOSS: Query GitHub GraphQL using Python
# The original: https://github.com/VietFOSS/vn-foss/blob/master/query_github.py
import os, requests
GH_PERSONAL_TOKEN = os.environ['GH_PERSONAL_TOKEN']
GH_GRAPHQL_EP = '''https://api.github.com/graphql'''
GH_AUTH_VALUE = "bearer %s" % GH_PERSONAL_TOKEN
GH_HEADERS = {
"Authorization": GH_AUTH_VALUE,
"Content-Type": "application/x-www-form-urlencoded",
@vietlq
vietlq / g++_clang_linter.sh
Created August 24, 2017 16:37
g++/clang Flags for Linter
g++ -Wall -Wno-unknown-pragmas -Wno-pragmas -Wno-unused -Wno-char-subscripts \
-Werror -fno-implicit-templates -Wno-long-long \
-c your_file.cpp
@vietlq
vietlq / arduinoclock.cpp
Created August 23, 2017 18:51 — forked from Bravo555/arduinoclock.cpp
Arduino clock project
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
#include <LiquidCrystal_I2C.h>
int budzikGodzina = 7, budzikMinuta = 0;
LiquidCrystal_I2C lcd(0x27, 16, 2);
tmElements_t tm;
@vietlq
vietlq / arduinoclock.cpp
Created August 23, 2017 18:51 — forked from Bravo555/arduinoclock.cpp
Arduino clock project
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
#include <LiquidCrystal_I2C.h>
int budzikGodzina = 7, budzikMinuta = 0;
LiquidCrystal_I2C lcd(0x27, 16, 2);
tmElements_t tm;
@vietlq
vietlq / 010_simple_near_equal.cpp
Last active August 10, 2017 08:01
Floats and Doubles for Dummies: Understanding Floating Points
#include <cmath>
#include <iostream>
template<typename FP>
bool nearEqual(FP v1, FP v2, FP absTol)
{
return std::abs(v1 - v2) <= absTol;
}
template<typename FP>
@vietlq
vietlq / 000_README.md
Last active August 8, 2017 08:00
Floats and Doubles for Dummies: Understanding Floating Points
@vietlq
vietlq / .bash_profile
Last active July 3, 2017 05:50 — forked from molivier/gist:271bba5d67de1583a8e3
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm.

SECURITY BULLETIN AND UPDATES HERE: https://technet.microsoft.com/en-us/library/security/ms17-010.aspx