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
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 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
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 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" 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 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 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 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
#!/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 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
// 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 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
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 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
<?php | |
// Usage: file.php?s1=FirstToken&s2=SecondToken&car=YourCarName | |
class TeslaKeys | |
{ | |
var $filename = '.tesla_tokens.json'; | |
function __construct() | |
{ |
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 qs from 'qs'; | |
import { parse } from 'url'; | |
import omit from 'lodash/omit'; | |
import merge from 'lodash/merge'; | |
/* eslint no-useless-escape: 0 */ | |
const rxClean = /(\(:[^\)]+\)|:[^\/]+\/?)/g; | |
/** | |
* Url modification |