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
--- | |
- hosts: localhost | |
tasks: | |
- name: create file | |
copy: src=./demo dest=/tmp/demo | |
# not working as expected | |
- name: update xxxx | |
lineinfile: | |
dest: /tmp/demo |
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 collections | |
import multiprocessing | |
import time | |
startzeit = time.time() | |
Scientist = collections.namedtuple('Scientist', [ | |
'name', | |
'born', | |
]) |
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/sh | |
### BEGIN INIT INFO | |
# Provides: mkdir-tmpfs | |
# Required-Start: mountall | |
# Required-Stop: | |
# Should-Stop: | |
# X-Start-Before: | |
# Default-Start: 1 2 3 4 5 | |
# Default-Stop: |
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
//jQuery extension to fetch an rss feed and return it as json via YQL | |
//created by dboz@airshp.com | |
(function($) { | |
$.extend({ | |
feedToJson: function(options, callback) { | |
if ($.isFunction(options)) { | |
callback = options; | |
options = null; | |
} |
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
function isDateTimeValid(second, minute, hour, day, month, year) | |
function check(x, xmin, xmax) | |
return x >= xmin and x <= xmax | |
end | |
return check(second, 0, 59) and check(minute, 0, 59) and check(hour, 0, 23) and | |
check(day, 1, 31) and check(month, 1, 12) and check(year, 0, 99) | |
end |
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
public class DirectoryCollector implements Collector { | |
private final PlainFileFilter fileFilter; | |
public DirectoryCollector(PlainFileFilter ff) { | |
fileFilter = ff; | |
} | |
@Override | |
public List<FileData> collect(Path path) { |
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
-- | |
-- send DHT22 sensor values to influxdb database | |
-- | |
LOCATION = "upstairs.bathroom" | |
-- ################################# | |
INFLUXDB_HOST = "sun.thomo.de" | |
INFLUXDB_DB = "lhw5" |
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
@ECHO off | |
cd "D:\Daten\Skripte\" | |
start /min cmd /c watchdog.cmd | |
c:\Windows\SysWOW64\cscript.exe "D:\Daten\Skripte\Sync.vbs" %* | |
del watchdog_starttimestamp.ts 2> nul |
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
package abc; | |
import static org.mockito.Matchers.any; | |
import static org.mockito.Matchers.eq; | |
import java.awt.Component; | |
import javax.swing.JOptionPane; | |
import org.powermock.api.mockito.PowerMockito; |
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
esptool.py --port /dev/tty.wchusbserialfa1* --baud 115200 write_flash 0x00000 nodemcu-master-10-modules-2016-08-21-14-41-09-float.bin 0x3fc000 esp_init_data_default.bin -fm=dio -fs=32m |