$ brew install ghc
$ brew install --env=std haskell-platform
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Menu Key Bindings</key> | |
<dict> | |
<key>Key Bindings</key> | |
<array> | |
<dict> | |
<key>Action</key> |
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
#!/usr/bin/env ruby | |
# | |
# Inspired by https://github.com/andrep/git-svn-clone-externals | |
# | |
# MIT License http://koshigoe.mit-license.org | |
# | |
require 'fileutils' | |
module Git |
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
find -type f | xargs ls -l --time-style long-iso | sort -k6d -k7d |
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
// from http://stackoverflow.com/questions/15182496/why-does-this-code-print-hello-world | |
import java.util.Random | |
import scala.annotation.tailrec | |
object HelloWorld extends App { | |
println(randomString(-229985452) +" "+ randomString(-147909649)) | |
println(randomString2(-229985452) +" "+ randomString2(-147909649)) | |
println(randomString3(-229985452) +" "+ randomString3(-147909649)) | |
println(randomString4(-229985452) +" "+ randomString4(-147909649)) | |
def randomString(i :Int) :String = { |
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
diff -Naru znc-1.0.orig/src/Chan.cpp znc-1.0/src/Chan.cpp | |
--- znc-1.0.orig/src/Chan.cpp 2013-03-18 04:46:49.000000000 +0900 | |
+++ znc-1.0/src/Chan.cpp 2013-03-18 05:20:17.000000000 +0900 | |
@@ -548,7 +548,7 @@ | |
NETWORKMODULECALL(OnChanBufferStarting(*this, *pUseClient), m_pNetwork->GetUser(), m_pNetwork, NULL, &bSkipStatusMsg); | |
if (!bSkipStatusMsg) { | |
- m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + GetName() + " :Buffer Playback...", pUseClient); | |
+ m_pNetwork->PutUser(":***!znc@znc.in NOTICE " + GetName() + " :Buffer Playback...", pUseClient); | |
} |
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
199.91.171.93 au-m.rubygems.org bb-m.rubygems.org | |
54.186.104.15 api.rubygems.org rubygems.org |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "", | |
"version": "1.0.0", | |
"title": "Swagger Petstore" | |
}, | |
"host": "petstore.swagger.io", | |
"basePath": "/v2", | |
"schemes": [ |
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
gfind . -name '*.mp4' -print0 | gxargs -0 -I{} sh -c 'ffmpeg -i "{}" -t $(echo "$(ffprobe -i "{}" -show_entries format=duration -v quiet -of csv="p=0") - 15" | bc) "cropped_$(basename "{}")"' |
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
openapi: 3.0.0 | |
info: | |
version: 1.0.0 | |
title: Swagger Petstore | |
license: | |
name: MIT | |
servers: | |
- url: 'http://www.example.org' | |
paths: | |
/pets: |