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
def match_all_params(payload, challenge) | |
challenge.each do |key, value| | |
return false unless payload.key?(key) | |
return false unless payload[key] =~ /#{value}/ | |
end | |
true | |
end | |
# returns true | |
puts match_all_params ({'foo'=>'bar', 'biz'=>'baz'}), ({'foo'=>'b.*'}) |
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
worker_processes 8; | |
# daemon off; | |
# master_process off; | |
error_log /dev/stdout info; | |
events { | |
worker_connections 1024; | |
} |
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
➜ tmp cat Dockerfile | |
ARG FOO | |
FROM ubuntu | |
ENV BAR=$FOO | |
RUN echo "foo=$FOO" | |
RUN echo "foo=${FOO}" | |
RUN echo "bar=$BAR" | |
RUN echo "bar=${BAR}" | |
➜ tmp docker build --build-arg FOO=bar . | |
Sending build context to Docker daemon 38.05MB |
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
+ cat hello.txt | |
0s | |
2 | |
Hello, Drone!! | |
0s | |
3 | |
+ env | |
0s | |
4 | |
DRONE_NETRC_MACHINE=sqbu-github.cisco.com |
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
time="2017-11-21T17:56:12Z" level=debug msg="pull queue item: 93: remove from backup" | |
time="2017-11-21T17:56:12Z" level=debug msg="pull queue item: 93: successfully removed from backup" | |
time="2017-11-21T17:56:12Z" level=info ip=171.71.172.23 latency=325.048862ms method=POST path="/hook" status=200 time="2017-11-21T17:56:12Z" user-agent="GitHub-Hookshot/aeb6012" | |
time="2017-11-21T17:56:13Z" level=info msg="ignoring hook. repo tropo-operations/hello-drone is disabled for pull_request events." | |
time="2017-11-21T17:56:13Z" level=info ip=171.71.172.23 latency=1.001658936s method=POST path="/hook" status=204 time="2017-11-21T17:56:13Z" user-agent="GitHub-Hookshot/aeb6012" | |
time="2017-11-21T17:56:19Z" level=debug msg="agent connected: cb2b88cf10ce: polling" |
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
deb http://repo.mysql.com/apt/debian/ jessie mysql-apt-config | |
deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7 | |
deb http://repo.mysql.com/apt/debian/ jessie mysql-tools | |
#deb http://repo.mysql.com/apt/debian/ jessie mysql-tools-preview | |
deb-src http://repo.mysql.com/apt/debian/ jessie mysql-5.7 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2017-08-23 17:24:16" build="161009a"> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{Shells::cmd}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> |
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
-->[root@sensu3 ~]$ yum list installed | grep sensu | |
sensu.x86_64 1:0.28.0-1.el6 @sensu | |
-->[root@sensu3 ~]$ yum install sensu | |
Loaded plugins: fastestmirror, presto, priorities | |
Setting up Install Process | |
Determining fastest mirrors | |
epel/metalink | 15 kB 00:00 | |
* CentOS-Base: centos.mirror.constant.com | |
* CentOS-Updates: mirror.us.leaseweb.net | |
* epel: mirror.cogentco.com |
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
a = { | |
one: { | |
foo: 'bar', | |
biz: 'baz' | |
}, | |
'hundred': 'thousand' | |
} | |
b = { | |
one: { |
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
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI('https://rbaqf28cn5.execute-api.us-east-1.amazonaws.com/prod/sug') | |
req = Net::HTTP::Post.new uri.path | |
data = `/usr/local/bin/temper-poll` | |
temp = '' |
NewerOlder