Skip to content

Instantly share code, notes, and snippets.

View instantiator's full-sized avatar
🐠

Lewis Westbury instantiator

🐠
View GitHub Profile
@nohwnd
nohwnd / UnitTest1.cs
Created April 15, 2021 08:31
Writing output per test in MSTest
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
using System.Collections.Generic;
using System.IO;
@pgchamberlin
pgchamberlin / blind_sigs.py
Created July 25, 2019 13:46
Playing with blind signatures
#!/usr/local/bin/python3
#
# THIS IS JUST TOY CODE DON'T DO ANYTHING RECKLESS LIKE USE IT IN PRODUCTION
#
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import hashes
from random import SystemRandom
@sasikanth513
sasikanth513 / git-tips.js
Last active June 16, 2023 13:53
Git Tips
[
{
"Author": "stackoverflow",
"url": "https://stackoverflow.com",
"format": "html",
"tips": [
{
"title": "How to undo the most recent commits in Git?",
"body": "<h3>Undo a commit and redo</h3>\n\n<pre class=\"lang-sh prettyprint-override\"><code>$ git commit -m \"Something terribly misguided\" (1)\n$ git reset HEAD~ (2)\n&lt;&lt; edit files as necessary &gt;&gt; (3)\n$ git add ... (4)\n$ git commit -c ORIG_HEAD (5)\n</code></pre>\n\n<ol>\n<li>This is what you want to undo</li>\n<li>This leaves your working tree (the state of your files on disk) unchanged but undoes the commit and leaves the changes you committed unstaged (so they'll appear as \"Changes not staged for commit\" in <code>git status</code>, and you'll need to add them again before committing). If you <em>only</em> want to <em>add</em> more chan