Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
breaking bgp configs

Phineas

:octocat:
breaking bgp configs
View GitHub Profile
View Phins-iPhone.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRwIFcU5h2XJsc85AsNtA20NiDIhaHO3rwJucu3BGwb root@Phins-iPhone
View WaifuEnhancementToken.sol
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;
View Waifus.sol
/**
* @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;
View ResourceAutocomplete.tsx
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;
View VirtualizedScrollElement.tsx
import React, { Component, ComponentType, ReactType, UIEvent } from 'react';
type VirtualizedScrollElementProps<
T,
B
> = {
childElement: T;
items: ExtractProps<T>[];
baseProps?: B;
prepend?: Element[];
View gist:5f060e3d319b9d3cab7f5119909469d5
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cxbotmsgpull-yt
spec:
replicas: 1
template:
metadata:
labels:
app: cxbotmsgpull
View gist:d96609b8dd17c5be70150c203912fca8
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cxbotmsgpull-yt
spec:
replicas: 1
template:
metadata:
labels:
app: cxbotmsgpull
View stream-updater-cron.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: streamupdater-cron
spec:
schedule: "*/1 * * * *"
jobTemplate:
metadata:
labels:
app: streamupdater
View gist:2ef81028a62e27c6564fb6e28e2161a0
{
"transactions":[
{
"type":"to",
"to":"126857098716905473",
"amount":20
},
{
"type":"to",
"to":"176034265698533378",
View gist:6a30ce239703f7600ca7ea81d1f98a97
var spawn = require('child_process').spawn;
var xml2js = require('xml2js');
/**
* Returns all the system processes
* @param callback {function(err, list)} Called with the list of all processes.
* @remarks Runs only on Windows (uses WMI)
*/
module.exports = function (callback) {
if (!callback) callback = function (err, list) { };