sendmail: send file contents
sendmail someone@somewhere.com < somefile
sendmail someone@somewhere.com < somefile
http://help.eclipse.org/luna/topic/org.eclipse.platform.doc.isv/reference/api/index.html
curl -k ‘https://localhost:4200/api/pdf/130869’ -H "Authorization: Bearer …" -O -Jcurl -k ‘https://localhost:4200/api/pdf/130869’ -H "Authorization: Bearer …" -O -J
curl –user user:pass -k -v -H "Content-Type: application/json; charset=utf-8" -X POST -d ‘{"text":"message"}’ https://somewhere.com/rest/testcurl –user user:pass -k -v -H "Content-Type: application/json; charset=utf-8" -X POST -d ‘{"text":"message"}’ https://somewhere.com/rest/test
ON echo 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable OFF echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable
# .—————- minute (0 – 59) # | .————- hour (0 – 23) # | | .———- day of month (1 – 31) # | | | .——- month (1 – 12) OR jan,feb,mar,apr … # | | | | .—- day of week (0 – 6) (Sunday=0 or 7) # | | | | Read more about crontab examples[…]
Dependencies npm install socket.io Server var fs = require(’fs’); var app = require(’http’).createServer( function(req, res) { // serwuj client.html fs.readFile(’client.html’, function(err, data) { res.writeHead(200); res.end(data); }); } ); app.listen(8081); var io = require(’socket.io’).listen(app); io.sockets.on(’connection’, function (socket) { // send welcome message socket.emit(’from-server’, { date: ‘welcome to time service’ }); // send time on Read more about node.js – Socket.IO[…]
mvn archetype:generate -DgroupId=[YOUR_GROUP_ID] -DartifactId=[YOUR_ARTIFACT_ID] -DarchetypeGroupId=co.ntier -DarchetypeArtifactId=spring-mvc-archetype -DinteractiveMode=false
To get 12 line from file: sed -n ’12p’ file
Find: (log.(info|debug)\(.*;) Replace with: //$1