I hereby claim:
- I am tyvsmith on github.
- I am tsmith (https://keybase.io/tsmith) on keybase.
- I have a public key ASDtWZRebiECxV3QSVPeXXAD4--O4D2P3eZDyX6t03V2lAo
To claim this, I am signing this object:
#!/bin/bash | |
# Run on a cron from the host. | |
NAMESPACE=ix-qbittorrent | |
CONTAINER_VPN=qbittorrent-vpn | |
CONTAINER_BITTORRENT=qbittorrent | |
LAST_PORT_FILE=.last_gluten_forwarded_port | |
# Fetch the name of the pod with the label "app.kubernetes.io/instance=qbittorrent" |
import cv2 | |
import tkinter as tk | |
from PIL import Image, ImageTk | |
import threading | |
import google.generativeai as genai | |
import google.ai.generativelanguage as glm | |
#Code written by Gemini Pro -- don't blame author for quality | |
API_KEY="YOUR_KEY_HERE" # add your key here |
#Install into /usr/local/opnsense/service/conf/actions.d/actions_ids_custom_ip.conf then can enable a cron from the web UI | |
[update-ip] | |
command:python3 /root/scripts/update_ids_ips.py | |
parameters: | |
type:script | |
message:update IDS homenet IPs from WAN | |
description:Update IDS homenet IPs from WAN |
class Setting < ActiveRecord::Base | |
validates_uniqueness_of :var | |
validates_presence_of :value | |
after_save :send_cron_later | |
#Setting.for(:display).set=(value) | |
def self.for(var) | |
find_or_create_by_var(var) |
I hereby claim:
To claim this, I am signing this object:
public class MyApp extends Application { | |
private final String PACKAGE="me.tysmith.app"; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
Crashlytics.start(new CrashContextWrapper(this, PACKAGE)); | |
} | |
} |
public static final String SEARCH_NOTES = "com.evernote.action.SEARCH_NOTES"; | |
public static final String VIEW_NOTE_LIST = "com.evernote.action.VIEW_NOTELIST"; | |
public static final String NOTE_PICKER = "com.evernote.action.NOTE_PICKER"; | |
public static final String VIEW_NOTE = "com.evernote.action.VIEW_NOTE"; | |
public static final String NEW_NOTE = "com.evernote.action.CREATE_NEW_NOTE"; | |
public static final String EDIT_NOTE = "com.evernote.action.EDIT_NOTE"; | |
public static final String UPDATE_NOTE = "com.evernote.action.UPDATE_NOTE"; | |
public static final String DELETE_NOTE = "com.evernote.action.DELETE_NOTE"; |
function dex-method-count() { | |
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
} | |
function dex-method-count-by-package() { | |
dir=$(mktemp -d -t dex) | |
baksmali $1 -o $dir | |
for pkg in `find $dir/* -type d`; do | |
smali $pkg -o $pkg/classes.dex | |
count=$(dex-method-count $pkg/classes.dex) |
public class CrashReporting { | |
public static class GenericReportingException extends Exception { | |
public GenericReportingException(){} | |
public GenericReportingException(String str){ | |
super(str); | |
} | |
} |
//Creating the business note store makes network requests | |
//to validate the auth token for the business | |
mEvernoteSession.getClientFactory().createBusinessNoteStoreClient( | |
new OnClientCallback<AsyncBusinessNoteStoreClient>() { | |
@Override | |
public void onSuccess(final AsyncBusinessNoteStoreClient client) { | |
//This is running in the UI Thread | |
client.listNotebooks(new OnClientCallback<List<Notebook>() { | |
@Override |