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/bash | |
if [ $# != 2 ]; then | |
echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa" | |
exit 1 | |
fi | |
if ! [ -f "$1" ]; then | |
echo "'$1' does not exist" | |
exit 1 |
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/bash | |
# Use brew install --cask --force x y z to reinstall the apps found with brew | |
# Get list of all installed applications on Mac | |
IFS=$'\n' app_list=($(mdfind "kMDItemContentTypeTree == 'com.apple.application' && kMDItemCFBundleIdentifier != 'com.apple.Installer' && kMDItemCFBundleIdentifier != 'com.apple.systempreferences'")) | |
# Get the response of the Brew Cask JSON API | |
brew_cask_api_response=$(curl -s https://formulae.brew.sh/api/cask.json) |
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
; Define a global variable to keep track of the next window index | |
global NextWindow := 1 | |
; Hotkey: Alt + ` | |
!`:: | |
; Get the process name and ID of the active window | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, ActiveWindowID, ID, A | |
; Get a list of all windows associated with the active process |
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
def has_passed_spe(unit_validation_df): | |
spe_tested = unit_validation_df['spe_ucn'] | |
last_spe_accepted = unit_validation_df['last_spe_accepted_by_algo'] | |
last_spe_days = unit_validation_df['days_since_last_spe'] | |
last_spe_recent = last_spe_days <= 120 | |
validation_conditions = { | |
'spe_passed': spe_tested & unit_validation_df['SPE_accepted_by_algo'], | |
'second_spe_passed': spe_tested & ~unit_validation_df['SPE_accepted_by_algo'] & unit_validation_df['second_spe_passed'], | |
'not_past_due': ~unit_validation_df['last_spe_is_past_due'], |
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) { |
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 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
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
<?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
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(): |