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
sudo su | |
yum check-update || yum update | |
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh | |
systemctl start docker |
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 multiprocessing | |
import os | |
import threading | |
import time | |
import webview | |
def get_current_url(): |
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 re | |
from mutagen import easyid3 | |
path = '/Users/name/Downloads/Book' | |
def compf(s: str) -> int: | |
num = next(re.finditer(r"\d+_\d+", s)).group() | |
track, disc = [int(i) for i in num.split('_')] |
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 argparse | |
import logging | |
import os | |
import re | |
import subprocess | |
import sys | |
from common.utils import imputil | |
from stdlib_list import stdlib_list |
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
income = { | |
'1': 3.0, | |
'2': 3.0, | |
'3': 3.0, | |
'4': 3.0, | |
'5': 3.0, | |
'6': 3.0, | |
'7': 3.0, | |
'8': 3.0, | |
'9': 3.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
import os | |
import pprint | |
import subprocess | |
# input | |
custom_reqs_current = "" | |
omnibus_reqs_old = "" | |
fatmouse_agent_reqs = [] |
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
def cleanup_gcs(): | |
branches = _get_git_branches() | |
project_bucket = '{}/{}'.format(env.ci.bucket, env.ci.project) | |
for obj in local( | |
'gsutil ls -R {}'.format(project_bucket), capture=True): | |
if any([branch in obj for branch in branches]): | |
continue | |
else: | |
local('gsutil -m rm -R {}'.format(obj)) |
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
version=`python setup.py --version` | |
export EMBED_FAM_AGENT=yes | |
hosts="windows" | |
pkg_types="msi" | |
fab clone_fam | |
if [[ version -eq "3.10" ]]; then | |
fab -H root@centos-5,root@centos-5-32 -P build_rpm_deps --colorize-errors --ssh-config-path=/root/.ssh/config --user=root | |
hosts="$hosts,root@ubuntu-1004,root@ubuntu-1004-32,root@centos-5,root@centos-5-32" |
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
def compare_deps(freeze1, freeze2): | |
freeze1 = freeze1.splitlines() | |
freeze2 = freeze2.splitlines() | |
print('arg1 contains {} items, arg2 contains {} items'.format(len(freeze1), len(freeze2))) | |
for item1 in freeze1: | |
if '==' not in item1: | |
continue | |
name1, ver1 = item1.split('==') | |
for item2 in freeze2: | |
if '==' not in item2: |
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"?> | |
-<key name="Software"> | |
-<key name="ConEmu"> | |
-<key name=".Vanilla" build="140707" modified="2015-10-19 08:57:27"> |
NewerOlder