This file contains hidden or 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"?> | |
<keymap> | |
<global> | |
<joystick> | |
<a>Select</a> <!-- button a --> | |
<b>Back</b> <!-- button b --> | |
<back>ActivateWindow(Home)</back> | |
<start>ActivateWindow(PlayerControlls)</start> | |
<x>ContextMenu</x> <!-- button x --> |
This file contains hidden or 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"?> | |
<keymap> | |
<global> | |
<joystick profile="game.controller.default"> | |
<a>Select</a> <!-- button a --> | |
<b>Back</b> <!-- button b --> | |
<back>ActivateWindow(Home)</back> | |
<start>ActivateWindow(PlayerControlls)</start> | |
<x>ContextMenu</x> <!-- button x --> |
This file contains hidden or 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"?> | |
<!-- This file contains the mapping of joystick buttons to actions within --> | |
<!-- Kodi. --> | |
<!-- --> | |
<!-- The format is: --> | |
<!-- <window> --> | |
<!-- <joystick profile="game.controller.default"> --> | |
<!-- <button>action</button> --> | |
<!-- </joystick> --> | |
<!-- </window> --> |
This file contains hidden or 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 | |
if [ -z "$1" ]; then | |
cat ~/.warprc | cut -f 1 -d : | |
exit 0 | |
fi | |
project=$(bash -c "echo $(grep "^${1}:" ~/.warprc | cut -f 2 -d :)") | |
session=$(echo $project | sha256sum | awk '{print $1}') | |
if tmux list-windows -F "#{session_name}:#{window_name}" | grep "code:$1" > /dev/null; then | |
tmux select-window -t "code:$1" |
This file contains hidden or 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
load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so; | |
#user html; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
This file contains hidden or 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 subprocess | |
import os | |
images = """\ | |
gcr.io/google-containers/kube-controller-manager v1.13.1 26e6f1db2a52 2 months ago 146MB | |
gcr.io/google-containers/kube-scheduler v1.13.1 ab81d7360408 2 months ago 79.6MB | |
gcr.io/google-containers/kube-apiserver v1.13.1 40a63db91ef8 2 months ago 181MB | |
coredns/coredns 1.2.6 f59dcacceff4 3 months ago 40MB | |
gcr.io/google-containers/coredns 1.2.6 f59dcacceff4 3 months ago 40MB | |
ghub.gig.tech/ovcimages/3rdparty/redis 3.2 87856cc39862 4 months ago 76MB | |
ghub.gig.tech/ovcimages/3rdparty/syncthing latest 0299b59eb58a 4 months ago 22.4MB |
This file contains hidden or 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 pysnmp.hlapi import * | |
from collections import defaultdict | |
dataset = defaultdict(dict) | |
for (errorIndication, | |
errorStatus, | |
errorIndex, | |
varBinds) in nextCmd(SnmpEngine(), | |
CommunityData('public', mpModel=0), |
This file contains hidden or 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
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: ----------------------------------------------------------------------- | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Starting Kodi (18.1 Git:20190224-nogitfound). Platform: Linux x86 64-bit | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Using Release Kodi x64 build | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Kodi compiled 2019-02-24 by GCC 8.2.1 for Linux x86 64-bit version 4.17.11 (266507) | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Running on Arch Linux rolling, kernel: Linux x86 64-bit version 5.0.0-arch1-1-ARCH | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: FFmpeg version/source: 4.0.3-Kodi | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Host CPU: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4 cores available | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi | |
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi | |
2019-03-27 21:55:04.11 |
This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"time" |
This file contains hidden or 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 | |
BTHW="A0:9E:1A:14:FE:10" # Enter your Phone Bluetooth hardware address | |
TIMEOUT=30000 | |
function expired() { | |
inactivetime=$(xprintidle) | |
echo $inactivetime | |
if [ "$inactivetime" -lt "$TIMEOUT" ]; then | |
return 1 |