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
@echo off | |
start /w wusa /uninstall /kb:971033 /quiet /norestart | |
start /w wusa /uninstall /kb:2902907 /quiet /norestart | |
start /w wusa /uninstall /kb:2952664 /quiet /norestart | |
start /w wusa /uninstall /kb:2990214 /quiet /norestart | |
start /w wusa /uninstall /kb:2976987 /quiet /norestart | |
start /w wusa /uninstall /kb:2976978 /quiet /norestart | |
start /w wusa /uninstall /kb:2902907 /quiet /norestart | |
start /w wusa /uninstall /kb:2952664 /quiet /norestart |
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
using System.Text.RegularExpressions; | |
public static class TrimLastWord{ | |
private static Regex _trimLastWord = new Regex(@"\s+?(\S+)?$"); | |
private static string TrimLastWord(this string str, int maxLength, string extra="...") | |
{ | |
if (str?.Length > maxLength) | |
return $"{_trimLastWord.Replace(str.Substring(0, maxLength), "")}{extra}"; | |
return str; | |
} |
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
DATE=`date +%F` | |
mysqldump --defaults-file=/root/.my.web1.cnf -h 10.13.0.4 -u username dbname | gzip -9 > /backup/dbname-${DATE}.sql.gz | |
cd /srv/www/ | |
tar cf - webstie1folder | gzip -9 > /backup/website1-${DATE}.tar.gz |
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
# https://www.linuxbabe.com/linux-server/install-docker-on-debian-8-jessie-server | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list | |
apt-get install apt-transport-https ca-certificates | |
apt-get update && sudo apt-get install docker-engine | |
systemctl start docker | |
systemctl enable docker | |
systemctl status docker | |
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
dtparam=audio=off | |
dtoverlay=pi3-disable-wifi | |
dtoverlay=pi3-disable-bt | |
disable_splash=1 | |
disable_audio_dither=1 | |
gpu_mem=16 | |
max_usb_current=1 | |
#arm_control=0x200 |
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
System.ArgumentException: The specified ITextSnapshot doesn't belong to the correct TextBuffer.
 | |
at Microsoft.VisualStudio.Text.SnapshotSpan.TranslateTo(ITextSnapshot targetSnapshot, SpanTrackingMode spanTrackingMode)
 | |
at Microsoft.VisualStudio.Language.Intellisense.Implementation.GoToDefMouseHandler.<SetMouseCursorAndNavigableSpanHelperAsync>d__32.MoveNext()
 | |
--- End of stack trace from previous location where exception was thrown ---
 | |
at Microsoft.VisualStudio.Language.Intellisense.Implementation.GoToDefMouseHandler.<SetMouseCursorAndNavigableSpanHelperAsync>d__32.MoveNext()
 | |
--- End of stack trace from previous location where exception was thrown ---
 | |
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 | |
at Microsoft.VisualStudio.Lang |
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
$('.collapsible').collapsible(); | |
$('.collapsible > li.disabled').parent().off('click.collapse', '.collapsible-header'); | |
$('.collapsible > li.disabled > .collapsible-header').off('click.collapse').css('pointer-events', 'none'); | |
<ul class="collapsible"> | |
<li class="disabled"> | |
<div class="row collapsible-header"> | |
</div> | |
<div class="collapsible-body"> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace CQRS_CQS_Learning | |
{ | |
class Program | |
{ | |
public class Person |
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 class StringValue : System.Attribute | |
{ | |
private string _value; | |
public StringValue(string value) | |
{ | |
_value = value; | |
} | |
public string Value |
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
internal class ByteArrayEquityComparer : IEqualityComparer<byte[]> | |
{ | |
public bool Equals(byte[] x, byte[] y) | |
{ | |
if (x == null || y == null) | |
{ | |
return x == y; | |
} | |
return UnsafeCompare(x, y); | |
} |
OlderNewer