[ Launch: Tributary inlet ] 0e838c134b2687ab1262 by akkaash[ Launch: Tributary inlet ] ca3ecfebda0cd937ba6a by akkaash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function do_ping(){ | |
echo $1 | |
ping -c 4 $1 | tail -1| awk '{print $4}' | awk -F '/' '{print $2}' | |
} | |
declare -a arr=("google.com" "facebook.com" "linkedin.com") | |
for i in "${arr[@]}" | |
do | |
do_ping "$i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p $PROJECT_NAME/roles/{web,db}/{tasks,handlers,templates} | |
touch $PROJECT_NAME/main.yml $PROJECT_NAME/roles/{web,db}/{tasks,handlers,templates}/main.yml |
[ Launch: Tributary inlet ] ca3ecfebda0cd937ba6a by akkaash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'akkaash' | |
import sys | |
import socket | |
import threading | |
import signal | |
SERVER_HOSTNAME = sys.argv[1] # server on this ip | |
SERVER_SENDING_PORT = int(sys.argv[2]) # server on this port | |
FILE_NAME = sys.argv[3] # send this file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
long mDiffTime(struct timeval end, struct timeval start){ | |
long ret = 0L; | |
ret += (end.tv_sec - start.tv_sec) * 1000000L; | |
ret += (end.tv_usec - start.tv_usec); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $(getconf LONG_BIT) = "64" ] | |
then | |
echo "64bit Detected" && | |
echo "Installing Google Chrome" && |