(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Resources for learning web design & front-end development:
ONLINE
Design
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
If you have any sort of administrative interface on your web site, you can easily imagine an intruder gaining access and mucking about. How do you know the extent of the damage? Adding an audit log to your app is one quick solution. An audit log should record a few things:
Using the Rails framework, this is as simple as adding a before_action
to your admin controllers. Here’s a basic version that I’m using in production.
#!/usr/bin/env bash | |
### This only works assuming that you have all the necessary cookies in ./cookies.txt. | |
### I use this plugin: https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg | |
### Execute as follows: ./shopping.sh ./cookies.txt output.csv | |
# get last order id | |
order_id=$(curl -s -b $1 'https://groceries.asda.com/api/order/view?showmultisave=true&showrefund=true&pagenum=1&pagesize=25&requestorigin=gi' | jq -r '.orders | .[0] | .orderId') | |
# get url for last order |
javascript:(function(){ | |
var css = document.createElement("style"); | |
css.type = "text/css"; | |
css.innerHTML = "img[alt=\"\"],img:not([alt]){ filter:grayscale(100%) }"; | |
document.body.appendChild(css); | |
})(); |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors | |
# of this software dedicate any and all copyright interest in the | |
# software to the public domain. We make this dedication for the benefit |
# Short for docker-machine | |
dm () { | |
docker-machine $@ | |
} | |
# Switch docker pointer to another host (dmenv my_remote_host) | |
dmenv () { | |
eval "$(docker-machine env $1)" | |
} | |
# Short for docker | |
doc () { |