>git show HEAD~4:index.html > oldIndex.html
-or-
>git show a7063efcd:index.html > oldIndex.html
-or-
>git checkout <branch_name> index.html
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
using System.Net; | |
WebClient webClient = new WebClient(); | |
webClient.Credentials = new NetworkCredential("*******", "********"); | |
Action<string> act = (imageName) => { | |
Console.Write("uploading " + imageName + " "); | |
webClient.Headers.Add("Overwrite", "T"); | |
webClient.UploadFile("http://*************/User%20Photos/Profile%20Pictures/" + imageName, "PUT", imageName); | |
Console.WriteLine("Done"); |
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/sh | |
#aktualisiert DNS-Einträge bei HostEurope | |
#HostEurope-Zugangsdaten | |
KUNDENNR=xxx | |
PASSWORD=xxx | |
#Host-ID des eigentlichen Eintrages | |
HOSTID=xxx | |
#externe IP bestimmen und dann vergleichen |
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
private string GetDocumentContents(System.Web.HttpRequestBase Request){ | |
using (Stream receiveStream = Request.InputStream) | |
{ | |
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8)) | |
return readStream.ReadToEnd(); | |
} | |
} |
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 void WrongCalendarWeekCalculation() | |
{ | |
var calendar = new System.Globalization.CultureInfo("en-US").Calendar; | |
var m1 = calendar.GetWeekOfYear(new DateTime(2013, 12, 31), System.Globalization.CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); | |
var m2 = calendar.GetWeekOfYear(new DateTime(2014, 1, 1), System.Globalization.CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); | |
Console.Write("m1= {0}; m2= {1}", m1, m2); //> m1= 53; m2= 1; | |
} |
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
// A scriptcs (http://scriptcs.net/) file for opening a bunch of excel files, reading the first column and putting the content into a txt file. | |
// | |
// Needs the Microsoft.Office.Interop.Excel.dll to be in the same directory as the script. | |
// Copy it there by using `>copy C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Excel\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll` | |
#r "Microsoft.Office.Interop.Excel.dll" | |
using System.IO; | |
using Microsoft.Office.Interop.Excel; | |
using System.Linq; |
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
namespace Salesforce.Force.FunctionalTests.Models | |
{ | |
public class Event | |
{ | |
public string Id { get; set; } | |
public string Description { get; set; } | |
public string Subject { get; set; } | |
public string WhatId { get; set; } | |
public DateTimeOffset? ActivityDate { get; set; } | |
} |
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
/* | |
# Convert binary encoded object SID to a string | |
# (eg. S-1-5-21-1004336348-1177238915-682003330-512) | |
# | |
# SID format: https://technet.microsoft.com/en-us/library/cc962011.aspx | |
# | |
# ldapjs `searchEntry` has attribute `raw` that holds the raw | |
# values, including the `objectSid` buffer when one exists. Pass that | |
# buffer to get the string representation that can then be easily | |
# used in LDAP search filters, for example. |
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
{ | |
"token_endpoint": "https://login.microsoftonline.com/e904fb52-a46f-4d6b-ad97-6dc605bf3879/oauth2/v2.0/token", | |
"token_endpoint_auth_methods_supported": [ | |
"client_secret_post", | |
"private_key_jwt", | |
"client_secret_basic" | |
], | |
"jwks_uri": "https://login.microsoftonline.com/e904fb52-a46f-4d6b-ad97-6dc605bf3879/discovery/v2.0/keys", | |
"response_modes_supported": [ | |
"query", |
OlderNewer