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
// /etc/polkit-1/rules.d/10-rules.rules | |
// PolKit rules to allow mounting, rebooting and network management without a password. | |
// User needs to be in storage, power and network groups. | |
polkit.addRule(function(action, subject) { | |
if (action.id.match("org.freedesktop.udisks2.") && subject.isInGroup("storage")) { | |
return polkit.Result.YES; | |
} | |
}); |
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
User-agent: * | |
Disallow: /action | |
Disallow: /help | |
Disallow: /search | |
Allow: /action/showJournal | |
Allow: /action/showPublications | |
User-agent: facebookexternalhit | |
User-agent: LinkedInBot | |
User-agent: Twitterbot |
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
from dataclasses import dataclass | |
from typing import Tuple, Type, Dict | |
VertexType = Type['Vertex'] | |
@dataclass | |
class Vertex: | |
name: str | |
value: int |
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
diff --git a/trunk/config b/trunk/config | |
index 8ab7f658dda..d6a80d38e66 100644 | |
--- a/trunk/config | |
+++ b/trunk/config | |
@@ -1,11 +1,11 @@ | |
# | |
# Automatically generated file; DO NOT EDIT. | |
-# Linux/x86 5.10.15 Kernel Configuration | |
+# Linux/x86 5.11.8-arch1 Kernel Configuration | |
# |
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
#!/bin/bash | |
# | |
# A basic Gocryptfs mount helper. | |
MOUNT_NAME=$(realpath "$1") | |
BASE_NAME=$(basename "$MOUNT_NAME") | |
MOUNT_DIR="$HOME/mnt/$BASE_NAME" | |
logger "Mounting $MOUNT_NAME to $MOUNT_DIR" |
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
from Crypto.PublicKey import RSA | |
from Crypto.Signature.pkcs1_15 import PKCS115_SigScheme | |
from Crypto.Hash import SHA256 | |
import binascii | |
# Generate 1024-bit RSA key pair (private + public key) | |
keyPair = RSA.generate(bits=1024) | |
pubKey = keyPair.publickey() | |
# Sign the message using the PKCS#1 v1.5 signature scheme (RSASP1) |
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
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- See: man 5 fonts-conf --> | |
<!-- Antialias rules --> | |
<match target="font"> | |
<!-- | |
Subpixel smoothing: rgb, bgr, vrgb, vbgr, none |
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/python2 | |
import sys, PIL.Image | |
img = PIL.Image.open(sys.argv[-1]).convert('L') | |
threshold = 128*[0] + 128*[255] | |
for y in range(img.size[1]): | |
for x in range(img.size[0]): |
NewerOlder