Skip to content

Instantly share code, notes, and snippets.

View JohnnySixarms's full-sized avatar

Johnny Sixarms JohnnySixarms

  • 15:09 (UTC +02:00)
View GitHub Profile
@JohnnySixarms
JohnnySixarms / gist:1c05aa5ffcf49d5eb0f25520a9b038a7
Last active February 10, 2018 09:16
RaspberryPi3 Install
sudo raspi-config
- set hostname
- enable ssh
- set localisation
- expand filesystem
- memory split
edit /boot/config.txt
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
@JohnnySixarms
JohnnySixarms / gist:fff9b568babc5c3026eb79ba7e745f13
Last active February 10, 2018 10:08
apache2 as a dockerservice
docker service create \
--name apache2 \
--publish 80:80/tcp \
--publish 443:443/tcp \
--constraint node.role==manager \
--mount type=bind,src=//opt/apache2/var/log/apache2,dst=/var/log/apache2 \
--mount type=bind,src=//opt/apache2/var/www,dst=/var/www \
--mount type=bind,src=//opt/apache2/etc/apache2,dst=/etc/apache2 \
johnnysixarms/debian_httpd
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5cf59b8be64d hassioaddons/appdaemon3-armhf "/init" About an hour ago Up About an hour 0.0.0.0:5000->5000/tcp, 0.0.0.0:5050->5050/tcp addon_a0d7b954_appdaemon3
81e8bee2185b homeassistant/armhf-addon-samba "/usr/bin/entry.sh /…" 3 hours ago Up 3 hours addon_core_samba
b233053c2676 homeassistant/armhf-addon-mosquitto "/usr/bin/entry.sh /…" 3 hours ago Up 3 hours 0.0.0.0:1883->1883/tcp, 0.0.0.0:8883->8883/tcp addon_core_mosquitto
ea620075bc13 homeassistant/raspberrypi3-homeassistant "/usr/bin/entry.sh p…" 3 hours ago Up About an hour homeassistant
de32c07efb57 homeassistant/armhf-hassio-supervis
@JohnnySixarms
JohnnySixarms / gist:d579ef58ca22a2a657c67c44a151e635
Created September 1, 2019 13:24
temporary fix for cortana misbehaving...
Hello Guys,
I got a similar problem after Windows 10 update and this was because of ” BingSearchEnabled” which was set to 0.
You’ll find it to :
HKEY_CURRENT_USER, SOFTWARE, Microsoft, Windows, CurrentVersion, Search.
If you set to 1, disconnect and reconnect you’re session, problem can be solved.
It’s a bad news because this setting allows cortana to use web results for the search..
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 176 169 021 Pre-fail Always - 6183
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 654
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 088 088 000 Old_age Always - 8980
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
dark:
# Background image
lovelace-background: 'center / cover no-repeat url("/local/night.jpg") fixed'
# Colors
text-color: '#DADADB' # Grey text
text-medium-light-color: '#A0A2A8' # Medium-light grey text
text-medium-color: '#80828A' # Medium grey text
text-dark-color: '#6A6B74' # Dark grey text
accent-color: '#008bef' # Blue
version: '3.6'
services:
traefik:
container_name: 'traefik'
image: 'traefik:latest'
restart: 'always'
security_opt:
- no-new-privileges:true
environment:
- CF_API_EMAIL=${CF_API_EMAIL}
version: '3.6'
services:
traefik:
container_name: 'traefik'
image: 'traefik:latest'
restart: 'always'
security_opt:
- no-new-privileges:true
environment:
- CF_API_EMAIL=${CF_API_EMAIL}
9194 GeoIP Country Edition: CN, China
1953 GeoIP Country Edition: US, United States
1407 GeoIP Country Edition: FR, France
617 GeoIP Country Edition: IN, India
483 GeoIP Country Edition: GR, Greece
465 GeoIP Country Edition: IR, Iran, Islamic Republic of
423 GeoIP Country Edition: BR, Brazil
365 GeoIP Country Edition: KR, Korea, Republic of
306 GeoIP Country Edition: SG, Singapore
296 GeoIP Country Edition: IT, Italy
version: '3.6'
services:
traefik:
container_name: 'traefik'
image: 'traefik:latest'
restart: 'always'
security_opt:
- no-new-privileges:true
environment:
- CF_API_EMAIL=${CF_API_EMAIL}