Skip to content

Instantly share code, notes, and snippets.

View Phineas's full-sized avatar
:octocat:
breaking bgp configs

Phineas

:octocat:
breaking bgp configs
View GitHub Profile
#!/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
import dynamic from "next/dynamic";
import { ReactNode } from "react";
const NoSsrComponent = (props: { children: ReactNode }) => (
<>{props.children}</>
);
export default dynamic(async () => NoSsrComponent, {
ssr: false,
});
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRwIFcU5h2XJsc85AsNtA20NiDIhaHO3rwJucu3BGwb root@Phins-iPhone
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;
/**
* @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;
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;
import React, { Component, ComponentType, ReactType, UIEvent } from 'react';
type VirtualizedScrollElementProps<
T,
B
> = {
childElement: T;
items: ExtractProps<T>[];
baseProps?: B;
prepend?: Element[];
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cxbotmsgpull-yt
spec:
replicas: 1
template:
metadata:
labels:
app: cxbotmsgpull
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cxbotmsgpull-yt
spec:
replicas: 1
template:
metadata:
labels:
app: cxbotmsgpull
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: streamupdater-cron
spec:
schedule: "*/1 * * * *"
jobTemplate:
metadata:
labels:
app: streamupdater