In the name of God
This gist contains steps to setup Ubuntu 22.04 for deep learning.
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http{ | |
| server { | |
| listen 80; | |
| server_name localhost; |
| #!/bin/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
| // Requires jQuery of course. | |
| $(document).ready(function() { | |
| $('.show-comments').on('click', function(){ | |
| var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
| // ajax request to load the disqus javascript | |
| $.ajax({ | |
| type: "GET", | |
| url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
| dataType: "script", |
| server { | |
| listen 80; | |
| server_name www.yourdomain.com; | |
| return 301 $scheme://yourdomain.com$request_uri; | |
| } | |
| server { | |
| listen 80; | |
| root /var/www/yourdomain.com; |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var menuEntries = [ {name: "Run Query", functionName: "runQuery"} ]; | |
| ss.addMenu("HTTP Archive + BigQuery", menuEntries); | |
| } | |
| function runQuery() { | |
| var projectNumber = 'httparchive'; | |
| var sheet = SpreadsheetApp.getActiveSheet(); |
| <?php | |
| // The smallest length of all strings, limited at 10 characters. | |
| $limit = min(strlen($origin), strlen($destination), 10); | |
| // Increment $i as long as the characters at its ($i) position match. | |
| for ($i = 0; $i < $limit && $origin[$i] === $destination[$i]; $i++); | |
| // $i now contains the length of the common prefix |
joind.in: http://joind.in/talk/view/8040 slides: https://speakerdeck.com/ianbarber/event-stream-processing-in-php