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 | |
declare -A MODEMS | |
MODEMS=(["alpha"]="192.168.12.100" ["beta"]="192.168.10.100" ["delta"]="192.168.9.100" ["omega"]="192.168.11.100") | |
for modem_name in "${!MODEMS[@]}"; do | |
ip_address="${MODEMS[$modem_name]}" | |
IFACE=$(ip -o addr show | grep -w ${ip_address} | awk '{print $2}') | |
if [ -z "$IFACE" ]; then continue; fi |
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 dynamic from "next/dynamic"; | |
import { ReactNode } from "react"; | |
const NoSsrComponent = (props: { children: ReactNode }) => ( | |
<>{props.children}</> | |
); | |
export default dynamic(async () => NoSsrComponent, { | |
ssr: false, | |
}); |
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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRwIFcU5h2XJsc85AsNtA20NiDIhaHO3rwJucu3BGwb root@Phins-iPhone |
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
contract WaifuEnhancementToken is Context, IERC20 { | |
using SafeMath for uint256; | |
// Constants | |
uint256 public SECONDS_IN_A_DAY = 86400; | |
uint256 public constant INITIAL_ALLOTMENT = 1830 * (10 ** 18); | |
uint256 public constant PRE_REVEAL_MULTIPLIER = 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
/** | |
* @title Waifus contract | |
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation | |
*/ | |
contract Waifus is Context, Ownable, ERC165, IWaifus, IERC721Metadata { | |
using SafeMath for uint256; | |
using Address for address; | |
using EnumerableSet for EnumerableSet.UintSet; | |
using EnumerableMap for EnumerableMap.UintToAddressMap; | |
using Strings for uint256; |
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 React, { useState, useEffect, useCallback } from 'react'; | |
import styled from 'styled-components'; | |
import { connect } from 'react-redux'; | |
import twemojiEMData from 'emoji-mart/data/twitter.json'; | |
import { AtSignIcon, SmileIcon } from '../Icons'; | |
import { HivenReduxState, HivenHouseMember } from '../../interfaces/common'; | |
import UserIcon from '../UserIcon'; | |
const Container = styled.div<any>` | |
position: absolute; |
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 React, { Component, ComponentType, ReactType, UIEvent } from 'react'; | |
type VirtualizedScrollElementProps< | |
T, | |
B | |
> = { | |
childElement: T; | |
items: ExtractProps<T>[]; | |
baseProps?: B; | |
prepend?: Element[]; |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: cxbotmsgpull-yt | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: cxbotmsgpull |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: cxbotmsgpull-yt | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: cxbotmsgpull |
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
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: streamupdater-cron | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
metadata: | |
labels: | |
app: streamupdater |
NewerOlder