Skip to content

Instantly share code, notes, and snippets.

View jg8481it's full-sized avatar

Joshua Gorospe jg8481it

View GitHub Profile
@up1
up1 / CSVLibrary.py
Last active January 11, 2022 19:04
Robot Framework :: Working with CSV file
class CSVLibrary(object):
def read_csv_file(self, filename):
file = open(filename, 'r')
csvfile = csv.reader(file)
file.close
return [row for row in csvfile]
#!/usr/bin/env runstack
-- stack --resolver lts-2.9 --install-ghc runghc --package turtle
{-# LANGUAGE OverloadedStrings #-}
import Turtle
main :: IO ()
main = echo "Hello World!"
@javikalsan
javikalsan / execute_on_router.sh
Created March 26, 2014 15:59
Simple Bash Script to execute a command on the router through telnet command
#!/bin/sh
# replace cmd1 for the command to execute
host=192.168.1.1
port=23
user=myuser
pass=mypass
cmd1='ifconfig wl0 down'
( echo open ${host}
@minakolta
minakolta / curl.sh
Created June 26, 2013 09:20
CURL request benchmark
curl -w '\nLookup:\t%{time_namelookup}\nConnect :\t%{time_connect}\nPreTrans:\t%{time_pretransfer}\nStartTeans:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null -s http://yourdomain.com