Badge | Description | Free for OSS | Languages |
---|---|---|---|
Coveralls | Code Coverage | Yes | Ruby, Python, PHP, Node, C/C++, Java, Scala, Go |
Gemnasium | Dependancy Monitoring | Yes | Ruby (RubyGems), Node (NPM) |
Crate | Num of Downloads | ? | Python |
Brakeman | Security | Yes | RoR |
Code Climate | Code Review | Yes | Ruby, Javascript |
Version Badge | Package Version | Yes | Ruby, Python, Node |
Travis CI | Continuous Integration | Yes | C/C++, Clojure, Erlang, Go, Groovy, Haskell, Java, Jav |
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
path_your_folder/* | |
!path_your_folder/.gitkeep | |
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 boto3 | |
def role_arn_to_session(**args): | |
""" | |
Usage : | |
session = role_arn_to_session( | |
RoleArn='arn:aws:iam::012345678901:role/example-role', | |
RoleSessionName='ExampleSessionName') | |
client = session.client('sqs') | |
""" |
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
class Table(Base): | |
id = Column(Integer, primary_key=True) | |
_name = Column('name', String(24)) | |
@property | |
def name(self): | |
return self._name; | |
@name.setter | |
def name(self, value): |
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
# Requires use of Flask Login for the user tracking | |
# Implement by using AuditableMixin in your model class declarations | |
# e.g. class ImportantThing(AuditableMixin, Base): | |
import json | |
from flask_login import current_user | |
from sqlalchemy import event, inspect | |
from sqlalchemy.orm import class_mapper | |
from sqlalchemy.orm.attributes import get_history |
替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`
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 on the top of your project | |
import "github.com/ethereum/go-ethereum/crypto" | |
type ethHandlerResult struct { | |
Result string `json:"result"` | |
Error struct { | |
Code int64 `json:"code"` | |
Message string `json:"message"` | |
} `json:"error"` | |
} |
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
# These examples assume you have a container currently running. | |
# 1 Pipe from a file | |
sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt` | |
#2a Pipe by piping | |
echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash - |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
OlderNewer