Skip to content

Instantly share code, notes, and snippets.

Avatar

Alistair Young cerebrate

View GitHub Profile
@therealkenc
therealkenc / wsltub.cpp
Created May 13, 2019
wsltub leftovers
View wsltub.cpp
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mount.h>
#include <sys/sysmacros.h>
#include <fcntl.h>
#include <sched.h>
#include <signal.h>
#include <unistd.h>
#include <array>
@veuncent
veuncent / aws_glacier_delete_vault.md
Last active Jul 22, 2022
Delete all archives in an AWS Vault
View aws_glacier_delete_vault.md

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 
@wsargent
wsargent / win10-dev.md
Last active Jun 17, 2021
Windows Development Environment for Scala
View win10-dev.md

Windows 10 Development Environment for Scala

This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.

Harden Windows 10

Read the entire Decent Security guide, and follow the instructions, especially:

View ResultOrException.cs
[DebuggerDisplay("{ToString(),nq}")]
public struct ResultOrException<T>
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly T result;
public ResultOrException(T result)
{
this.result = result;
Exception = null;
@mw-ferretti
mw-ferretti / README.md
Last active Jun 9, 2022
Paypal button on markdown github
View README.md

Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
View ksp-checklist.md

Vehicle assembly

  1. Install MapSat GPS radio
  2. Verify sufficient power for electric rover (solar panel or RTG that doesn't fall off in dynamic environments)
  3. Does gear touch the ground when extended?
  4. Did you pack enough delta-v? (No.)
  5. Are you planning on returning?
  6. Is your shit manned or did that little probe body ruin the day?
  7. How many crew do you want?
  8. Did you remember ASAS and SAS?
  9. Is RCS needed?