For headless setup, SSH can be enabled by placing a file named ssh
, without any extension, onto the boot partition of
the SD card from another computer. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the
file is deleted. The content of the file does not matter; it could contain text, or nothing at all.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea/ | |
env/ | |
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
def get_iters_count(n): | |
i = 0 | |
while True: | |
i += 1 | |
# print(i, n) | |
if n == 1: | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ | |
*.swp | |
screenshot.png |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env* | |
foto | |
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WIKI=$1 | |
DB_PARAMS=`dbparams.pl --name $WIKI --type slave` | |
echo "Removing broken comments redirects on ${WIKI} ..." | |
mysql $DB_PARAMS -e "select /* SUS-4813 */ page_id from querycache, page where qc_type = 'BrokenRedirects' and qc_title LIKE '%/@comment%' and page_title = qc_title and page_namespace = qc_namespace;" --skip-column-names --batch | tee /tmp/SUS-4813.pages | |
run_maintenance --db $WIKI --script="deleteBatch.php -u FANDOMbot -r SUS-4813 --by-id --listfile /tmp/SUS-4813.pages" | |
run_maintenance --db $WIKI --script='updateSpecialPages.php --only=BrokenRedirects' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
putenv('SERVER_ID=177'); | |
ini_set('display_errors', '1'); | |
######################################################################################### | |
require_once('/home/macbre/app/maintenance/commandLine.inc'); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 5. in line 1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Internal requests to MediaWiki (from 10000 entries) | |
user-permissions http api:query::users 1.0000 6490 requests | |
discussions-sitemap http api:query::wkdomains 0.0803 521 requests | |
user-permissions http api:query::wkdomains 0.1602 1040 requests | |
internal http nirvana:EmailControllerDiscussionReply::handle 0.0444 288 requests | |
nagios http mediawiki:Main_Page 0.0909 590 requests | |
nagios http mediawiki:Special:HealthCheck 0.0992 644 requests | |
mercury http nirvana:MercuryApi::getWikiVariables 0.0166 108 requests | |
page-indexer http api:query::wkdomains 0.0223 145 requests | |
parsoid-feeder-worker http api:query::categories 0.0037 24 requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<p> | |
<math>2+2</math> |