Skip to content

Instantly share code, notes, and snippets.

@duhowise
duhowise / AdvancedDistributedSystemDesignCourseNotes.md
Created December 13, 2022 20:08 — forked from craigtp/AdvancedDistributedSystemDesignCourseNotes.md
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
@duhowise
duhowise / fetch-api-post.js
Created April 25, 2018 02:36 — forked from deanhume/fetch-api-post.js
A simple POST request using the fetch API
fetch(url, {
method: 'POST',
headers: {
'auth': '1234'
},
body: JSON.stringify({
name: 'dean',
login: 'dean',
})
})
@duhowise
duhowise / remove-git-config.sh
Created March 15, 2018 07:49 — forked from vanpeerdevelopment/remove-git-config.sh
Command to remove a git configuration.
# Remove repository configuration
git config --unset [key]
# Remove global configuration
git config --global --unset [key]
# Remove system configuration
git config --system --unset [key]
@duhowise
duhowise / ExcelDataReader.cs
Created February 14, 2018 19:00 — forked from Munawwar/ExcelDataReader.cs
C# - Excel Data Reader Library - Convert Excel (XLSX or XLS) to CSV
/*
* Dependency : Excel Data Reader from http://exceldatareader.codeplex.com/
* You must add the references to the Dlls (downloaded from the link above) with Visual Studio.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Excel;
@duhowise
duhowise / coin-hive.txt
Created October 7, 2017 10:32 — forked from PaulSec/coin-hive.txt
Extract from the Top 1M Alexa domains (and also from investigations) using coin-hive mining service
0x00sec.org
10.32.59.31:32204
10.45.35.173:7990
1122qq.weebly.com
123movies.co
123moviesfull.co
123movies.re
1337x.io
141jav.com
1592878.com
@duhowise
duhowise / gist:410592c4124c36cf308fe7dfafe08dec
Created October 7, 2017 10:30 — forked from vxnick/gist:380904
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@duhowise
duhowise / identity_tables_oracle.sql
Created October 7, 2017 10:07 — forked from andresbejar/identity_tables_oracle.sql
Script for creating ASP.NET Identity 2.0 tables on OracleDB
CREATE TABLE "AspNetRoles" (
"Id" NVARCHAR2(128) NOT NULL,
"Name" NVARCHAR2(256) NOT NULL,
PRIMARY KEY ("Id")
);
CREATE TABLE "AspNetUserRoles" (
"UserId" NVARCHAR2(128) NOT NULL,
"RoleId" NVARCHAR2(128) NOT NULL,