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://old.reddit.com/r/Strava/comments/hw7zh0/how_to_bulk_edit_shoes_on_your_activities/ | |
// Follow instructions above to get shoe ID | |
var shoe_id = 123456789 | |
// Open inline/quick edit for each activity | |
document.querySelectorAll('.quick-edit').forEach(b => b.click()) | |
// Unhide shoe selection if hidden due to it being "run-only" | |
var shoes = document.querySelectorAll('.shoe-id') | |
for (var i = 0; i < shoes.length; i++) { |
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/default/ufw | |
# ufw default deny outgoing | |
# ufw default deny incoming | |
DEFAULT_INPUT_POLICY="DROP" | |
DEFAULT_OUTPUT_POLICY="DROP" | |
# Consider /etc/ufw/before.rules etc | |
$ ufw allow out 22/tcp | |
$ ufw allow out 53/udp | |
$ ufw allow out 80/tcp |
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
// console.log(p[0].children) | |
//var p = document.querySelectorAll("[class*=emojiItem]"); | |
// or console.log() stuff | |
// var a = window.open(""); | |
// emojiImage-123abc is used for server settings emoji | |
// emojiItem-123abc is used for the emoji picker, but can be tricky to filter out | |
// default emojis or just the emoji of the server you're in | |
var p = document.querySelectorAll("[class*=emojiImage]"); |
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 logging | |
import sys | |
import sublog | |
logger = logging.getLogger() | |
# http://stackoverflow.com/a/24956305/1076493 |
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 | |
#---------------------------------------# | |
# Python 2.7.3 Install on CentOS 5 # | |
# https://gist.github.com/timss/5122008 # | |
# # | |
# Installs to /usr/local/{bin,lib} # | |
# Seperate from system default # | |
# /usr/bin/python(2.4) # | |
#---------------------------------------# |
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 | |
import apscheduler.scheduler | |
import daemon.runner | |
import os.path | |
import sys | |
import time | |
class Core(): | |
def __init__(self): |
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
- qemu/kvm 2.6 | |
- edk2.git/ovmf x64 20160728 | |
- libvirt-daemon 2.0.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
- hosts: all | |
connection: local | |
vars: | |
ask_become_pass: yes | |
tasks: | |
- name: Configure systemd to restart bluetooth service on resume | |
copy: | |
dest: /lib/systemd/system-sleep/bluetooth-resume | |
mode: 0755 | |
content: | |
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 | |
import html2text | |
import re | |
import sys | |
import urllib2 | |
def get_ip(host): | |
trac = "http://www.ip-adress.com/ip_tracer/" | |
pat = "ISP of this IP \[\?\]:\n\n([a-zA-Z ]+)" |
NewerOlder