Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
| visible_hostname localhost | |
| cache_mgr frank4565@gmail.com | |
| http_port 3128 transparent | |
| icp_port 0 | |
| dns_nameservers 192.168.1.1 | |
| cache_effective_user git | |
| cache_effective_group git | |
| pid_filename /tmp/squid.pid | |
| emulate_httpd_log on | |
| #logformat log %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh |
| /** | |
| * Returns value of specified URL parameter. | |
| * @param {String} name Query parameter to return value of. | |
| * @return {String} String of query parameter or null / 0. | |
| */ | |
| getUrlParameter = function(name){ | |
| var results = new RegExp('[\\?&]' + name + '=([^&#?]*)').exec(window.location.href); | |
| if (results==null){ return null; } | |
| else { return results[1] || 0; } | |
| } |
If you're able to visit a website and it successfully validates but you're not able to curl the website (i.e. you get certificate validation errors) then it is likely because your root certificate, or intermediate certificate, or both are not trusted in your system. Ubuntu provides an easy process for updating the root certificate stores using the update-ca-certificates command and the /etc/ca-certificates.conf for configuration.
Certificates should be installed under /usr/share/ca-certificates. You should create a directory for your org to place all certs and intermediates.
mkdir /usr/share/ca-certificates/my.org/
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
You should never let passwords or private data be transmitted over an untrusted network (your neighbor’s, the one at Starbucks or the company) anyway, but on a hacker congress like the #30C3, this rule is almost vital.
Hackers get bored easily, and when they’re bored, they’re starting to look for things to play with. And a network with several thousand connected users is certainly an interesting thing to play with. Some of them might start intercepting the data on the network or do other nasty things with the packets that they can get.
If these packets are encrypted, messing with them is much harder (but not impossible! – see the end of this article). So you want your packets to be always encrypted. And the best way to do that is by using a VPN.
The book.
The author Ari Lerner is a Founder of FullStack. He also authored/co-authored:
He co-manages:
Steps to make a Fragment or View to have a Callback to its parent Activity.
Step by step from info taken from here:
http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity