This script will kill the pid process that is responsible for keeping a port open. Use as follows to kill the process that corresponds to a given port:
./killport [PORT]
If the command killport
is not recognized, make it executable:
To run this script,
crawl_broken_urls.rb
to you directorybroken_links.yml
.ruby crawl_broken_urls.rb
To reset the system sound for Hangouts, run (only works in OSX):
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`
This guide assumes that you recently run brew upgrade postgresql
and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresql
The top of what gets printed as a result is the most important:
You have a repo and quite some developers have cloned the repo and working on it. Now you want to add a file to gitignore which is already checked-in or tracked by Git.(The file is already commited into the repo)
Below are the steps on how to ignore this file (lets say the filename is config.py
):
Add it to .gitignore
:
$ echo "config.py" >> .gitignore
#include "Particle.h" | |
#include "system_update.h" | |
bool uploaded = false; | |
SerialDebugOutput debugOutput(9600, ALL_LEVEL); | |
// float dummyVoltage = 3.50; //This just shows to to write variables to OpenLog | |
// char mystr[13]; //Initialized variable to store recieved data | |
void setup() { |
#include "Particle.h" | |
#include "system_update.h" | |
SerialDebugOutput debugOutput(9600, ALL_LEVEL); | |
void flashTinker(); // forward declaration | |
bool uploaded = false; | |
// This #include statement was automatically added by the Particle IDE. | |
#include "Particle.h" | |
#include "system_update.h" | |
int fileSize; | |
void poll(); | |
void setupOpenLog(void); | |
void readFirmware(char *fileName); |
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |