Skip to content

Instantly share code, notes, and snippets.

View MoonlightOwl's full-sized avatar
🦀
Chillin on GitLab

Dmitry Zhidenkov MoonlightOwl

🦀
Chillin on GitLab
View GitHub Profile
@HeroBrine1st
HeroBrine1st / Dockerfile
Last active February 9, 2023 06:16
Dockerfile to patch outline with support of personal Google accounts. Set DEFAULT_TEAM_DOMAIN to your domain in environment file, use buildarg to set version. Warning: set additional authorization in reverse proxy as this patch will let everyone access your notes.
ARG version=0.67.2
FROM outlinewiki/outline:$version
RUN echo "c38f0faffe3c7e00efe3373f0a3ec9dd /opt/outline/build/server/routes/auth/providers/google.js" | md5sum -c
RUN sed -i -e 's/profile._json.hd/profile._json.hd ? profile._json.hd : process.env.DEFAULT_TEAM_DOMAIN/' /opt/outline/build/server/routes/auth/providers/google.js
@aaronmdjones
aaronmdjones / freenode-resign-letter.txt
Created May 19, 2021 10:20
My resignation from freenode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My resignation from freenode staff
==================================
I joined the freenode staff in March 2019 [1].
Before I joined the staff, Freenode Ltd was sold [2] to a person named
Andrew Lee as part of a sponsorship deal. The informal terms of that
@Vladg24YT
Vladg24YT / OcelotDemo.java
Last active December 31, 2022 07:07
Ocelot Brain demo in Java.
package com.example.ocelot;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.logging.log4j.LogManager;
import scala.Function1;
@Fingercomp
Fingercomp / dbg.lua
Created May 4, 2020 11:38
A better debug.debug()
local function insertNonNil(t, v)
if v then
v = tostring(v)
if #v > 0 then
table.insert(t, v)
end
end
end
local function backtrace(levelStart, shift)

Установка

  1. Скачать файлы unicodedata2.py, wttrin_png.py, parse_query.py и set-bg.sh в ~/.local/share/scripts/background/.
  2. Заменить $CITY_NAME в set-bg.sh на нужное имя города.
  3. Прописать pip3 install pyte pillow requests.
  4. В /usr/share/fonts/truetype создать ubuntu-font-family и запихать туда файл UbuntuMono-R.ttf [откуда-то отсюда][ubuntu-fonts].
  5. Там же должна быть директория ttf-dejavu с файлом DejaVuSansMono.ttf.
  6. Установить feh и imagemagick, если ещё не.
  7. Создать директорию ~/img/bg/ и поместить туда файл background.png с фоном.
  8. Сделать выполняемым файл: chmod +x ~/.local/share/scripts/background/set-bg.sh.
@gre
gre / easing.js
Last active April 30, 2024 04:58
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {