1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card with etcher.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. Create a new file simply called ssh
in the SD card as well. By default SSH is now disabled so this is required to enable it. Remember - Make sure your file doesn't have an extension (like .txt etc)!
4. Finally, open up the cmdline.txt
. Insert modules-load=dwc2,g_ether
after rootwait
.
5. That's it, eject the SD card from your computer, put it in your Raspberry Pi Zero and connect it via USB to your computer. It will take up to 90s to boot up (shorter on subsequent boots). It should then appear as a USB Ethernet device. You can SSH into it using raspberrypi.local
as the address.
6. If it doesn't work, try to install [bonjour print
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
import unittest | |
from fizzbuzz import FizzBuzz | |
class TestFizzBuzz(unittest.TestCase): | |
def test_display(self): | |
fizzBuzz = FizzBuzz() | |
self.assertEqual([1, 2, "fizz", 4, 'buzz', "fizz", 7, 8, "fizz", 'buzz', 11, "fizz", 13, 14, "fizzbuzz", 16, 17, "fizz", 19, 'buzz'], fizzBuzz.display()) |
- TL;DR: Go to your docker settings -> daemon -> disable experimental features (This "solved" the problem on 10/03/2018)
ERROR: for docker_webserver_1 Cannot start service webserver: driver failed programming external connectivity on endpoint docker_webserver_1 (969e9ae035707ccbae4e29573d9c07ea32ab2858d48673f3fCreating docker_php-fpm_1 ... error
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 | |
status=$(xinput list --long "AT Translated Set 2 keyboard" | grep "disabled") | |
if [[ "$status" =~ "disabled" ]] | |
then | |
echo "Enabling keyboard" | |
xinput enable "AT Translated Set 2 keyboard" | |
exit; | |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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 | |
# info: Send email log to email | |
# options: NONE | |
# | |
#----------------------------------------------------------# | |
# Variable&Function # | |
#----------------------------------------------------------# |
exim -bp
ormailq
- List queueexim -bpc
- Count e-mails in queueexim -qff
- Force try to send queue, even freeze e-mails (if you use -qf, just try to send queue without freeze e-mails)exiqgrep -i -z | xargs exim -Mrm
- Remove all freeze e-mails from queue - if you use without-z
, you can remove all e-mails from queueexim -Mrm message-id
- Remove a message from queueexim -Mvh message-id
- View a message's headerexim -Mvb message-id
- View a message's bodyexim -v -M message-id
- Try to send again some message
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
<?php | |
class Pessoa { | |
private $nome; | |
private $sexo; | |
private $idade; | |
public function __construct($nome = null, $sexo = null, $idade = null){ | |
$this->nome = $nome; |
NewerOlder