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
var sendMessage = ""; | |
setInterval(() => { | |
var textInput = document.querySelector("[name=note]"); | |
if (textInput && !textInput.value) { | |
sendMessage = `Hey ${document | |
.querySelector("div.recruiting-contact span.name") | |
.textContent.replace( | |
/ .*/, | |
"" | |
)}. I'm really looking forward to learning more about ${document |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
// timespent is EMPTY AND assignee = currentUser() AND resolution != Unresolved ORDER BY updated DESC | |
Number.prototype.pad = function (size) { | |
var s = String(this); | |
while (s.length < (size || 2)) { | |
s = "0" + s; | |
} | |
return s; |
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/sh | |
ios-sim-inspector() { | |
if [ $# -eq 0 ]; then | |
printf "\n Usage: $ ios-sim-inspector <index-page-title> <device-name>\n\n" | |
printf " * <index-page-title> cannot have the same name as the folder containing it :(\n\n" | |
else | |
appName="$1" | |
# Safari has been very stubborn about reloading "Develop" menu |
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
import os | |
import sys | |
import time | |
from subprocess import Popen, DEVNULL | |
import datetime | |
from scapy.all import IP, UDP, NTP | |
from netfilterqueue import NetfilterQueue | |
def get_switch_ip(): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>Normal</string> | |
<key>CreationDate</key> | |
<real>622511872.68444896</real> | |
<key>Macros</key> |
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
const vscode = require('vscode'); | |
const path = require('path'); | |
const fetch = require("node-fetch"); | |
const jsdom = require('jsdom') | |
const getmac = require('getmac') | |
let global_questions = []; | |
let global_question_index = 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
class TwitchPyramid { | |
ChatContainer = 'section[data-test-selector="chat-room-component-layout"]'; | |
ChatLine = '.chat-line__message'; | |
ROOT = '#root div'; | |
size; | |
constructor() { | |
this.store = this.getStore(); | |
this.chatService = this.getChatService(); | |
this.userLogin = this.chatService?.props?.currentUserLogin; |
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
{ | |
"title": "Swap Left Option/Command only in Dota2", | |
"rules": [ | |
{ | |
"description": "Left Control to Option", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control" |
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
class TwitchCommandHandler { | |
// Constructor for initializing the command handler | |
constructor() { | |
this.commands = new Map(); // Map for storing command information | |
this.cooldowns = new Map(); // Map for storing command cooldowns | |
this.bypassCooldownUsers = []; // List of users that are allowed to bypass the cooldown | |
} | |
// Function for adding a user to the list of users that are allowed to bypass the cooldown | |
addUserToBypassList(username) { |