- Graphics
- Assets
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
https://github.com/nuvious/pam-duress | |
A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password. | |
https://github.com/uber/pam-ussh | |
uber's ssh certificate pam module | |
https://github.com/Yubico/yubico-pam | |
Yubico Pluggable Authentication Module (PAM) | |
https://github.com/hamzasood/pam_touchid |
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
const channels = [...document.querySelectorAll("#main-link.channel-link")].map(e => { | |
const [, a, b] = e.href.match("/((?:user)|(?:channel))/(.*)$"); | |
const feed = "https://www.youtube.com/feeds/videos.xml?" + (a === "user" ? "user=" : "channel_id=") + b; | |
const channelName = e.querySelector("yt-formatted-string.ytd-channel-name").innerText; | |
return [feed, channelName]; | |
}); | |
if (channels.length == 0) { | |
alert("Couldn't find any subscriptions"); | |
} else { | |
console.log(channels.map(([feed, _]) => feed).join("\n")); |
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 | |
show-help() { | |
BASENAME=$(basename "$0") | |
echo "Usage: $BASENAME [device-name] [optional-resolution] [optional-density]" | |
exit 1 | |
} | |
[[ $1 = "-h" || $1 = "--help" ]] && show-help |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
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
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
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 OpsIPInfoAdmin(admin.ModelAdmin): | |
def get_readonly_fields(self, request, obj=None): | |
# make all fields readonly | |
readonly_fields = list( | |
set([field.name for field in self.opts.local_fields] + | |
[field.name for field in self.opts.local_many_to_many]))) | |
if 'is_submitted' in readonly_fields: | |
readonly_fields.remove('is_submitted') |
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
# Python Project | |
# | |
# Some targets to lint your code, run tests, builds and do some cleanup. | |
# Works fine with tox and Travis, etc. | |
# | |
# This setup assumes that you take care of the virtual environment setup | |
# yourself and that the needed requirements are installed. And also that | |
# you configure your tools. So edit your own `setup.cfg` or `.tox.ini` | |
# with the settings needed for the tools. | |
# |
NewerOlder