for i in {1..100000}; do head -c 500 /dev/urandom > dummy$i; done
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
AWSTemplateFormatVersion: 2010-09-09 | |
Description: >- | |
Template that will create a Lambda Function to send CF Logs to CloudWatch. Template will create CW Contributor Insight rules, metric filters and a dashboard. | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- | |
Label: | |
default: "S3 Logging Location" | |
Parameters: |
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
{ | |
"max-line-length": 250, | |
// list codes for fixes; used by --ignore and --select | |
"list-fixes": "", | |
// do not fix these errors / warnings(e.g. E4, W) | |
"ignore": "E24, E226", | |
// select errors / warnings(e.g. E4, W) |
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 | |
# description: check cht-wifi login status, and auto login if no login. | |
# default script path: /mnt/sda1/mnt/scripts/login-cht-wifi.sh | |
# author: JustinTWD <[email protected]> | |
# date: 2016/03/12 | |
USERNAME=YOUR_CHT_ACCOUNT | |
PASSWD=YOUR_CHT_PASSWORD | |
LOGFILE=/mnt/sda1/log/cht-wifi.log | |
TMPSESSION=/tmp/cht_session.tmp |
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 klass = function (Parent, props) { | |
var Child, F, i; | |
// 1. | |
// new constructor | |
Child = function () { | |
if (Child.uber && Child.uber.hasOwnProperty("__construct")) { | |
Child.uber.__construct.apply(this, arguments); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<owncloudclient> | |
<version>2.0.9.0</version> | |
<versionstring>2.0.9.0</versionstring> | |
<web>https://drive.hopebaytech.com/downloads/arkease-pro_win.exe</web> | |
<downloadurl>https://drive.hopebaytech.com/downloads/arkease-pro_win.exe</downloadurl> | |
</owncloudclient> |
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 PORT = 8088; | |
var HOST = '192.168.67.91'; | |
var dgram = require('dgram'); | |
var client = dgram.createSocket('udp4'); | |
client.on('listening', function () { | |
var address = client.address(); | |
console.log('UDP Client listening on ' + address.address + ":" + address.port); | |
client.setBroadcast(true) | |
client.setMulticastTTL(128); |
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
Vagrant.configure("2") do |config| | |
# define dev_docker for web development | |
config.vm.define "dev_docker" do |dkr| | |
dkr.vm.provider "docker" do |d| | |
d.cmd = ["/sbin/my_init", "--enable-insecure-key"] | |
d.image = "phusion/baseimage" | |
d.has_ssh = true | |
end | |
dkr.ssh.username = "root" | |
dkr.ssh.private_key_path = "deploy/docker/phusion.key" |
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
<?php | |
#============================================================================== | |
# LTB Self Service Password | |
# | |
# Copyright (C) 2009 Clement OUDOT | |
# Copyright (C) 2009 LTB-project.org | |
# | |
# 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 |