This file contains 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 static IEnumerable<TResult> SelectWhere<TSource, TResult>( | |
this IEnumerable<TSource> source, | |
Func<TSource, TResult> selector, | |
Func<TSource, bool> predicate) | |
{ | |
foreach (TSource item in source) | |
if (predicate(item)) | |
yield return selector(item); | |
} |
This file contains 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 | |
sudo add-apt-repository ppa:transmissionbt/ppa -y | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install transmission-cli transmission-common transmission-daemon -y | |
useradd -m -p $6$TN65Ge3pg7VA$ZGw1YmRZsR1HA7Bfwr5QoUBYhHlc.cB4R2bThEpchbbIWdPml7aPBUrVLdibm1PoCAudZVxs3ZeVR8ktCh7uS1 -s /bin/bash ibnuh | |
usermod -aG sudo ibnuh | |
su - ibnuh | |
mkdir ~/Downloads | |
mkdir ~/Downloads/Completed |
This file contains 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
[ | |
{ | |
'repeat(5, 10)': { | |
id: '{{guid()}}', | |
name: '{{firstName()}} {{surname()}}', | |
position: '{{random("Doctor", "Nurse")}}', | |
registered: 'Mon - {{moment(this.date(new Date(2014, 0, 1), new Date())).format("ddd")}} {{random(1,12)}}:00 {{random("am", "pm")}} - {{random(1,12)}}:00 {{random("am", "pm")}}', | |
} | |
} | |
] |
This file contains 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
git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D |
OlderNewer