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/python3 | |
# Original script by frutis, mods by Leo-PL | |
# Usage: | |
# 1. uncomment proper section for your router (MF283+, MF286, MF286A, MF286D). | |
# 2. set correct IME if you have one | |
# 3. Set correct version ID (the integrate_version from NVRAM) for your device if not already found here | |
# 4. Run the script - it shall return the URL of data update, if available for the set base version. | |
from base64 import b64decode, b64encode |
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
# The settings in this file are used by the program ntpdate-debian, but not | |
# by the upstream program ntpdate. | |
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, | |
# so you only have to keep it in one place. | |
NTPDATE_USE_NTP_CONF=yes | |
# List of NTP servers to use (Separate multiple servers with spaces.) | |
# Not used if NTPDATE_USE_NTP_CONF is yes. | |
NTPSERVERS="ntp.ubuntu.com" |
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 | |
## /usr/local/share/functions/inhibit-shutdown-sleep-wrapper.py | |
## | |
## inhibit shutdown and sleep as long as program is running (using delay mode) | |
## so that linked app can do necessary stuff before shutdown and sleep | |
## | |
## make symbolic link to this file named as the program executable | |
## that shall be run between DBus calls and put it in /usr/local/... | |
## directory that is in the PATH |
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/sh | |
# Script to toggle display configuration on a laptop | |
# authors: Ruben Verhack, ste-fan | |
config="/tmp/display.conf" | |
# get output names with `xrandr -q` | |
external=VGA1 | |
extMode='--mode 800x600' | |
internal=LVDS1 | |
intMode='--auto' |
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
# Helper functions that allow string arguments for dplyr's data modification functions like arrange, select etc. | |
# Author: Sebastian Kranz | |
# Examples are below | |
#' Modified version of dplyr's filter that uses string arguments | |
#' @export | |
s_filter = function(.data, ...) { | |
eval.string.dplyr(.data,"filter", ...) | |
} |