Skip to content

Instantly share code, notes, and snippets.

View sokai's full-sized avatar
💭
I may be slothy, while looking on 🐑

sokai

💭
I may be slothy, while looking on 🐑
View GitHub Profile

BOOKS MANAGEMENT GRAPH

GOAL

The aim of this graphgist is to order the information about books. The idea can be used by books management systems, content recommendations systems, etc. Firstly, the designed data model is presented. Next, exemplary data is loaded and exemplary cipher queries run to show the applications of this model.

@chadsmith
chadsmith / FaviconAwesome.js
Last active January 11, 2018 19:03
FontAwesome in Favicons
(function() {
var FaviconAwesome = function(icon, color, bg) {
'use strict';
var
container = document.createElement('div'),
span = document.createElement('span'),
body = document.body,
content,
canvas = document.createElement('canvas'),
getContext = function(w) {
@vv01f
vv01f / backup-android-app.md
Created August 19, 2017 21:24
backup for conversations account data

When creating an accoutn in conversations the account data often is nor well remebered and some servers do not provide the option to retrieve the missing information. This worked today for two people that wanted to replace the f-droid version by the one from play store and reuse their accounts after the fresh installation.

#!/bin/sh
####
# howto backup conversations account data
####
@blushingpenguin
blushingpenguin / free_email_provider_domains.txt
Last active June 29, 2019 17:54 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@1f7
1f7 / TracyDBMiddleware.php
Last active October 23, 2019 07:20
Slim 3 / Eloquent / Tracy Debugger
<?php
/**
* Copyright 2016 1f7@runetcms.ru
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@linktohack
linktohack / index.php
Created June 20, 2016 07:20
Adminer 4.2.5 loader without password for SQLite
<?php
function adminer_object() {
class AdminerSoftware extends Adminer {
function login($login, $password) {
return true;
}
}
return new AdminerSoftware;
}
include "./adminer-4.2.5.php";
@max-mapper
max-mapper / readme.md
Created February 4, 2017 06:09
my book duo (16tb) linux format
  1. install WD Drive Utilities on Mac OS
  2. convert to JBOD/EXFAT and turn off Drive Sleep
  3. plug into linux
sudo parted /dev/sd<num>
print
rm 1 (and others)
mklabel gpt
unit TB
@zuphilip
zuphilip / README.md
Last active December 24, 2022 10:43
Bookmarklet to prepare a toot from any website

Usage

This JavaScript bookmarklet will copy the selected text on any website and prepare a toot with that for you. It can be used as it is for the openbiblio.social and some other instances but can be easily adapted. To use it in your browser go through the following steps:

  1. Create a new bookmark in your browser
  2. Choose any name, e.g. Toot this!
  3. Copy the content of *.bookmarklet.js as its adress
  4. Save it
@pweldon
pweldon / bootstrap.sh
Last active June 17, 2023 13:29
zfs nixos bootstrap
#!/usr/bin/env bash
# credit: https://github.com/a-schaefers/themelios
set -euxo pipefail
die() {
[ $# -gt 0 ] && printf -- "%s\n" "$*"
exit 1
}
@nyergler
nyergler / maildir2mbox.py
Created January 31, 2012 05:39
Convert maildirs (including subfolders) to mbox format
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Frédéric Grosshans, 19 January 2012
Nathan R. Yergler, 6 June 2010
This file does not contain sufficient creative expression to invoke
assertion of copyright. No warranty is expressed or implied; use at
your own risk.