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
af_ZA | |
am_ET | |
ar_AR | |
as_IN | |
az_AZ | |
be_BY | |
bg_BG | |
bn_IN | |
br_FR | |
bs_BA |
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
Closely resembles Notepad++ default keymap. | |
CUT - Ctrl+X | |
COPY - Ctrl+C | |
PASTE - Ctrl+V | |
SELECTALL - Ctrl+A | |
UNDO - Ctrl+Z | |
REDO - Ctrl+Y |
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
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; Created on: December 10th 2016 | |
; Tutorial: https://www.tenforums.com/tutorials/72024-open-command-window-here-add-windows-10-a.html | |
[HKEY_CLASSES_ROOT\Directory\shell\cmd2] | |
@="@shell32.dll,-8506" | |
"Extended"=- |
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
# | |
# Problem, we have exception which returns some data (i.e. code) | |
# We would like to 'break' out of an exception in except block based on conditions | |
# Here are some approaches: | |
# | |
class CodeException(Exception): | |
def __init__(self, message, code): | |
super().__init__(message) | |
self.code = code |
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
FastDL notes: | |
- Files can either be uncompressed raw or bzip2 compressed (bz2 extension). | |
- srcds will try to download compressed version first, then try to download uncompressed version (NEEDS TESTING) | |
- Extention whitelist is good idea (either per folder or global as you don't want junk files in fastdl) | |
- 150MB compression limit exists for files (CSGO quirk): | |
- http://csgo-servers.1073505.n5.nabble.com/Problem-with-bz2-map-big-size-gt-150-MB-td11402.html | |
- If uncompressed file size is >= 150 MB, then do not compress and put it uncompressed on FASTDL OR put it on community workshop. | |
- Otherwise, download completes but unzipping fails. |
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
########## fastdl.example.com ########## | |
<VirtualHost *:443> | |
# SSL Config (omitted) | |
# Server Config (omitted) | |
# Allow indexing | |
<Directory /> | |
Options -Indexes | |
AllowOverride all | |
Require all granted |
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 CS:GO config | |
// Updated 21/08/2021 | |
echo "" | |
echo "##########################################" | |
echo " Executing autoexec.cfg" | |
echo "##########################################" | |
echo "" | |
// *********** Default 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
/** | |
* TargetAwareLink | |
* Will either return Link or Anchor link depending on if link is an internal/external link. | |
*/ | |
import React, { AnchorHTMLAttributes, PropsWithChildren } from 'react'; | |
import { Link as RouterLink } from 'react-router-dom'; | |
import type { LinkProps } from 'react-router-dom'; | |
type TargetAwareLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & |
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" |
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", |