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
bot_kick; | |
exec gamemode_competitive; | |
mp_free_armor 1; | |
mp_freezetime 3; | |
mp_weapons_allow_map_placed 1; | |
mp_humanteam any; | |
mp_restartgame 1; | |
mp_round_restart_delay 3; | |
mp_roundtime 80250; | |
mp_maxrounds 30; |
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
message Keepalive { | |
Chat focus = 1; | |
} | |
message Chat { | |
bytes uuid = 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
package com.dash; | |
import java.io.*; | |
import java.io.FileOutputStream; | |
import java.nio.file.DirectoryStream; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.Path; | |
import java.io.IOException; | |
import java.util.zip.GZIPOutputStream; |
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
#nice loop for input | |
dice_count=input("How many dices do you want to use? Min 1, max 5") | |
while not dice_count.isnumeric() or int(dice_count) not in range(1,5): | |
dice_count=input(f'Sorry, {dice_count} is not a number, please input a number between 1 and 5.') | |
dice_count = int(dice_count) | |
#declare an array of soon-to-be values that we will modify as we go | |
dice_states = ['<empty>']*dice_count |
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 | |
# updates versions in requirements.txt file | |
cat requirements.txt | grep -v '^\-e' | cut -d= -f1 | xargs -I {} -n1 -P1 sh -c "echo \`curl -s https://pypi.org/project/{}/ | sed -e 's/^[[:space:]]*//' | grep '{} [0-9]' | sed -e 's/ /==/g'\`" |
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
from rest_framework import viewsets | |
from rest_framework.status import HTTP_400_BAD_REQUEST | |
from rest_framework.response import Response | |
from mixtape.music import serializers | |
from mixtape.music.models import Track | |
from mixtape.music.models import Artist | |
from mixtape.music.models import Album |
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
from rest_framework import viewsets | |
from rest_framework.status import HTTP_400_BAD_REQUEST | |
from rest_framework.response import Response | |
from mixtape.music import serializers | |
from mixtape.music.models import Track | |
from mixtape.music.models import Artist | |
from mixtape.music.models import Album |
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 [[ -z $(pip3 show scdl) ]]; then | |
sudo pip3 install scdl | |
fi | |
SCDL_TARGET="$1" | |
shift | |
SCDL_ADD_ARGS="$@" | |
SCDL_TARGET_DIR="$(pwd)/$SCDL_TARGET" |
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 [[ -z $(pip3 show scdl) ]]; then | |
sudo pip3 install scdl | |
fi | |
SCDL_TARGET="$1" | |
shift | |
SCDL_ADD_ARGS="$@" | |
SCDL_TARGET_DIR="$(pwd)/$SCDL_TARGET" |
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 python | |
import sys | |
import stripe | |
email = sys.argv[1] | |
print(stripe.customer.create(email=email)) |
NewerOlder