I hereby claim:
- I am xevion on github.
- I am xevion (https://keybase.io/xevion) on keybase.
- I have a public key ASAm89LfSNcdbKWjNBgQHChPenOqyJRNxS7b_vF7uSNpYAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
let prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService); | |
let autocomplete = 'browser.urlbar.autoFill'; | |
let history = 'browser.urlbar.suggest.history'; | |
prefs.setBoolPref(history, !prefs.getBoolPref(history)); | |
prefs.setBoolPref(autocomplete, !prefs.getBoolPref(autocomplete)); |
class Table(Base): | |
id = Column(Integer, primary_key=True) | |
_name = Column('name', String(24)) | |
@property | |
def name(self): | |
return self._name; | |
@name.setter | |
def name(self, value): |
Proxy requests using Webpack dev server to avoid cors in development mode.
In your webpack.config file add:
"devServer":{
"proxy": {
"/api": {
"target": 'https://my-target.com',
"pathRewrite": { '^/api': '' },
#!/bin/bash | |
[[ ! -t 1 ]] && powershell.exe Get-Clipboard | |
[[ ! -t 0 ]] && clip.exe | |
if [[ -t 1 && -t 0 ]]; then | |
echo Nothing specified to copy or paste! >&2 | |
exit 1 | |
fi |
import { useCallback, useState, useEffect, useRef } from "react"; | |
import { | |
LiteralToPrimitive, | |
UnpackNestedValue, | |
useFormContext | |
} from "react-hook-form"; | |
import { useDebouncedCallback } from "use-debounce"; | |
/** | |
* Returns state of a warning for the given form field. |
""" | |
If you are not using this inside a cog, add the event decorator e.g: | |
@bot.event | |
async def on_command_error(ctx, error) | |
For examples of cogs see: | |
https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be | |
For a list of exceptions: | |
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exceptions |
# Usage: python3 tldr_fail_test.py ${HOSTNAME} | |
# | |
# You can optionally pass the destination IP with --addr | |
# | |
# Author: davidben [at] chromium [dot] org | |
import argparse | |
import socket | |
import time |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Updates all metadata in the Tautulli database after moving Plex libraries. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi, requests | |
from plexapi.server import PlexServer | |
import requests |