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
#!/usr/bin/env python3 | |
import subprocess | |
import os | |
import sys | |
import shutil | |
import select | |
from collections import defaultdict | |
ERROR_COLOR = "\u001b[31m" | |
RESET_COLOR = "\u001b[0m" |
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
from pymongo import MongoClient | |
import json | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--con1") | |
parser.add_argument("--con2") | |
parser.add_argument("--collection") |
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
#!/usr/bin/env python3 | |
import mpd | |
def sorter(song): | |
return (int(song['date']), song['album'], int(song['disc']), int(song['track'])) | |
def main(): | |
client = mpd.MPDClient() |
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 gevent | |
from gevent.server import StreamServer | |
# we patch all | |
from gevent import monkey | |
monkey.noisy = False | |
monkey.patch_all() | |
import socket |
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
--------- beginning of crash | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: FATAL EXCEPTION: pool-3-thread-1 | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: Process: com.topjohnwu.magisk, PID: 3380 | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method) | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215) | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:197) | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505) | |
11-23 16:42:24.004 3380 3401 E AndroidRuntime: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:2 |
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
#!/bin/bash | |
set -e | |
debug=0 | |
reset=0 | |
bridge=virbr0 | |
storage= | |
basepath="$HOME/.cache/vm/" | |
image="$basepath/vmlinuz.efi" | |
kernelargs="" |
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
#!/usr/bin/micropython | |
import os | |
import ujson | |
import time | |
LIMIT = 100 * 1024 ** 2 | |
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
#!/bin/sh | |
macs="30:24:32:a9:f8:49 e0:2c:b2:57:45:64" | |
max="104857600" | |
for mac in $macs; do | |
datused=$(nlbw -c csv -g ip,mac | grep "\"$mac"\" | awk '{s+=$4 + S6} END {print s}') | |
#datused=$(cat /home/Jo/sample2.csv | grep "\"$mac"\" | awk '{s+=$4 + S6} END {print s}') | |
echo $mac $datused | |
ip=$(nlbw -c csv -g mac,ip | grep "\"$mac\"" | awk '{print $2}' | tr -d \") | |
if [ -z "$ip" ]; then |
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
10-14 22:32:24.895 1473 6619 W ActivityManager: Unable to start service Intent { cmp=com.teslacoilsw.notifier/.NotificationService (has extras) } U=0: not found | |
10-14 22:32:29.731 589 600 E secnvm : ch [sec_nvm_sp_nvm] Link Up timeout expired. | |
10-14 22:32:29.731 589 603 E secnvm : ch [sec_nvm_iuicc] Link Up timeout expired. | |
10-14 22:32:29.731 589 602 E secnvm : ch [sec_nvm_sampleapp] Link Up timeout expired. | |
10-14 22:32:29.733 589 600 E secnvm : ch [sec_nvm_sp_nvm] can't register spcom service | |
10-14 22:32:29.733 589 602 E secnvm : ch [sec_nvm_sampleapp] can't register spcom service | |
10-14 22:32:29.733 589 603 E secnvm : ch [sec_nvm_iuicc] can't register spcom service | |
10-14 22:32:29.733 589 600 E secnvm : fail to start Spcom Manager for sp_nvm (-19) | |
10-14 22:32:29.733 589 602 E secnvm : fail to start Spcom Manager for sampleapp (-19) |
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
#!/usr/bin/env python | |
import requests | |
import sys | |
import os | |
from tqdm import tqdm | |
def download_file_from_google_drive(id, destination=None): | |
URL = "https://docs.google.com/uc?export=download" |