Skip to content

Instantly share code, notes, and snippets.

@plembo
plembo / CalibreServerOnLinux.md
Last active May 21, 2024 14:50
Calibre Server on Linux

Calibre Server on Linux

Introduction

Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.

This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.

@igorjs
igorjs / rest-api-response-format.md
Last active May 21, 2024 14:49
REST API response format based on some of the best practices
@realvjy
realvjy / ChoasLinesShader.metal
Last active May 21, 2024 14:49
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@nathandaly
nathandaly / modal.blade.php
Last active May 21, 2024 14:48
Alpine Bootstrap Modal
<div name="{{ $name }}"
x-cloak
x-data="{ show: false, name: '{{ $name }}', details: null }"
@modal.window="
show = ($event.detail.name === name);
details = $event.detail;
"
@modal:close-all.window="show = false"
class="modal d-block"
tabindex="-1"
@Minionguyjpro
Minionguyjpro / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Last active May 21, 2024 14:44
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@hateshape
hateshape / relations.sh
Last active May 21, 2024 14:43
builtwith - get some
#!/bin/bash
PROGS='\033[01;91m'
TEXTS='\033[01;90m'
RESET='\033[00m'
DASHES="------------------------------------"
# Dependencies: htmlq, html-to-csv
# cargo install htmlq
# pip install html-to-csv
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 21, 2024 14:43
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@conorbuck
conorbuck / angle-between-points.js
Created May 5, 2012 22:51
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
@MatanShahar
MatanShahar / target.xml
Last active May 21, 2024 14:41
GDB qXfer target description for real-mode qemu
<?xml version="1.0"?>
<!-- Copyright (C) 2010-2017 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. -->
<!DOCTYPE target SYSTEM "gdb-target.dtd">
<target>
<architecture>i8086</architecture>