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
class Calculator | |
DAYS_PER_YEAR=365 | |
attr_accessor :years, :rate, :amount | |
def initialize(years, amount, rate) | |
@years = years | |
@rate = rate/100.0 | |
@amount = amount | |
end | |
def calculate |
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
import os | |
import time | |
import base64 | |
import hmac | |
import hashlib | |
import requests | |
kucoin_key = os.environ.get('KUCOIN_KEY') | |
kucoin_secret = os.environ.get('KUCOIN_SECRET') | |
kucoin_passphrase = os.environ.get('KUCOIN_PASSPHRASE') |
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
import os | |
import time | |
import base64 | |
import hmac | |
import hashlib | |
import requests | |
kucoin_key = os.environ.get('KUCOIN_KEY') | |
kucoin_secret = os.environ.get('KUCOIN_SECRET') |
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 | |
apt install msr-tools | |
curl -L -O https://github.com/xmrig/xmrig/releases/download/v6.6.2/xmrig-6.6.2-linux-x64.tar.gz | |
tar -xvf xmrig-6.6.2-linux-x64.tar.gz | |
cd xmrig-6.6.2 | |
rm config.json | |
cat <<EOF >./config.json | |
{ |
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
panic(cpu 0 caller 0xffffff80092449ea): Kernel trap at 0xffffff800983b408, type 14=page fault, registers: | |
CR0: 0x000000008001003b, CR2: 0xffffff7ed06675e8, CR3: 0x000000001d7a0000, CR4: 0x00000000003626e0 | |
RAX: 0x00000000000000a5, RBX: 0xffffff80b4ed18d8, RCX: 0xffffff871e925000, RDX: 0x0000000000000000 | |
RSP: 0xffffffa788c7bdd0, RBP: 0xffffffa788c7be20, RSI: 0xffffff80a73bd060, RDI: 0xffffff7ed06675c0 | |
R8: 0xffffff80a7838800, R9: 0x0012458e00000025, R10: 0x000000000012458e, R11: 0x0000000000000001 | |
R12: 0x0000000000000000, R13: 0x0000000000000020, R14: 0xffffff80b4ed1380, R15: 0xffffff80d1a52e00 | |
RFL: 0x0000000000010246, RIP: 0xffffff800983b408, CS: 0x0000000000000008, SS: 0x0000000000000010 | |
Fault CR2: 0xffffff7ed06675e8, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 1 | |
Backtrace (CPU 0), Frame : Return Address |
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
panic(cpu 2 caller 0xffffff8008e449ea): Kernel trap at 0xffffff7f8d27c657, type 13=general protection, registers: | |
CR0: 0x000000008001003b, CR2: 0x000000c000261010, CR3: 0x000000001d3a0000, CR4: 0x00000000003626e0 | |
RAX: 0x0000000000000000, RBX: 0xffffff80afa75cdc, RCX: 0x0000000000000000, RDX: 0x0000000000000008 | |
RSP: 0xffffff874074b610, RBP: 0xffffff874074b610, RSI: 0xffffff80afa75788, RDI: 0x7074746800000024 | |
R8: 0x0000000000000002, R9: 0x0000000000000001, R10: 0xffffff80af6d85a8, R11: 0x0000129e4241ac2c | |
R12: 0x0000000000000000, R13: 0xffffff80afaba320, R14: 0xffffff80afa75788, R15: 0xffffff80afaba000 | |
RFL: 0x0000000000010206, RIP: 0xffffff7f8d27c657, CS: 0x0000000000000008, SS: 0x0000000000000010 | |
Fault CR2: 0x000000c000261010, Error code: 0x0000000000000000, Fault CPU: 0x2, PL: 0, VF: 0 | |
Backtrace (CPU 2), Frame : Return Address |
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
panic(cpu 6 caller 0xffffff801a97130a): "Element 0xffffff80c024dbd0 from zone kalloc.1664 caught being freed to wrong zone kalloc.16\n"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.141.2.2/osfmk/kern/zalloc.c:3961 | |
Backtrace (CPU 6), Frame : Return Address | |
0xffffffa78ffeb310 : 0xffffff801a91868d | |
0xffffffa78ffeb360 : 0xffffff801aa52ab5 | |
0xffffffa78ffeb3a0 : 0xffffff801aa4463e | |
0xffffffa78ffeb3f0 : 0xffffff801a8bea40 | |
0xffffffa78ffeb410 : 0xffffff801a917d57 | |
0xffffffa78ffeb510 : 0xffffff801a918147 | |
0xffffffa78ffeb560 : 0xffffff801b0bf2bc | |
0xffffffa78ffeb5d0 : 0xffffff801a97130a |
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
panic(cpu 8 caller 0xffffff80138449ea): Kernel trap at 0xffffff8013d92ac8, type 14=page fault, registers: | |
CR0: 0x000000008001003b, CR2: 0xffffff7ed0ff9e40, CR3: 0x00000005a5ffd051, CR4: 0x00000000003626e0 | |
RAX: 0xffffff80d9b43100, RBX: 0x00000000000000ab, RCX: 0xffffff8014011740, RDX: 0x0000000000000005 | |
RSP: 0xffffffa78a50b810, RBP: 0xffffffa78a50b830, RSI: 0x87a3aba6c7acf2c9, RDI: 0xffffff7ed0ff9e40 | |
R8: 0xffffff80140a4480, R9: 0x0000000000000000, R10: 0xffffff80d08aef90, R11: 0xffffff80a81fa000 | |
R12: 0xffffff80b5164000, R13: 0xffffff86a94c5000, R14: 0xffffff80142231f8, R15: 0xffffff80da0e6680 | |
RFL: 0x0000000000010283, RIP: 0xffffff8013d92ac8, CS: 0x0000000000000008, SS: 0x0000000000000010 | |
Fault CR2: 0xffffff7ed0ff9e40, Error code: 0x0000000000000000, Fault CPU: 0x8, PL: 0, VF: 1 | |
Backtrace (CPU 8), Frame : Return Address |
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
panic(cpu 0 caller 0xffffff80175719e8): "a freed zone element has been modified in zone kalloc.1664: expected 0xdeadbeefdeadbeef but found 0xdeadbeeddeadbeef, bits changed 0x200000000, at offset 1368 of 1664 in element 0xffffff80be9d6800, cookies 0x3f0011ed4faf067e 0x53521c6c787fa81"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.141.2.2/osfmk/kern/zalloc.c:1233 | |
Backtrace (CPU 0), Frame : Return Address | |
0xffffffa795bcb970 : 0xffffff801751868d | |
0xffffffa795bcb9c0 : 0xffffff8017652ab5 | |
0xffffffa795bcba00 : 0xffffff801764463e | |
0xffffffa795bcba50 : 0xffffff80174bea40 | |
0xffffffa795bcba70 : 0xffffff8017517d57 | |
0xffffffa795bcbb70 : 0xffffff8017518147 | |
0xffffffa795bcbbc0 : 0xffffff8017cbf2bc | |
0xffffffa795bcbc30 : 0xffffff80175719e8 |
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
panic(cpu 2 caller 0xffffff800bd259d8): "kfree: size 13907096800723300352 > kalloc_largest_allocated 16318464"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.141.2.2/osfmk/kern/kalloc.c:868 | |
Backtrace (CPU 2), Frame : Return Address | |
0xffffff87435d3420 : 0xffffff800bd1868d | |
0xffffff87435d3470 : 0xffffff800be52ab5 | |
0xffffff87435d34b0 : 0xffffff800be4463e | |
0xffffff87435d3500 : 0xffffff800bcbea40 | |
0xffffff87435d3520 : 0xffffff800bd17d57 | |
0xffffff87435d3620 : 0xffffff800bd18147 | |
0xffffff87435d3670 : 0xffffff800c4bf2bc | |
0xffffff87435d36e0 : 0xffffff800bd259d8 |
NewerOlder