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
// Byte's CS2 config | |
// Updated 12/10/2023 | |
echo "" | |
echo "##########################################" | |
echo " Executing Byte's autoexec.cfg" | |
echo "##########################################" | |
echo "" | |
// *********** Binds ***************** |
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 praw | |
import regex as re | |
reddit = praw.Reddit( | |
client_id="client_id", | |
client_secret="client_secret", | |
user_agent="MobeigiTest", | |
) | |
submission = reddit.submission(id="pfpyxc") |
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 seeds = document.getElementsByClassName('csgofloat-itemseed'); | |
var patterns = [101,404,684]; | |
for (var i = 0; i < seeds.length; ++i) { | |
var seed = Number(seeds[i].textContent.replace('Paint Seed: ', '')); | |
if (patterns.includes(seed)) { | |
console.log("Found seed: " + seed); | |
}; | |
} |
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 mechanicalsoup | |
import json | |
URL = 'https://menu.gog.com/v1/store/configuration?locale=en-US¤cy=USD&country=' | |
country_codes = ['AR','AU','AT','BS','BE','BO','BR','CA','CL','CN','CO','CR','HR','CU','CZ','DK','DO','EC','EG','SV','FI','FR','DE','GR','GT','HN','HK','IN','IE','IL','IT','JM','JP','LU','MX','MA','NL','NZ','NI','NG','NO','PY','PE','PL','PT','PR','RU','SA','ZA','ES','SE','CH','TW','TR','UK','US','UY','VE','SD','II','AF','AL','DZ','AO','AG','AW','AZ','BH','BD','BB','BY','BZ','BM','BT','BW','VG','BN','BG','BF','MM','BI','CM','CV','KY','KM','CG','CY','YE','DJ','DM','GQ','EE','FJ','GA','GM','GH','GD','GN','GW','GY','HT','HU','IS','ID','IR','CI','JO','KE','KW','KP','KG','LA','LV','LB','LR','LI','LT','MG','MY','ML','MT','MR','MN','MC','MZ','NP','AN','NE','OM','PK','PA','PH','QA','RO','KN','LC','VC','WS','SN','SG','SB','SZ','SY','TH','TT','TN','UA','AE','VN','YU','ZW','ZR','ET','KV','AX','AS','AD','AI','AQ','AM','BJ','BA','BV','IO','KH','CF','TD','CX','CC','CD','CK','ER','FK','FO','GF','PF','TF', |
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
# | |
# This file contains VM parameters for Trader Workstation. | |
# Each parameter should be defined in a separate line and the | |
# last line must be followed by a line feed. No leading or | |
# trailing whitespaces are allowed in the same line, where a | |
# parameter is defined. | |
# | |
# Lines starting with a '#' character are treated as comments | |
# and ignored. Additionally, if a line contains a | |
# '### keep on update' string, all parameters defined below will |
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
// Slack User Notification Preference Bulk Update | |
// By Mo Beigi | |
const slackTeamId = "EXAMPLE17"; | |
const localConfigJson = JSON.parse(localStorage.localConfig_v2); | |
const slackUrl = localConfigJson.teams[slackTeamId].url; | |
let channel_ids = []; | |
// client.boot contains list of channel ids user is subscribed to amongst other things | |
await fetch(slackUrl + "api/client.boot?" + |
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 | |
# The script below adds the branch name automatically to | |
# every one of your commit messages. The regular expression | |
# below searches for JIRA issue key's. The issue key will | |
# be extracted out of your branch name | |
# | |
# A variant of grep support the -P flag for PCRE is required | |
# | |
REGEX_ISSUE_ID="((?!([A-Z0-9a-z]{1,10})-?$)[A-Z]{1}[A-Z0-9]+-\d+)" | |
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
{ | |
"receiver": "webhook", | |
"status": "firing", | |
"alerts": [ | |
{ | |
"status": "firing", | |
"labels": { | |
"alertname": "Test", | |
"dc": "eu-west-1", | |
"instance": "localhost:9090", |
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
#!/usr/bin/env bash | |
# Server Backup Script | |
# Backs up: | |
# MySQL databases | |
# Important files on file system | |
# Variables | |
TIMESTAMP=$(date +"%d-%m-%Y_%H-%M-%S") | |
BACKUP_DIR="/root/backups/full" |
NewerOlder