Skip to content

Instantly share code, notes, and snippets.

{"lastUpload":"2021-04-26T01:12:10.648Z","extensionVersion":"v3.4.3"}
using System;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace MonoConsoleApp1
{
internal class Program
{
public static async Task Main(string[] args)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Owin.Host.HttpListener;
using Microsoft.Owin.Hosting;
@powerumc
powerumc / OwinConsole-Crash-Program.cs
Last active April 27, 2020 08:04
Crash app process if curl without 'Content-Length' http header.
using System;
using Microsoft.Owin.Hosting;
using Owin;
namespace OwinConsoleApp1
{
internal class Program
{
public static void Main(string[] args)
{
@powerumc
powerumc / alias.sh
Last active January 24, 2016 12:31
To do after install Linux.
alias l="ls -al"
alias sublime="/opt/sublime_text/sublime_text $1"
alias vscode="/opt/vscode/Code $1"
@powerumc
powerumc / patch-bash-4.3.25.sh
Created September 26, 2014 02:11
Patch security vulnerability bash shell.
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
TEMP_PATH="_______TEMP_________"
rm -rf ${TEMP_PATH}
if [ ! -d "${TEMP_PATH}" ]; then
mkdir ${TEMP_PATH}
fi
cd ${TEMP_PATH}
git credential-osxkeychain
# If not, the download and install it:
curl http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain -o git-credential-osxkeychain
sudo mv git-credential-osxkeychain /usr/local/bin
sudo chmod u+x /usr/local/bin/git-credential-osxkeychain
# And make git use the helper:
@powerumc
powerumc / render-markdown.sh
Last active August 29, 2015 14:01
github api - render markdown
echo '{
"text": "Hello world github/linguist#1 **cool**, and #1!",
"mode": "gfm",
"context": "github/gollum"
}' | curl -d @- https://api.github.com/markdown
@powerumc
powerumc / install-oracle.sh
Last active August 29, 2015 14:00
Install oracle java
sudo add-apt-repository ppa:webupd8team/java;sudo apt-get update
sudo apt-get install oracle-java7-installer
# 아래 명령으로 기본적인 환경 변수 설정을 할 수 있다.
# 버전은 6,7,8으로 지정할 수 있으며, 6을 설치하면 7,8설정 패키지는 자동으로 삭제되는 식으로 작동한다.
sudo apt-get install oracle-java7-set-default
@powerumc
powerumc / gist:10838268
Last active August 29, 2015 13:59
Display all frame variables for every step in lldb
target stop-hook add --one-liner "frame variable"