This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed by Daniel Cazzulino under the MIT License | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, INotifyCollectionChanged, INotifyPropertyChanged | |
{ | |
private const string CountString = "Count"; | |
private const string IndexerName = "Item[]"; | |
private const string KeysName = "Keys"; | |
private const string ValuesName = "Values"; | |
private IDictionary<TKey, TValue> _Dictionary; | |
protected IDictionary<TKey, TValue> Dictionary | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration AdminRestAp { | |
Import-DscResource -ModuleName xPSDesiredStateConfiguration | |
Import-DscResource -ModuleName xNetworking | |
Node "webserver" { | |
<# | |
Install windows features | |
#> | |
WindowsFeature InstallIIS { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instructions to Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive (Tested on Single, but it should work on Duo too) | |
# ------------------------------------------------------------------------------------ | |
# Initial preparation (Using a Debian VM) | |
# ------------------------------------------------------------------------------------ | |
# Recommended to use a Linux / Debian box with wget, dd, gunzip, lsblk | |
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian) | |
See ip with: | |
ip addr show |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ -z "$1" ] && echo "Usage: workupload_download.sh '<workupload link>'" && exit 1 | |
id_string=$(sed 's|.*workupload.com/||g' <<< "$1") | |
type=$(cut -d'/' -f1 <<< "$id_string") | |
id=$(cut -d'/' -f2 <<< "$id_string") | |
[[ "$type" != "file" ]] && [[ "$type" != "archive" ]] && echo "Invalid link provided" && exit 1 |