Skip to content

Instantly share code, notes, and snippets.

@eeddaann
eeddaann / README.md
Last active October 3, 2017 18:09
read stdout from hanging command

dealing with hanging bash process

This line is helpful when you only need a keypress to continue the hangging process: echo dummy_text | COMMAND

When you want to wait for specific pattern from stream and exit: bash -c 'cat <(COMMAND & grep -m 1 PATTERN)'

When you want to wait for 3 seconds and exit: bash -c 'cat &lt;(COMMAND &amp; sleep 3s)'

add scrollbar to firefox RESTClient

this gist guides how to adds a scrollbar to the following addon: (or any other css patching in firefox) https://addons.mozilla.org/en-US/firefox/addon/restclient/

  • go to about:support on firefox
  • choose Show Folder
  • look for chrome folder, if it is not exist, add folder and call it chrome
  • inside chrome folder, look for userContent.css add these lines or create file with this name and paste there:
.dropdown-menu.savedRequest{
@eeddaann
eeddaann / dos_.idea_.name
Created February 20, 2014 07:16
our project
dos
import socket
import threading
#this program sits in the middle between a client and a server
# it should listen to data from the client
#detect dos
#and send it to server
# todo!