Skip to content

Instantly share code, notes, and snippets.

@DanielSmon
DanielSmon / New MS Teams Profile.cmd
Last active June 19, 2024 23:48
For running multiple MS Teams accounts side by side. Save this with the name of the MS Teams profile you wish to use. When launched, a folder will be created in your user profile. See https://danielsmon.com/2020/04/02/multiple-ms-teams-accounts-on-the-desktop/.
@ECHO OFF
REM Uses the file name as the profile name
SET MSTEAMS_PROFILE=%~n0
ECHO - Using profile "%MSTEAMS_PROFILE%"
SET "OLD_USERPROFILE=%USERPROFILE%"
SET "USERPROFILE=%LOCALAPPDATA%\Microsoft\Teams\CustomProfiles\%MSTEAMS_PROFILE%"
REM Ensure there is a downloads folder to avoid error described at
@mellet
mellet / BetterTouchToolsReadMe.md
Last active July 18, 2018 20:55
BetterTouchTools show crypto value

Setup BetterTouchTools

  1. Install BetterTouchTools and "JSON Helper for Apple Script" from the App Store.
  2. Set up a widget inside BetterTouchTools
  • Global -> Click +Widget
  • In Select toucbar wigdet pick the option Run Apple Script and Show Return Value
  • Click Advanced Configuration
  • Paste the script and click Run Script to validate that it works.
-- Settings
set coinName to "bitcoin" -- Name of coin

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

@albyr
albyr / traceroute 216.81.59.173
Created February 10, 2013 10:10
The results of a traceroute to 216.81.59.173
Tracing route to FIN [216.81.59.173]:
1 76 ms 96 ms 99 ms 192.168.1.254
2 * * * Request timed out.
3 18 ms 18 ms 17 ms 195.66.225.189
4 22 ms 24 ms 24 ms 10gigabitethernet1-1.core1.lon1.he.net [195.66.224.21]
5 24 ms 24 ms 24 ms 10gigabitethernet2-4.core1.par2.he.net [72.52.92.42]
6 97 ms 97 ms 100 ms 10gigabitethernet7-1.core1.ash1.he.net [184.105.213.93]
7 109 ms 109 ms 112 ms 10gigabitethernet1-2.core1.atl1.he.net [184.105.213.110]
8 109 ms 108 ms 108 ms 216.66.0.26
@chelmertz
chelmertz / pre-commit
Created February 8, 2011 09:25
pre-commit hook for git, running php lint
#!/usr/bin/php
<?php
// copied from http://phpadvent.org/2008/dont-commit-that-error-by-travis-swicegood
// authored by Travis Swicegood
$output = array();
$return = 0;
exec('git rev-parse --verify HEAD 2> /dev/null', $output, $return);
$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904';