If you see Access denied
, or other error messages when trying to access a git repository or SSH server, here are some steps you can take to resolve the problem.
When in doubt, run ssh -vvv <other options...>
to enable more verbose logging.
var app = express() | |
// browser sync | |
if (app.get('env') === 'development') { | |
var bs = require('browser-sync')({ | |
logSnippet: false, | |
files: ['pub/*.html', 'pub/css/*.css', 'views'] | |
}) | |
app.use(require('connect-browser-sync')(bs)) | |
} |
If you see Access denied
, or other error messages when trying to access a git repository or SSH server, here are some steps you can take to resolve the problem.
When in doubt, run ssh -vvv <other options...>
to enable more verbose logging.
var degToCard = function(deg){ | |
if (deg>11.25 && deg<=33.75){ | |
return "NNE"; | |
}else if (deg>33.75 && deg<=56.25){ | |
return "ENE"; | |
}else if (deg>56.25 && deg<=78.75){ | |
return "E"; | |
}else if (deg>78.75 && deg<=101.25){ | |
return "ESE"; | |
}else if (deg>101.25 && deg<=123.75){ |
-- delete any usermeta specific to the other subsites | |
delete from wp_usermeta where meta_key regexp '^wp_([0-9]+)_'; | |
-- duplicate the wp_usermeta structure in a working data table, | |
-- but add a unique index for filtering out duplicates | |
create table _fix_usermeta like wp_usermeta; | |
alter table _fix_usermeta add unique(user_id, meta_key); | |
-- copy the site-specific usermeta, keeping only the last of each duplicate | |
insert into _fix_usermeta |
import 'dart:async'; | |
void main() { | |
var data = [1,2,3,4,5]; | |
var stream = new Stream.fromIterable(data); | |
var broadcastStream = stream.asBroadcastStream(); | |
broadcastStream.listen((value) => print("(3)stream.listen: $value")); | |
broadcastStream.first.then((value) => print("(3)stream.first: $value")); // 1 |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
$(document).ready(function(){ | |
var scriptbase = _spPageContextInfo.webServerRelativeUrl + "_layouts/15/"; | |
$.getScript(scriptbase + "SP.Runtime.js", | |
function () { | |
$.getScript(scriptbase + "SP.js", function(){ | |
$.getScript(scriptbase + "SP.Taxonomy.js", execOperation); |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |