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/bash | |
| sudo -u pi /usr/bin/vlc -d --pidfile /tmp/vlc.pid -I dummy \ | |
| v4l2:// :v4l2-dev=/dev/video0 \ | |
| :v4l2-width=320 :v4l2-height=240 :live-caching=300 \ | |
| --sout="#transcode{vcodec=mp4v,vb=300,scale=1}:http{dst=:8080/stream.ts}" |
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/bash | |
| sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
| sudo ntpdate cn.pool.ntp.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
| var http = require('http'), | |
| inspect = require('util').inspect; | |
| var Busboy = require('busboy'); | |
| http.createServer(function(req, res) { | |
| if (req.method === 'POST') { | |
| var busboy = new Busboy({ headers: req.headers }); | |
| busboy.on('file', function(fieldname, file, filename, encoding, mimetype) { | |
| console.log('File [' + fieldname + ']: filename: ' + filename + ', encoding: ' + encoding + ', mimetype: ' + mimetype); |
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 | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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 | |
| ##### Created by Pawan ##### | |
| ##### Vesion 1.4 ##### | |
| # Usage helper for this script | |
| function usage() { | |
| local prog="${1:-check_jstat.sh}" | |
| echo "Usage: $prog -v"; | |
| echo " Print version and exit" | |
| echo "Usage: $prog -h"; |
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
| /* clock animation */ | |
| /* WebKit */ | |
| span.sec { | |
| -webkit-animation: rotateBB 60s infinite linear; | |
| } | |
| span.min { | |
| -webkit-animation: rotateBB 3600s infinite linear; | |
| } |
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
| wmic /node:%1 computersystem get model,name,username,domain /format:htable > c:\triage-%1.html | |
| wmic /node:%1 startup list full /format:htable >> c:\triage-%1.html | |
| wmic /node:%1 process get description,processid,parentprocessid,commandline /format:htable >> c:\triage-%1.html | |
| wmic /node:%1 service get name,processid,startmode,state,status,pathname /format:htable >> c:\triage-%1.html | |
| wmic /node:%1 job list full /format:htable >> c:\triage-%1.html |
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
| BATCHUPDATE脚本,建立数据源 | |
| newds.script | |
| --------------------------------------------------- | |
| # create cp | |
| CREATE_POOL mypool url=jdbc:oracle:thin:@10.0.1.1:1521:intgtest11,driver=oracle.jdbc.OracleDriver,testConnsOnReserve=true,testTableName=dual,initialCapacity=2,maxCapacity=10,capacityIncrement=2,allowShrinking=true,props=user=user;password=passwd | |
| # create ds | |
| CREATE -mbean base_domain:Name=myds,Type=JDBCTxDataSource | |
| # set CP Name |
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
| define hostgroup{ | |
| hostgroup_name access_points | |
| alias Access Points | |
| } | |
| {%- for ap in items %} | |
| define host{ | |
| use generic-switch | |
| host_name {{ ap.name }} | |
| alias {{ ap.name }} |
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
| # -*- coding: utf-8 -*- | |
| import scrapy | |
| from scrapy.spiders import CrawlSpider, Rule | |
| from scrapy.linkextractors import LinkExtractor | |
| from scrapy import Request | |
| from telnum.items import TelnumItem | |
| class HaojuSpider(CrawlSpider): | |
| name = "haoju" |