Prohibit password login for the 'root' account: PermitRootLogin prohibit-password
Use man
and search with less/vim command syntax
<script src="http://js.pusherapp.com/1.10.1/pusher.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// Enable pusher logging - don't include this in production | |
Pusher.log = function(message) { | |
if (window.console && window.console.log) window.console.log(message); | |
}; | |
// Flash fallback logging - don't include this in production |
#!/usr/bin/env python | |
""" | |
Lint python files before commit with flake8 and pep8 lint tools. | |
You can define lint settings in '.pep8' file in the project root. | |
Section '[pep8]' if for pep8 linter, and section '[flake8]' is for flake8. | |
INSTALL: | |
1. sudo pip install flake8 pep8 | |
2. Save this file to '.git/hooks/pre-commit' file in your git repository |
// Prepend with 'javascript:' in Chrome | |
// Hat tip to Nick Parsons: https://github.com/nparsons08 | |
// Follow | |
function follow() {var items = document.querySelectorAll("[data-action='FOLLOW']"); console.log("Following " + items.length + " items..."); for (i=0; i<items.length; i++) {items.item(i).click();}}; follow(); | |
// Unfollow | |
function unfollow() {var items = document.querySelectorAll("[data-action='UNFOLLOW']"); console.log("Unfollowing " + items.length + " items..."); for (i=0; i<items.length; i++) {items.item(i).click();}}; unfollow(); |
// Q1 | |
<?php | |
class A { | |
public static function who() { | |
echo __CLASS__; | |
} | |
public static function test() { | |
self::who(); | |
} |
"""Tests for the (sub)-domain redirects set on the Stream blog. | |
See: https://getstream.io/blog/ | |
Runs with Python 2.7 and 3.6 | |
Dependencies: | |
- requests==2.18.4 | |
Copyright (c) 2017 Dwight Gunning and other contributors |
Prohibit password login for the 'root' account: PermitRootLogin prohibit-password
Use man
and search with less/vim command syntax
I’m currently working (I’m just at the beginning, and I’m quite slow) on a personal project that will use Keepass files (kdb and kdbx).
I tried to find some documentation about .kdb and .kdbx format, but I didn’t find anything, even in the Keepass official website. I you want to know how these file formats are structured, you must read Keepass’s source code. So I wrote this article that explains how Keepass file format are structured, maybe it will help someone.
import bisect | |
from datetime import datetime | |
from typing import ( | |
Optional | |
) | |
import pytz | |
LEAGUE_OFFICE_TZ = pytz.timezone('America/New_York') | |
def datetime_league_tz(year, month, day): |