Skip to content

Instantly share code, notes, and snippets.

View AleXoundOS's full-sized avatar

AleXoundOS

  • Tbilisi, Georgia
  • 16:26 (UTC +04:00)
View GitHub Profile
@Sporif
Sporif / evhz_higher_rate.patch
Created September 19, 2021 20:58
Allow evhz to detect refresh rates higher than 1000Hz (https://git.sr.ht/~iank/evhz)
diff --git a/evhz.c b/evhz.c
index 3b4d0cf..c7ba33d 100644
--- a/evhz.c
+++ b/evhz.c
@@ -118,13 +118,13 @@ int main(int argc, char *argv[]) {
unsigned long long time, timediff;
unsigned hz = 0;
- time = (unsigned long long)event.time.tv_sec * 1000ULL;
- time += (unsigned long long)event.time.tv_usec / 1000ULL;
nix-env did not evaluate cleanly:
["trace: warning: runCommandNoCC is deprecated. Use the equivalent runCommand function instead.", "trace: warning: runCommandNoCCLocal is deprecated. Use the equivalent runCommandLocal function instead."]
@rpearce
rpearce / .ghci
Last active July 10, 2024 03:49
Flake for using Haskell in nix develop
:def hoogle \x -> return $ ":!hoogle --count=15 \"" ++ x ++ "\""
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
:set -Wall
:set -fno-warn-type-defaults -ferror-spans -freverse-errors -fprint-expanded-synonyms
:set prompt "\ESC[0;32m%s\n\ESC[m[ghci]\ESC[38;5;172mλ \ESC[m"
:set prompt-cont " \ESC[38;5;172m> \ESC[m"
@ldesgoui
ldesgoui / flake.lock
Last active December 3, 2024 12:54
Checking a flake in recursive Nix
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
@schlarpc
schlarpc / cloudformation.nix
Created March 8, 2021 01:39
CloudFormation functions as Nix expressions
GetAtt = resource: attribute: { "Fn::GetAtt" = [ resource.logical_id attribute ]; };
Ref = resource: { "Ref" = [ resource.logical_id ]; };
Split = delimiter: string: { "Fn::Split" = [ separator string ]; };
Sub = template: values: { "Fn::Sub" = [ template values ]; };
Select = index: values: { "Fn::Select" = [ index objects ]; };
Join = delimiter: values: { "Fn::Join" = [ delimiter values ]; };
FindInMap = name: key1: key2 { "Fn::FindInMap" = [ name key1 key2 ]; };
Base64 = value: { "Fn::Base64" = value };
ImportValue = name: { "Fn::ImportValue" = name; };
GetAZs = region: { "Fn::GetAZs" = region; };
@573
573 / default.nix
Last active February 20, 2023 22:19
Problem with fetchpatch #nix #patch #nixpkgs
let
nixpkgsPatches = [
{
name = "nixpkgs-qemu-5.2.0-desktop.patch";
sha256 = "sha256:0255mav4sc556dzmapmyfz2x3a92ch6hhmyp60vycj47fvs6gf91";
url = "https://gist.githubusercontent.com/573/29b1ad750bd88102177e8dcdfcaf540e/raw/6b65e4a9102f5490388a7f096903b1129d85c6a9/qemu-5.2.0-111651.patch";
}
];
localNixpkgsPatches = [
];
@graninas
graninas / On_hiring_haskellers.md
Last active March 25, 2023 16:49
On hiring Haskellers

On hiring Haskellers

Recently I noticed the number of the same two questions being asked again and again on different Haskell resources. The questions were “How to get a Haskell job” and “Why is it so hard to find Haskellers?” Although these two are coming from the opposite sides of the hiring process, the answer is really just one. There is a single reason, a single core problem that causes difficulties of hiring and being hired in the Haskell community, and we should clearly articulate this problem if we want to increase the Haskell adoption.

We all know that there are many people wishing to get a Haskell job. And a visible increase of Haskell jobs looks like there should be a high demand for Haskellers. The Haskell community has also grown like crazy past years. But still, why is it so difficult to hire and to be hired? Why can’t companies just hire any single person who demonstrates a deep knowledge of Haskell in blog posts, in chats, on forums, and in talks? And why do Haskell companies avoid hirin

@graninas
graninas / haskeller_competency_matrix.md
Last active June 27, 2025 16:13
Haskeller competency matrix