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
$include /etc/inputrc | |
# mappings for "page up" and "page down" to search the history | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
# mappings for Ctrl-left-arrow and Ctrl-right-arrow (big skip) | |
"\e[1;3C": shell-forward-word | |
"\e[1;5C": shell-forward-word | |
"\e[1;3D": shell-backward-word |
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
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
import org.jenkinsci.plugins.workflow.job.WorkflowRun | |
import org.jenkinsci.plugins.workflow.flow.FlowExecution; |
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
import time | |
from neopixel import NeoPixel | |
from machine import Pin, I2C | |
from math import floor, ceil | |
from ntptime import settime | |
import tsl2561 # https://github.com/adafruit/micropython-adafruit-tsl2561 | |
color_m = (0.65, 0.65, 0) | |
width_m = 2.0 | |
color_h = (0, 0, 1.0) |
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 typing import Any, Mapping, Optional, Sequence, TypeVar, Union | |
import tensorflow as tf | |
from tensorflow.keras import layers | |
T = TypeVar('T') | |
Nested = Union[T, Sequence[T], Mapping[Any, T]] | |
class AutoShapeMixin: |
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
### README | |
# This Python scripts exports all the OneNote notebooks linked to your Microsoft account to HTML files. | |
## Output | |
# The notebooks will each become a subdirectory of the `output` folder, with further subdirectories | |
# for the sections within each notebook and the pages within each section. Each page is a directory | |
# containing the HTML file `main.html` and two directories `images` and `attachments` (if necessary) | |
# for the images and attachments. Any sub-pages will be subdirectories within this one. | |
## Setup |
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 hooks script syncs task warrior to the configured task server without blocking. | |
# The on-exit event is triggered once, after all processing is complete. | |
# Make sure hooks are enabled and this hook script is executable. | |
# Run `task diag` for diagnostics on the hook. | |
import sys | |
import json |
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 | |
import sys | |
import base64 | |
import requests | |
import json | |
import subprocess | |
import tempfile | |
image = tempfile.NamedTemporaryFile().name | |
subprocess.run(['gnome-screenshot', '-a', '-f', image, '--display=:0'], check=True) |
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 | |
usage=" | |
Usage: | |
wall [options] [message] | |
Write a message to all users. | |
Options: | |
-n, --nobanner do not print banner |