Skip to content

Instantly share code, notes, and snippets.

@SlyNet
SlyNet / ProgressiveDownload.cs
Created November 9, 2018 10:24
Progressive download response message for asp.net webapi that supports video streaming and partial download and not broken
public class ProgressiveDownload
{
private readonly HttpRequestMessage request;
public ProgressiveDownload(HttpRequestMessage request)
{
this.request = request;
}
public HttpResponseMessage HeaderInfoMessage(long contentLength, string mediaType)
@balpha
balpha / Program.cs
Created May 4, 2016 12:46
Job title and company name generator
using System;
using System.Linq;
namespace FakeJobInfo
{
class Program
{
private static Func<int, int> rand = new Random().Next;
@jgoodall
jgoodall / README.md
Last active September 19, 2023 18:06
This is a sample of how to send some information to logstash via the TCP input from node.js or python.

This is a sample of how to send some information to logstash via the TCP input in nodejs or python. It assumes the logstash host is on 10.10.10.100 and the TCP listening input is 9563.

The logstash.conf should look something like the sample file.

The log message should be a stringified JSON object with the log message in the @message field.

To use, run the node script node sendMessageToLogstash.js, or the python script python sendMessageToLogstash.js

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@chaliy
chaliy / Upgrade-Package.ps1
Created December 19, 2010 17:59
Script to upgrade all NuGet packages in solution to new version
###########################################################
#
# Script to upgrade all NuGet packages in solution to last version
#
# USAGE
# Place this file (Upgrade-Package.ps1) to your solution folder.
# From Package Manager Console execute
#
# .\Upgrade-Package.ps1 -PackageID:Castle.Core
#