Skip to content

Instantly share code, notes, and snippets.

View kalloc's full-sized avatar
🌋

kalloc kalloc

🌋
View GitHub Profile
#!/usr/bin/env python2
# encoding: utf-8
import math
import socket
import threading
from time import sleep, time
from hashlib import sha1
from random import randint
from struct import pack, unpack
from socket import inet_ntoa
use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize};
use near_sdk::collections::{LookupMap, UnorderedSet};
use near_sdk::json_types::Base64VecU8;
use near_sdk::{near_bindgen, BorshStorageKey, PanicOnDefault, env};
#[near_bindgen]
#[derive(BorshDeserialize, BorshSerialize, PanicOnDefault)]
pub struct Contract {
key1: LookupMap<u8, UnorderedSet<u8>>,
key2: LookupMap<u8, UnorderedSet<u8>>,
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
contract Test {
address[] public routers;
address[] public connectors;
// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.9.3 https://hardhat.org
// File @openzeppelin/contracts/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
panic(cpu 0 caller 0xfffffff014587384): userspace watchdog timeout: no successful checkins from com.apple.dfrd since load
service: com.apple.dfrd, no successful checkins since load (180 seconds ago)
service: com.apple.remoted, total successful checkins since load (180 seconds ago): 18, last successful checkin: 0 seconds ago
service: com.apple.bridgeaudiod, total successful checkins since load (180 seconds ago): 19, last successful checkin: 0 seconds ago
service: com.apple.logd, total successful checkins since load (180 seconds ago): 19, last successful checkin: 0 seconds ago
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 18P4663
Sleep Wake failure in EFI
Failure code:: 0xffffffff 0x0000001f
Please IGNORE the below stackshot
================================================================
Date/Time: 2021-06-03 22:53:12 +0300
OS Version: ??? ??? (Build ???)
Architecture: x86_64
panic(cpu 1 caller 0xfffffff01f8608a4): "Sleep/Wake hang detected"
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 18P4347
macOS version: 19H524
Kernel version: Darwin Kernel Version 20.3.0: Tue Jan 5 18:50:06 PST 2021; root:xnu-7195.80.35~4/RELEASE_ARM64_T8010
Kernel UUID: C7A021A0-C976-37C8-B2E7-A18B3A7CD973
iBoot version: iBoot-6723.80.19
secure boot?: YES
import java.io.*;
import java.lang.ProcessBuilder;
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) {
// create a new list of arguments for our process
String[] list = {"bash", "-c", "yes Syntax Warning: Length in linearization table is invalid | head -n 10000 >&2"};
@kalloc
kalloc / clock.html
Last active November 25, 2020 20:28 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@kalloc
kalloc / .tmux.conf
Last active February 16, 2020 16:52
centos-mouse-guide.md
set mouse=n
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on