This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function check_obsidian_project($bytes) { | |
$HEADERS_LENGTH = 51; | |
$MIN_SECTION_SIZE = 2; | |
if (strlen($bytes) <= $HEADERS_LENGTH) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## To allow this script to work, you must install FontForge with its Python | |
## extention. On Debian / Ubuntu, this can be done with the following command: | |
## | |
## apt install fontforge python-fontforge | |
## usage: font-convertor.py [-h] input_file output_file | |
## | |
## Converts fonts using FontForge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
## Version 2, December 2004 | |
## | |
## Copyright (C) 2004 Sam Hocevar <[email protected]> | |
## | |
## Everyone is permitted to copy and distribute verbatim or modified | |
## copies of this license document, and changing it is allowed as long | |
## as the name is changed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Macaron] 2017-12-06 10:41:22: Started GET /test/test-lfs.git/info/refs?service=git-receive-pack for 127.0.0.1 | |
[Macaron] 2017-12-06 10:41:22: Completed GET /test/test-lfs.git/info/refs?service=git-receive-pack 401 Unauthorized in 1.08318ms | |
[Macaron] 2017-12-06 10:41:26: Started GET /test/test-lfs.git/info/refs?service=git-receive-pack for 127.0.0.1 | |
[Macaron] 2017-12-06 10:41:26: Completed GET /test/test-lfs.git/info/refs?service=git-receive-pack 401 Unauthorized in 2.185333ms | |
[Macaron] 2017-12-06 10:41:26: Started GET /test/test-lfs.git/info/refs?service=git-receive-pack for 127.0.0.1 | |
[Macaron] 2017-12-06 10:41:26: Completed GET /test/test-lfs.git/info/refs?service=git-receive-pack 200 OK in 56.129674ms | |
[Macaron] 2017-12-06 10:41:30: Started POST /test/test-lfs.git/info/lfs/locks/verify for 127.0.0.1 | |
[Macaron] 2017-12-06 10:41:30: Completed POST /test/test-lfs.git/info/lfs/locks/verify 200 OK in 35.306103ms | |
[Macaron] 2017-12-06 10:41:30: Started GET /test/test-lfs.git/info/refs?service=git-upload-pack for 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*/ | |
class Foobar { | |
/** | |
* If we let jsdoc extracting the default values (es6 syntax), the | |
* result is ok for simple types (number, string, boolean and null) | |
* | |
* @param {*} a | |
* @param {number} [b] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import pydbus | |
GNOME_SHELL = "org.gnome.Shell" | |
META_WINDOW_JS = """ | |
(function(params) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds a frozen version of WeasyPrint (https://github.com/kozea/weasyprint) | |
# that includes all required dependencies and libraries. | |
# | |
# Dependencies: | |
# | |
# * GNU make (build-essential package on Debian) | |
# * Python headers (python3-dev package on Dabian) | |
# * virtualenv | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BGB Debug -- Help debugging GameBoy programs in BGB | |
// Copyright (c) 2019 Fabien LOISON <https://flozz.fr/> | |
// ==== LICENSE ============================================================== | |
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
// Version 2, December 2004 | |
// | |
// Copyright (C) 2004 Sam Hocevar <[email protected]> | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
## Version 2, December 2004 | |
## | |
## Copyright (C) 2004 Sam Hocevar <[email protected]> | |
## | |
## Everyone is permitted to copy and distribute verbatim or modified | |
## copies of this license document, and changing it is allowed as long | |
## as the name is changed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script displays the battery level of a SteelSeries Acrtis 7 headset. | |
USING | |
----- | |
To use this script you must install hidapi (https://github.com/trezor/cython-hidapi): |
OlderNewer