Skip to content

Instantly share code, notes, and snippets.

View jdaudier's full-sized avatar
🏠
Working from home

Joanne Daudier jdaudier

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jdaudier on github.
  • I am jdaudier (https://keybase.io/jdaudier) on keybase.
  • I have a public key ASAwrMdRLfygLzIEIUL-Wib_VMulFZMxO5UNqOFwxEsFOAo

To claim this, I am signing this object:

@jdaudier
jdaudier / CORS
Last active August 29, 2015 14:06 — forked from Unitech/CORS
app.all('*', function (req, res, next) {
res.header("Access-Control-Allow-Origin", req.headers.origin);
res.header("Access-Control-Allow-Credentials", true);
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header("Access-Control-Allow-Headers", "X-Requested-With, Content-Type, Authorization, Content-Length");
if (req.method == 'OPTIONS') {
return res.send(200);
}
@jdaudier
jdaudier / FRR
Last active August 29, 2015 13:56
File Russian Roulette: The most dangerous game ever!
#!/bin/bash
echo "Number of arguments: $#"
if [[ $# -ne 1 ]]
then
echo "We need a file to kill!"
exit 1
fi
if [[ -f $1 ]]