#!/bin/sh
:loop
adb wait-for-usb-device reverse tcp:8081 tcp:8081
adb shell service call connectivity 33 i32 1 s16 text
adb wait-for-usb-disconnect
goto loop
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 websocket | |
try: | |
import thread | |
except ImportError: | |
import _thread as thread | |
import time | |
import json | |
import ssl | |
import sublime, sublime_plugin, os |
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
export const STATE_SEARCHING = "STATE_SEARCHING" | |
export const STATE_TOKENIZING_HASHTAG = "STATE_TOKENIZING_HASHTAG" | |
export const STATE_TOKENIZING_MENTION = "STATE_TOKENIZING_MENTION" | |
export const PREFIX_HASHTAG = "#" | |
export const PREFIX_MENTION = "@" | |
export const tokenize = function(text) { | |
let characters = [...text] | |
let state = STATE_SEARCHING | |
let tokens = [] |
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
export const STATE_LOCAL_PART = "STATE_LOCAL_PART" | |
export const STATE_DOMAIN = "STATE_DOMAIN" | |
export const ALPHANUMERICS = "abcdefghijklmnopqrstuvwxyz1234567890" | |
export const LOCAL_PARTS_CHARACTERS = [...ALPHANUMERICS, ..."!#$%&'*+-/=?^_`{|}~."] | |
export const LOCAL_DOMAIN_CHARACTERS = [...ALPHANUMERICS, ..."-."] | |
export const tokenize = function(input) { | |
const characters = [...input] |
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
export const STATE_IDENTIFYING = "STATE_IDENTIFYING" | |
export const STATE_TOKENIZING_NORMAL = "STATE_TOKENIZING_NORMAL" | |
export const STATE_TOKENIZING_SPECIAL = "STATE_TOKENIZING_SPECIAL" | |
export const TOKEN_SEPARATOR = "/" | |
export const TOKEN_SPECIAL_PREFIX = "{" | |
export const TOKEN_SPECIAL_SUFFIX = "}" | |
export const TOKEN_TYPE_NORMAL = "normal" | |
export const TOKEN_TYPE_SPECIAL = "special" |
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
if(ctrlPressed && button === 1) { | |
let currentIndex = 0 | |
for (let i = 0; i < this.groupState.metaWindows.length; i++) { | |
if(this.groupState.metaWindows[i] === this.groupState.lastFocused) { | |
currentIndex = i | |
} | |
} | |
if(currentIndex === this.groupState.metaWindows.length - 1) { | |
currentIndex = 0 | |
} else { |
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"?> | |
<metacity_theme> | |
<info> | |
<name>Arc</name> | |
<author>horst3180</author> | |
<copyright>horst3180</copyright> | |
<date>2015</date> | |
<description>Arc Metacity theme</description> | |
</info> |
- Download
script.pac
to/home/user/script.pac
- Go to FF network settings and select 'Automatic proxy configuration URL'
- Enter
file:///home/user/script.pac
- Enjoy
Note: If you're using SOCKS v5 you might want to also select 'Proxy DNS when using SOCKS v5'
Tested on 116.0.2 (64 bit) Arch Linux
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
let { XPIDatabase } = ChromeUtils.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); | |
XPIDatabase.isDisabledLegacy = (addon) => false; | |
XPIDatabase.mustSign = (aType) => false; |
OlderNewer