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 1f00753130f44c0e29c34d95957f6eac2b2dcf45 Mon Sep 17 00:00:00 2001 | |
From: Leon Klingele <git@leonklingele.de> | |
Date: Tue, 29 Sep 2020 18:21:13 +0200 | |
Subject: [PATCH 1/2] apple-keychain-integration-other-changes | |
--- | |
Makefile.in | 16 +- | |
audit-bsm.c | 7 +- | |
auth.c | 2 +- | |
authfd.c | 25 ++ |
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
require "rubygems" | |
require "ffi" | |
module WinProcess | |
extend FFI::Library | |
ffi_lib "kernel32" | |
ffi_convention :stdcall | |
class Error < StandardError |
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
require "http" | |
require "uuid" | |
require "uuid/json" | |
class App | |
include HTTP::Handler | |
def call(context) | |
Fiber.yield # Simulate getting data from the DB | |
response_payload.to_json context.response |
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 --git a/src/exception.cr b/src/exception.cr | |
index cd4450c..570e2fd 100644 | |
--- a/src/exception.cr | |
+++ b/src/exception.cr | |
@@ -21,7 +21,11 @@ struct CallStack | |
makecontext_start = makecontext_end = LibDL.dlsym(LibDL::RTLD_DEFAULT, "makecontext") | |
while true | |
- ret = LibDL.dladdr(makecontext_end, out info) | |
+ ifdef cygwin |
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
require "./mess/*" | |
require "kemal" | |
require "json" | |
require "mysql" | |
require "pool/connection" | |
db = ConnectionPool.new(capacity: 25, timeout: 0.01) do | |
DB.open(ENV["DATABASE_URL"]) | |
end |
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
// The player | |
var player = netflix.cadmium.objects.videoPlayer(); | |
// Metadata about current episode -- ID and url to get frame at a specific time | |
var episodeId = netflix.cadmium.metadata.getActiveVideo().episodeId; | |
var imgRoot = netflix.cadmium.metadata.getActiveVideo().progressImageRoot; | |
// Generates URL of preview image for given timestamp | |
function getFrame(timestamp) { | |
var t = Math.floor(timestamp/10000).toString(10); |
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
if ARGV.length != 2 | |
puts "syntax: dir_that_has_files_that_should_be_duplicated dir_that_should_have_those_files" | |
exit 1 | |
end | |
def all_files_in_dir dir | |
all_in = {} | |
Dir[File.expand_path(dir) + "/**/*"].each{|f| # need expand path or in windows Dir["a\b/*"] failz <sigh> | |
if File.file? f | |
filename = File.basename(f) |
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
require 'socket' | |
s = UDPSocket.new | |
s.bind(nil, 1234) | |
Thread.new { sleep 5; puts 'closing'; s.close; puts 'closed'} | |
puts 'if this exits with closed message, it works' | |
puts s.recvfrom(16) |
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
a = %!app_answer 0.136 0.133 -0.002 | |
app_erb 2.393 2.466 0.075 | |
app_factorial 4.231 4.155 -0.076 | |
app_fib 1.386 1.262 -0.127 | |
app_mandelbrot 3.841 3.598 -0.231 | |
app_pentomino 33.577 34.844 1.216 | |
app_raise 0.919 0.912 -0.003 | |
app_strconcat 2.487 2.583 0.079 | |
app_tak 2.075 1.761 -0.318 | |
app_tarai 1.469 1.461 -0.010 |
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
D:\Program Files\ImageMagick-6.6.6-Q16>wget freeldssheetmusic.org/example.pdf | |
--2011-06-16 17:49:06-- http://freeldssheetmusic.org/example.pdf | |
Resolving freeldssheetmusic.org... 69.89.31.235 | |
Connecting to freeldssheetmusic.org|69.89.31.235|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 21280 (21K) [application/pdf] | |
Saving to: `example.pdf' | |
100%[======================================>] 21,280 --.-K/s in 0.1s |
NewerOlder