Skip to content

Instantly share code, notes, and snippets.

View devdudeio's full-sized avatar
👨‍💻
typing...

DevDude devdudeio

👨‍💻
typing...
View GitHub Profile
i5cjUDhRPEBQctXQYr3gNq8ZZakdBZwDKw 1: controller of VerusID "dude@" controls devdudeio:AULXGwABQR8HmJu0RI4hNiNP9OGe6eK0rjdM/VugAkVjPeV0N/nW2hJlgZzUtg3Aq3DL+yWFjPCGDE5TRJtYf3UFhJBQPfUX
@devdudeio
devdudeio / install.sh
Last active November 22, 2021 03:24
get latest veruscoin cli wallet, install stuff and start node with tmux
#!/bin/bash
echo "Installing dependencies"
sudo apt-get install libgomp1 jq -y
releases_url=https://api.github.com/repos/VerusCoin/VerusCoin/releases
version=$(curl -s 'https://api.github.com/repos/VerusCoin/VerusCoin/releases?per_page=1' | jq -r '.[0].name')
echo "Downloading Verus linux cli (latest version: $version)"
wget https://github.com/VerusCoin/VerusCoin/releases/download/$version/Verus-CLI-Linux-$version-x86_64.tgz
@devdudeio
devdudeio / load_dotenv.sh
Created November 8, 2021 00:59 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
@devdudeio
devdudeio / Oauth2.md
Created December 4, 2020 02:56 — forked from mziwisky/Oauth2.md
Oauth2 Explanation

OAUTH2

The Problem

I’m a web app that wants to allow other web apps access to my users’ information, but I want to ensure that the user says it’s ok.

The Solution

I can’t trust the other web apps, so I must interact with my users directly. I’ll let them know that the other app is trying to get their info, and ask whether they want to grant that permission. Oauth defines a way to initiate that permission verification from the other app’s site so that the user experience is smooth. If the user grants permission, I issue an AuthToken to the other app which it can use to make requests for that user's info.

Note on encryption

Oauth2 has nothing to do with encryption -- it relies upon SSL to keep things (like the client app’s shared_secret) secure.

@devdudeio
devdudeio / A Readme for Adding Certs.md
Created May 4, 2018 08:45 — forked from Artistan/A Readme for Adding Certs.md
Add new certificate (cert) from local/internal intranet to your mac

Add a cert to you macbook

USAGE

~/add_cert.sh my.intra.net

you will be asked for your password to add thit to keychain

  • downloads pem file
  • adds to trusted root certificates
@devdudeio
devdudeio / spectre.c
Created January 6, 2018 12:47 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif