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
mike@server:~$ zfs list -o name,compression,recsize,refcompressratio,used,lused,refer,lrefer tank/backups/fullnodes/bsc_cp | |
NAME COMPRESS RECSIZE REFRATIO USED LUSED REFER LREFER | |
tank/backups/fullnodes/bsc_cp gzip-9 1M 1.45x 7.94T 12.0T 7.94T 12.0T | |
mike@server:~$ sudo du -sh --apparent-size /backups/fullnodes/bsc_cp/ | |
8.3T /backups/fullnodes/bsc_cp/ | |
mike@server:~$ sudo du -sh /backups/fullnodes/bsc_cp/ | |
8.0T /backups/fullnodes/bsc_cp/ |
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
mike@server:~$ zfs list -t filesystem -o name,used,lused,compressratio,refer,lrefer,refcompressratio,usedbysnapshots,mountpoint tank/backups/fullnodes/bsc_cp | |
NAME USED LUSED RATIO REFER LREFER REFRATIO USEDSNAP MOUNTPOINT | |
tank/backups/fullnodes/bsc_cp 3.21T 4.89T 1.47x 3.21T 4.89T 1.47x 0B /backups/fullnodes/bsc_cp | |
mike@server:~$ zpool status | |
pool: tank | |
state: ONLINE | |
scan: scrub repaired 0B in 0 days 10:53:37 with 0 errors on Sun Mar 13 11:17:39 2022 | |
config: |
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
On your quest, you found the Deer Legend. He didn't talk much. But when he was leaving for his own quest, he said something in a foreign language before the urn smashed him. So you took a bit of his loot left behind. | |
79 110 32 121 111 117 114 32 113 117 101 115 116 44 32 121 111 117 32 102 111 117 110 100 32 116 104 101 32 68 101 101 114 32 76 101 103 101 110 100 46 32 72 101 32 100 105 100 110 39 116 32 116 97 108 107 32 109 117 99 104 46 32 66 117 116 32 119 104 101 110 32 104 101 32 119 97 115 32 108 101 97 118 105 110 103 32 102 111 114 32 104 105 115 32 111 119 110 32 113 117 101 115 116 44 32 104 101 32 115 97 105 100 32 115 111 109 101 116 104 105 110 103 32 105 110 32 97 32 102 111 114 101 105 103 110 32 108 97 110 103 117 97 103 101 32 98 101 102 111 114 101 32 116 104 101 32 117 114 110 32 115 109 97 115 104 101 100 32 104 105 109 46 32 83 111 32 121 111 117 32 116 111 111 107 32 97 32 98 105 116 32 111 102 32 104 105 115 32 108 111 111 116 32 108 101 102 116 32 98 101 104 105 110 100 46 | |
On your q |
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 telethon import TelegramClient | |
import asyncio | |
client = TelegramClient(...).start() | |
loop = asyncio.get_event_loop() # == client.loop | |
me = loop.run_until_complete(client.get_me()) | |
print(me.username) |
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
$CountersList = @{ | |
"\Processor Information(*)\% Idle Time" = "Percent_Idle_Time" | |
"\Processor Information(*)\% Interrupt Time" = "Percent_Interrupt_Time" | |
"\Processor Information(*)\Interrupts/sec" = "Interrupts_persec" | |
"\Processor Information(*)\% Privileged Time" = "Percent_Privileged_Time" | |
"\Processor Information(*)\% User Time" = "Percent_User_Time" | |
"\Processor Information(*)\% Processor Time" = "Percent_Processor_Time" | |
"\Processor Information(*)\% DPC Time" = "Percent_DPC_Time" | |
"\LogicalDisk(*)\% Idle Time" = "Percent_Idle_Time" | |
"\LogicalDisk(*)\% Disk Time" = "Percent_Disk_Time" |
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
2018-09-26 10:47:57,881:DEBUG:Decoding packet of 104 bytes... | |
2018-09-26 10:47:57,884:DEBUG:Handling RPC result for message 6605560365003190416 | |
2018-09-26 10:47:57,884:DEBUG:Receiving items from the network... | |
2018-09-26 10:47:58,144:DEBUG:Decoding packet of 872 bytes... | |
2018-09-26 10:47:58,162:DEBUG:Handling gzipped data | |
2018-09-26 10:47:58,163:DEBUG:Handling update Updates | |
2018-09-26 10:47:58,164:DEBUG:Receiving items from the network... | |
2018-09-26 10:47:58,165:DEBUG:Decoding packet of 872 bytes... | |
2018-09-26 10:47:58,184:DEBUG:Handling gzipped data | |
2018-09-26 10:47:58,185:DEBUG:Handling update Updates |
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
event is a custom object defined above | |
buttons = re.findall(r"text='([-\w ]*)'", event.stringify(), re.MULTILINE) | |
buttons = list(set(buttons)) | |
buttons.remove('View pokemon') | |
for number in buttons: | |
if number != " ": | |
last_request = functools.partial(event.click, text=number) | |
await event.click(text=number) | |
return |
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
def function_x(enemy): | |
print(enemy) | |
def function_y: | |
enemy = "energizer" | |
function_x(enemy=enemy) |
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
""" | |
Pokemon effectiveness calculator (from the perspective of the attacker) | |
An attack move can have only one type (ex: fire, water, ground, etc) | |
A pokemon itself (the enemy in this case) can have one or two types (ex: fire, fire & flying, grass & bug) | |
""" | |
normal = {"Normal": 1, "Fighting": 2, "Flying": 1, "Poison": 1, "Ground": 1, "Rock": 1, "Bug": 1, "Ghost": 0, "Steel": 1, "Fire": 1, "Water": 1, "Grass": 1, "Electric": 1, "Psychic": 1, "Ice": 1, "Dragon": 1, "Dark": 1, "Fairy": 1} | |
fighting = {"Normal": 1, "Fighting": 1, "Flying": 2, "Poison": 1, "Ground": 1, "Rock": 0.5, "Bug": 0.5, "Ghost": 1, "Steel": 1, "Fire": 1, "Water": 1, "Grass": 1, "Electric": 1, "Psychic": 2, "Ice": 1, "Dragon": 1, "Dark": 0.5, "Fairy": 2} | |
flying = {"Normal": 1, "Fighting": 0.5, "Flying": 1, "Poison": 1, "Ground": 0, "Rock": 2, "Bug": 0.5, "Ghost": 1, "Steel": 1, "Fire": 1, "Water": 1, "Grass": 0.5, "Electric": 2, "Psychic": 1, "Ice": 2, "Dragon": 1, "Dark": 1, "Fairy": 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
2018-09-21 22:58:11,101:DEBUG:Using selector: SelectSelector | |
2018-09-21 22:58:11,105:INFO:Connecting to 149.154.175.50:443... | |
2018-09-21 22:58:11,105:DEBUG:Connection attempt 1... | |
2018-09-21 22:58:11,162:DEBUG:Connection success! | |
2018-09-21 22:58:11,162:DEBUG:Starting send loop | |
2018-09-21 22:58:11,162:DEBUG:Starting receive loop | |
2018-09-21 22:58:11,162:INFO:Connection to 149.154.175.50 complete! | |
2018-09-21 22:58:11,163:DEBUG:Packing 1 outgoing message(s) InvokeWithLayerRequest... | |
2018-09-21 22:58:11,164:DEBUG:Sending 120 bytes... | |
2018-09-21 22:58:11,165:DEBUG:Receiving items from the network... |
NewerOlder