Skip to content

Instantly share code, notes, and snippets.

View mstraughan86's full-sized avatar
🔥
Motivated for change.

Michael Straughan mstraughan86

🔥
Motivated for change.
View GitHub Profile
@mstraughan86
mstraughan86 / Arguments.md
Last active January 18, 2018 04:38
Javascript Utility Belt

Want to handle arguments in vanilla JS? Here is how!

const args = process.argv.slice(2).reduce((accumulator, current) => {
  let [key, value = true] = current.split('=');
  accumulator[key] = value;
  return accumulator;
}, {})

console.log(args);
@LordRatte
LordRatte / README.md
Created October 4, 2017 14:29
A wrapper to give Befunge access to Python's API

Introduction

Esolangs are cool. I especially like Befunge. I like Befunge so much, in fact, that I'd like to write complex utilities and apps in it.

What? It can't be done? That's what they told me too. But I'll show them; I'll show them all!

This Gist is a proof of concept to demonstrate how to run Python commands from a Befunge programme -- opening up a world of opportunity.

Steps to run

  1. Clone and compile https://github.com/CzechsMix/FungePP
@MoOx
MoOx / README.md
Last active May 11, 2023 13:59
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
@mstraughan86
mstraughan86 / FAQ.md
Last active December 9, 2017 19:11
Git Utility Shelf

Sometimes contributions don't count. Why?

How do you upload a file to GitHub, then lock it so that git will no longer check for and push updates on that file, to preserve a local customized copy?

Source

git update-index --skip-worktree FILE_NAME
git update-index --no-skip-worktree FILE_NAME
@philcon93
philcon93 / 1.md
Last active April 30, 2020 12:01
google address checkout
@martinky
martinky / Makefile
Last active March 18, 2022 03:28
Makefile used to run complete Ansible playbooks in parallel on individual hosts using make -jN with added timeout constraint.
HOSTS=host_a host_b
INVENTORY=../data/inventory.inv
PLAYBOOK=../playbooks/test.yml
TIMEOUT=600
deploy: all_hosts
all_hosts: $(HOSTS)
$(HOSTS):

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. Will not work if proxied (source).

update: A minor variant of the viru

@notwaldorf
notwaldorf / 👀.md
Last active February 18, 2024 21:13
Advice for new developers

Someone sent me an email asking me what advice I had for new developers. I get this question a bunch, so I wanted to put all my thoughts in one place, that I can update as I get more ideas!

I answered this a bunch on my AMA repo, so here's some initial general answers, before I get to some of the specific questions:

@dimkir
dimkir / nightmare-on-amazon-linux.MD
Last active February 6, 2021 17:45
How to run nightmare on Amazon Linux

Running nightmare on Amazon Linux

You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.

Provision instance which replicates Lambda environment

According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):

  • In eu-west-1 - ami-f9dd458a
  • In us-east-1 - ami-6869aa05