Skip to content

Instantly share code, notes, and snippets.

View Frewacom's full-sized avatar
🇸🇪
Writing everything in lisp

Fredrik Engstrand Frewacom

🇸🇪
Writing everything in lisp
  • SLB
  • Oslo, Norway
  • 17:20 (UTC +02:00)
View GitHub Profile

GNU Guix installation steps

Systemcrafters installation

  1. Add nongnu and set correct kernel for host system (/mnt/etc/config.scm)
    (use-modules (gnu) (nongnu packages linux))
    
    (operating-system
      (kernel linux)
      (firmware (list linux-firmware))
      ...
        
@Frewacom
Frewacom / CaliditasArduino.c
Last active March 21, 2020 12:05
Proof-of-concept wireless thermometer and humidity-sensor
#include "DHT.h"
#define DHTPIN 2 / // PIN of DHT sensor
#define DHTTYPE DHT21 // AM2301
DHT dht(DHTPIN, DHTTYPE);
void setup()
{
Serial.begin(9600);
@Frewacom
Frewacom / Nextcloud.css
Last active June 21, 2020 10:09
Nextcloud-css
/* Used with the Breeze theme */
#filelist-header {
display: none;
}
:root {
--color-primary: #c12424 !important;
--color-text-link: #fc4444 !important;
--color-text-selection: #7f1818 !important;
--color-primary-element: #ce2525 !important;
@Frewacom
Frewacom / ios-vh-fix.css
Last active December 6, 2019 21:31
Viewport units on iOS doesn't quite work as expected if set to 100vh because of the top-bar. Using this method iOS will calculate the viewport units as pixels instead and only be the height of the accessable viewport. This does require a parent div s
.fullViewportItem { height: 100% } .overlay { height: 100vh }
@Frewacom
Frewacom / X2AutoWithdrawal.js
Last active December 6, 2019 21:42
Auto withdrawer for CSGODouble.com
// ==UserScript==
// @name X2AW
// @namespace http://fredrikengstrand.se
// @version 0.1
// @description CSGODouble Auto Withdrawer
// @author Fredrik Engstrand
// @match http://www.csgodouble.com/withdraw.php
// @grant none
// ==/UserScript==
@Frewacom
Frewacom / SteamMarketHighlighter.js
Last active December 6, 2019 21:41
Automatically highlights all new listings of an item at the steam market when reloading.
// ==UserScript==
// @name Steam market - New listings highlighter
// @namespace http://fredrikengstrand.se
// @version 0.1
// @description Highlights all new listnings of a specific item
// @author Fredrik Engstrand
// @match https://steamcommunity.com/market/listings/730/*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==