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
-- Module for calculating sunrise/sunset times for a given location | |
-- Based on algorithm by United Stated Naval Observatory, Washington | |
-- Link: http://williams.best.vwh.net/sunrise_sunset_algorithm.htm | |
-- @author Alexander Yakushev | |
-- @license CC0 http://creativecommons.org/about/cc0 | |
-- Module lustrous | |
local lustrous = { | |
update_interval = 600 | |
} |
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
I had a dream. Like there is ahead | |
And endless, empty and the wildest plane. | |
And I stand there, held by iron chain, | |
Under the tall rock made from finest granite | |
And next to me are thousands just like me. | |
The face of everyone is marked by woe and sorrow, | |
And eyes of everyone contain fervor of love. | |
And hands of everyone are chained with snakes of iron, | |
And every shoulder's bent low to the ground, |
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
(declaim (optimize (debug 2))) | |
;; Part one. | |
(defun line-number (fname code-loc) | |
(let* ((all-offsets (sb-di::debug-source-start-positions code-loc)) | |
;; Get last item from the array, I haven't found anything | |
;; like 'pop' to do it better. | |
(offset (aref all-offsets (- (length all-offsets) 1)))) | |
(with-open-file (f fname) |
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
-- Quick launchbar widget for Awesome WM | |
-- http://awesome.naquadah.org/wiki/Quick_launch_bar_widget/3.5 | |
-- Put into your awesome/ folder and add the following to rc.lua: | |
-- local launchbar = require('launchbar') | |
-- local mylb = launchbar("/path/to/directory/with/shortcuts/") | |
-- Then add mylb to the wibox. | |
local layout = require("wibox.layout") | |
local util = require("awful.util") | |
local launcher = require("awful.widget.launcher") |
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 fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007f65b7f497c7, pid=1, tid=0x00007f61ec4e9700 | |
# | |
# JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-builds.shipilev.net-openjdk-shenandoah-jdk8-b450-20191030-aarch64-shenandoah-jdk8u232-b09) | |
# Java VM: OpenJDK 64-Bit Server VM (25.71-b450-20191030-aarch64-shenandoah-jdk8u232-09 mixed mode linux-amd64 compressed oops) | |
# Problematic frame: | |
# V [libjvm.so+0x8b97c7] ObjectMonitor::enter(Thread*)+0x6d7 | |
# | |
# Core dump written. Default location: /app/core or core.1 |
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
function smart_movetoscreen(c, s) | |
local was_maximized = { h = false, v = false } | |
if c.maximized_horizontal then | |
c.maximized_horizontal = false | |
was_maximized.h = true | |
end | |
if c.maximized_vertical then | |
c.maximized_vertical = false | |
was_maximized.v = true | |
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
// ==UserScript== | |
// @name Twitter hide garbage | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @match https://twitter.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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
Trigger: Free (5628M) is below minimum threshold (5632M) | |
Free: 5628M (475 regions), Max regular: 16384K, Max humongous: 1032192K, External frag: 83%, Internal frag: 25% | |
Evacuation Reserve: 2816M (176 regions), Max regular: 16384K | |
2019-01-07T18:02:57.639+0000: 258123.203: [Concurrent resetUsing 25 of 25 workers for concurrent reset | |
46G->46G(55G), 13.614 ms] | |
2019-01-07T18:02:57.657+0000: 258123.220: [Pause Init MarkUsing 25 of 25 workers for init marking | |
Pacer for Mark. Expected Live: 1626M, Free: 5597M, Non-Taxable: 559M, Alloc Tax Rate: 1.1x | |
, 2.929 ms] | |
2019-01-07T18:02:57.660+0000: 258123.223: [Concurrent markingUsing 25 of 25 workers for concurrent marking | |
46G->47G(55G), 102.880 ms] |
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
Trigger: Free (5631M) is below minimum threshold (5632M) | |
Free: 5631M (460 regions), Max regular: 16384K, Max humongous: 425984K, External frag: 93%, Internal frag: 23% | |
Evacuation Reserve: 2816M (176 regions), Max regular: 16384K | |
2019-01-08T16:47:04.358+0000: 340115.832: [Concurrent resetUsing 25 of 25 workers for concurrent reset | |
Failed to allocate 2048K | |
Cancelling GC: Allocation Failure | |
46G->52G(55G), 11069.097 ms] | |
2019-01-08T16:47:15.433+0000: 340126.907: [Pause Init Mark (process weakrefs)Using 25 of 25 workers for init marking | |
Pacer for Mark. Expected Live: 1917M, Free: 0M, Non-Taxable: 0M, Alloc Tax Rate: infx | |
, 4.328 ms] |
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
package bench; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import java.util.concurrent.*; | |
import io.lacuna.bifurcan.LinearMap; | |
@BenchmarkMode(Mode.AverageTime) | |
@Warmup(iterations = 3, time = 5, timeUnit = TimeUnit.SECONDS) | |
@Measurement(iterations = 5, time = 5, timeUnit = TimeUnit.SECONDS) |