In powershell
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
#!/bin/bash | |
# Set EVENTS and INTERVAL as environment variables, else they will get these defaults | |
# % INTERVAL=5 EVENTS="cycles:u" sh perf_to_picked_df.sh | |
EVENTS=${EVENTS:-"cycles:u"} | |
INTERVAL=${INTERVAL:-300} #sec | |
PRINT_M=${PRINT_M:-no} # Set this to yes if you want to print the matrix | |
# This will write FILE.p where FILE will be a ISO8601 timestamp in the format | |
# YMDTHMS, e.g. 20160608T190048. Also note that you will need to run this as root, or use sudo. |
npm install
node app.js
Sample curl (POST): curl --data "scope=profile&response_type=token&client_id=24&state=a" https://alpha-auth.stage.tfoundry.com/oauth/bind/authorize/sms/9947895756
#!/usr/bin/env python | |
""" | |
Finds a MAC on a switch/card/port of a CatOS switch | |
""" | |
# global settings | |
port = 161 | |
retries = 5 | |
timeout = 1 |
/* | |
* This simulates a MGCP gateway for testing purposes | |
*/ | |
/* $Id$ */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
#include <stdio.h> | |
int main() { | |
printf("Working [%c]", '|'); | |
fflush(stdout); | |
for (i=0; i<10; ++i) { | |
sleep(1); | |
printf("%c%c%c]", 0x08, 0x08, ind[i%4]); | |
fflush(stdout); | |
} | |
} |
/* | |
* This trivial little program listens on one port and forwards udp to | |
* another IP with a given source address. This was used to proxy | |
* snmp traps at some point. | |
* | |
* You absolutely have to ifconfig or ip add the spoofed alias. Yeah | |
* we could do it through netlink sockets, but ... | |
*/ | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
#!/bin/bash | |
#set -ex | |
# cleanup function, only invoked after exit after successful lv | |
# allocation | |
cleanup () | |
{ | |
echo -n "BACKUP REMOVE:" | |
lvremove -f $SNAPSHOT_DEV |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <math.h> | |
#define DIM(x) sizeof(x)/sizeof(x[0]) | |
#define IS_SET(x,bit) ((x & (1 << bit)) != 0) | |
static char level1_data[] = "FourscoreandsevenyearsagoourfaathersbroughtforthonthiscontainentanewnationconceivedinzLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreahtcivilwartestingwhetherthatnaptionoranynartionsoconceivedandsodedicatedcanlongendureWeareqmetonagreatbattlefiemldoftzhatwarWehavecometodedicpateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfangandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravelmenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorponwertoaddordetractTgheworldadswfilllittlenotlenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheulnfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadva |