Skip to content

Instantly share code, notes, and snippets.

🎸
Bitchin'

Jared Hillier PantherJohn

🎸
Bitchin'
Block or report user

Report or block PantherJohn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pping.sh
pping() { for a in $@; do drtt=86; rtt=$(ping -qc1 $a 2>&1 | awk -F/ '/^rtt/ { printf "%.2f\n", $5; ok = 1 } END { if (!ok) print "FAIL" }'); (( $(awk 'BEGIN {print ("'$rtt'" <= "'$drtt'")}') )) && echo -e "$a\t$rtt"; done; }
@PantherJohn
PantherJohn / apstats.md
Last active May 15, 2019
AP Statistics Checklist
View apstats.md

Following is an outline of the major topics covered by the AP Statistics Exam. The ordering here is intended to define the scope of the course but not necessarily the sequence. The percentages in parentheses for each content area indicate the coverage for that content area in the exam.

I. Exploring Data: Describing patterns and departures from patterns (20%–30%)

Exploratory analysis of data makes use of graphical and numerical techniques to study patterns and departures from patterns. Emphasis should be placed on interpreting information from graphical and numerical displays and summaries.

A. Constructing and interpreting graphical displays of distributions of univariate data (dotplot, stemplot, histogram, cumulative frequency plot)

  • 1. Center and spread
  • 2. Clusters and gaps
  • 3. Outliers and other unusual features
  • 4. Shape
@PantherJohn
PantherJohn / compile.sh
Created Apr 21, 2019 — forked from bigtan/compile.sh
shadowsocks-libev static build
View compile.sh
apt-get update && apt-get install build-essential automake autoconf libtool git clang -y && export CC=clang
ver=2.6.0
wget --no-check-certificate https://tls.mbed.org/download/mbedtls-$ver-gpl.tgz
tar zxf mbedtls-$ver-gpl.tgz
cd mbedtls-$ver
sed -i "s/DESTDIR=\/usr\/local/DESTDIR=\/projects\/dists\/mbedtls/g" Makefile
LDFLAGS=-static make install
cd ..
View Jsoca
#!/bin/sh
INTERFACE=$(networksetup -listnetworkserviceorder | awk -F'\\) ' '/\(1\)/ {print $2}')
ADDRESS=localhost; PORT=1080
if networksetup -getsocksfirewallproxy ${INTERFACE} | grep -q "Yes"; then
networksetup -setsocksfirewallproxystate ${INTERFACE} off
osascript -e 'display notification "eLitet JSOCA disconnected" with title "eLitet Service" sound name "default"' ;;
else
networksetup -setsocksfirewallproxy ${INTERFACE} ${ADDRESS} ${PORT} on
@PantherJohn
PantherJohn / gethostbyname.sh
Last active Mar 24, 2019
POSIX-compatible DNS lookup function
View gethostbyname.sh
gethostbyname() {
for d in $@; do
address=$(nslookup $d | awk -F: '/Name.*/ { flag = 1; next }
/Address.*/ && flag { print $NF }' | awk '{ print $1 }')
echo ${address:-$d}
done
}
View regex_demo.cpp
#include <algorithm>
#include <iostream>
#include <cctype>
#include <regex>
int main()
{
std::string str("server\t\n{ a = 5; b ={ a } c = what; } \nisthatthe{ case; }");
//str.erase(remove_if(str.begin(), str.end(), isspace), str.end());
View sysctl.conf
#
# Aghostd Universal
# ElitetNode Server QuarProxy Service
# - Optimized Configuration
#
# (c) Elitet Inc. 2018-2019
# Jared Hillier, Lindsay J. Gibson
#
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
View gateway_netlink.c
You can’t perform that action at this time.