This file contains hidden or 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/ruby | |
# ruby 404grep.rb /path/to/apache/logfile | |
require "pp" | |
LOGFILE = ARGV.join | |
resH = Hash.new{ |h,k| h[k] = 0 } |
This file contains hidden or 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
/* | |
Add a link to the sidebar to any path in Home Assistant | |
Put this file in <config>/www/panel-redirect.js | |
In configuration.yaml: | |
panel_custom: | |
- name: panel-redirect | |
# url_path needs to be unique for each panel_custom config |
This file contains hidden or 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
#m:: | |
Input, char, L1 T0.5 ;wait for 1 character, for 0.5 seconds and stores it in char | |
if (ErrorLevel = "TimeOut") ;time limit exceeded | |
return | |
if (char = "n") | |
Send, {Media_Next} | |
else if (char = "q") { | |
;Run C:\Program Files\nircmd.exe mutesysvolume 2 "2- USB Audio CODEC" | |
Run C:\Program Files\SoundVolumeView.exe /Switch "mmic" |
This file contains hidden or 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
path: cabinet | |
icon: 'mdi:flower-tulip' | |
panel: false | |
header: | |
type: picture | |
image: 'https://www.home-assistant.io/images/lovelace/header-footer/balloons-header.png' | |
cards: | |
- type: grid | |
square: false |
This file contains hidden or 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
output: | |
- platform: ledc | |
pin: GPIO19 | |
frequency: 5000 Hz | |
id: ventilation_fan_pwm | |
fan: | |
- platform: speed | |
output: ventilation_fan_pwm | |
name: "RUCK PWM Controller" |
This file contains hidden or 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
^m:: | |
Input, char, L1 T0.5 ;wait for 1 character, for 0.5 seconds and stores it in char | |
if (ErrorLevel = "TimeOut") ;time limit exceeded | |
return | |
if (char = "n") | |
Send, {Media_Next} | |
else if (char = "p") | |
Send, {Media_Prev} | |
else if (char = " ") | |
Send, {Media_Play_Pause} |
This file contains hidden or 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/sh | |
(echo $(dumpkeys |grep -i keymaps); echo keycode 58 = Control) | loadkeys - |
This file contains hidden or 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
[ 2084.967] | |
X.Org X Server 1.20.7 | |
X Protocol Version 11, Revision 0 | |
[ 2084.971] Build Operating System: Linux 5.5.2-xps x86_64 Gentoo | |
[ 2084.972] Current Operating System: Linux xps 5.6.3-xps #1 SMP Fri Apr 10 03:02:52 CEST 2020 x86_64 | |
[ 2084.972] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.6.3-xps root=/dev/nvme0n1p8 ro init=/usr/lib/systemd/systemd mem_sleep_default=deep | |
[ 2084.975] Build Date: 16 March 2020 07:00:05PM | |
[ 2084.976] | |
[ 2084.978] Current version of pixman: 0.38.4 | |
[ 2084.980] Before reporting problems, check http://wiki.x.org |
This file contains hidden or 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
diff --git a/window_background/background.js b/window_background/background.js | |
index 6eb93a4..f25e4c7 100644 | |
--- a/window_background/background.js | |
+++ b/window_background/background.js | |
@@ -962,6 +962,11 @@ let settingsLogUri = settingsStore.get("logUri"); | |
if (settingsLogUri) { | |
logUri = settingsLogUri; | |
} | |
+ | |
+if(typeof process.env.LOGFILE !== 'undefined') { |
This file contains hidden or 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
λ emerge --update --newuse --deep --with-bdeps=y @world &> ~/asd | |
λ cat ~/asd | |
* IMPORTANT: 19 news items need reading for repository 'gentoo'. | |
* Use eselect news read to view new items. | |
* IMPORTANT: 2 config files in '/etc/portage' need updating. | |
* See the CONFIGURATION FILES section of the emerge | |
* man page to learn how to update config files. |