apt-get update
apt-get upgrade
apt-get install curl
# Check VXLAN exists
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/env python3 | |
#ODI DFP-34X-2C2 MAC_KEY key generator by rajkosto | |
import sys | |
import string | |
import hashlib | |
args = sys.argv | |
if len(args) != 2: | |
sys.exit("Usage: odi_keygen.py YOURMACADDR") |
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
PW list by Nezarn | |
~~~~~~~~~~~~~~~~~ | |
Go to test menu and select PASSWORD CONFIRMATION, then you need to "type" in the letters with test menu button, | |
and go to next letter with service button, after you put in the password, press confirm, you should get a msg | |
what you unlocked and if the password was correct or not. | |
Passwords: | |
~~~~~~~~~~ | |
QRKYIMVP | |
4X8WFOKI |
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 | |
# ZTE F450G 垃圾, WebUI 有漏洞,LAN 上 ajax 调用的 URI 并不需要认证。 | |
# | |
# 获取路由信息的 URI 返回 json 如下: | |
# {"macAddr":"aa:bb:cc:dd:ee:ff","productClass":"F450G","wanIpAddr":"xxx.xxx.xxx.xxx","swVer":"V2.0.0P1T1sh","flashSize":256,"dnsIpAddr":"xxx.xxx.xxx.xxx","ramSize":467,"Status":"0","lanIpAddr":"192.168.1.1","runTime":"1619682","CmdType":"GET_GW_INFO"} | |
# | |
# wanIpAddr 即是我们需要的外部 IP。 | |
# | |
# 格式化后: | |
# { |
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
# First, you must get the previous commit sha, the one before the forced push: | |
## Hit through terminal | |
curl -u <username> https://api.github.com/repos/:owner/:repo/events | |
# Then you can create a branch from this sha: | |
## Hit through terminal | |
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs |
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
# 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
# 方法1: 很慢 | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
# 方法2: 较快 | |
# 与方法1无明显区别. 2048位也足够用, 4096更强 | |
openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
以下所有的API都有两种方式可调用 http://api?key=value&key2=value2 以及 http://api/key/value/key2/value
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
import java.io.*; | |
import java.net.*; | |
public class WakeOnLan { | |
public static final int PORT = 9; | |
public static void main(String[] args) { | |
if (args.length != 2) { |
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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/local/bin/php | |
<?php | |
/** | |
* Pre-commit Subversion script. | |
* | |
* Forces the commit message to have a line like | |
* review: 42 | |
* and checks that the review has received a Ship It! from | |
* a peer. | |
* @author Omni Adams <[email protected]> |
NewerOlder