Skip to content

Instantly share code, notes, and snippets.

Avatar

Danny Sotzny DannySotzny

  • Leipzig
View GitHub Profile
@DannySotzny
DannySotzny / SetPanoExif Droplet.bat
Last active Jun 27, 2016
Set Make and Modell to Ricoh Theta S to upload panoram to Facebook as Panorama Picture
View SetPanoExif Droplet.bat
@echo off
title Set Exif Data
echo SET EXIF DATA FOR FACEBOOK PANORAMA droplet
IF "%~1" == "" GOTO ERROR
IF NOT EXIST "%~1" GOTO ERROR
FOR %%V in (%*) do "%~dp0\exiftool" -Make="RICOH" -Model="RICOH THETA S" "%%~V"
GOTO DONE
View gdrive_init.cs
public void InitService()
{
UserCredential credential;
using (var stream =
new FileStream("client_id.json", FileMode.Open, FileAccess.Read))
{
string credPath = Environment.GetFolderPath(
Environment.SpecialFolder.Personal);
credPath = Path.Combine(credPath, ".credentials/drive-dotnet-quickstart.json");
@DannySotzny
DannySotzny / AutomaticDecompressionWebClient.cs
Created Jan 27, 2016
C#: Enable Automatic Decompression on System.Net.WebClient
View AutomaticDecompressionWebClient.cs
public class AutomaticDecompressionWebClient : WebClient
{
protected override WebRequest GetWebRequest(Uri address)
{
var request = base.GetWebRequest(address) as HttpWebRequest;
if (request == null) throw new InvalidOperationException("You cannot use this WebClient implementation with an address that is not an http uri.");
request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
return request;
}
}
@DannySotzny
DannySotzny / cli.ini
Created Jan 22, 2016
Let´s Encrypt Configfile
View cli.ini
# This is an example of the kind of things you can do in a configuration file.
# All flags used by the client can be configured here. Run Let's Encrypt with
# "--help" to learn more about the available options.
# Use a 4096 bit RSA key instead of 2048
rsa-key-size = 4096
# Cert-Authority to use
## TestingServer
# server = https://acme-staging.api.letsencrypt.org/directory
You can’t perform that action at this time.