View process-turnserver-metrics.awk
#
# awk(1) script to process the turnserver's session information into interesting CloudWatch metrics. The
# output is written to stdout as JSON in the format expected by the AWS CLI.
#
# This script generates metric data for the InstanceId and AutoScalingGroupName dimensions. These values need
# to be set when calling the script:
#
# awk -v InstanceId=$instance_id -v AutoScalingGroupName=$asg_name \
# -f process-turnserver-metrics.awk input.txt > output.json
#
View untrusted-lvl12-solution.js
/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function startLevel(map) {
// Hint: you can press R or 5 to "rest" and not move the
View katttt
else if(bot1/แก้เป็นbot2/.king ==1){
vector<int> random;
int temp=99;
if(system.checkturn==1){
for(int i=0 ;i<2 ;i++) {
int random=rand()%players +1;
while(temp==random){
random=rand()%players +1;
}
View Setting the class of the menu item(WP)
//setting the class of the menu item
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
function special_nav_class($classes){
if(is_page(4)){
$classes[] = 'active';
}
return $classes;
}
View BinarySearchTree.py
__author__='Sudhanshu Patel'
'''
Binary search tree implementation
it support insetion and Preorder, postorder, inorder traversal
'''
class Node:
def __init__(self, key):
self.left = None
View sample.java
/**
* get order state service API
*
* @param getOrderStatusCmd get Order state command
* @return order state
*/
public CompletableFuture<OrderState> getOrderStatus(OrderCmd.GetOrderStatusCmd getOrderStatusCmd) {
return PatternsCS.ask(getOrderEntity(), getOrderStatusCmd, timeout).toCompletableFuture()
.thenApply(handleGetState);
}
View config.php
$MNXCONFIG['enablePrefixStaticContent'] = true;
//$MNXCONFIG['staticContentPrefix'] = 'media.tmeu.eupqa1.websys.tmcs/cdn-tesla3/%VERSION%';
$MNXCONFIG['staticContentPrefix'] = 'prd273.mfol.preprod1.eu-west-1.tmaws-static-assets.s3.amazonaws.com/%VERSION%';
View gist:0f66b6c3bfe57501d39aa1c818ed98c9
### Keybase proof
I hereby claim:
* I am spector-in-london on github.
* I am bpscryptokey (https://keybase.io/bpscryptokey) on keybase.
* I have a public key ASBvLt52hFaV-YmUw4lBJEJWevSxHBqpMmLkB9QKgK2m3Qo
To claim this, I am signing this object:
View stuff.md

Stuff and things

head of mtcars

head(mtcars)
View Dockerfile
FROM python:3.6
# Download datafiles
ENV FTP_NASA_SERVER="spdf.gsfc.nasa.gov" \
PATH_NACS="/pub/data/de/de2/neutral_gas_nacs/n_T_1s_ascii/data" \
PATH_WATS="/pub/data/de/de2/neutral_gas_wats/n_T_v_2s_ascii"
RUN mkdir /data && \
cd /data && \
wget -c -nv -m ftp://${FTP_NASA_SERVER}${PATH_NACS}/*.ASC && \