Run k6 for all branches prefixed with k6/
, i.e. k6/my-test
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
javascript:(function(){ | |
/*@author Pablo Cantero - http://pablocantero.com/blog/2010/09/15/javascript-para-notificar-se-o-site-teve-alteracoes*/ | |
var xmlHttp = getXMLHttpObj(); | |
if(xmlHttp == null){ | |
alert('Failed to load XMLHTTP'); | |
return; | |
} | |
var actual = getPageContent(xmlHttp, window.location.href); | |
var intervalId = window.setInterval(function(){ | |
var current = getPageContent(xmlHttp, window.location.href); |
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
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<script async> | |
/* | |
relay | |
usbProductId: 24577 | |
usbVendorId: 1027 |
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
const { SerialPort } = require('serialport') | |
async function listSerialPorts() { | |
await SerialPort.list().then((ports, err) => { | |
if (err) { | |
// document.getElementById('error').textContent = err.message | |
console.error(err.message) | |
return | |
} else { | |
// document.getElementById('error').textContent = '' |
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
// See https://docs.retool.com/docs/dynamodb-integration | |
import { Stack, StackProps } from "aws-cdk-lib"; | |
import * as dynamodb from "aws-cdk-lib/aws-dynamodb"; | |
import * as iam from "aws-cdk-lib/aws-iam"; | |
import { Construct } from "constructs"; | |
export class DataStack extends Stack { | |
public readonly table: dynamodb.Table; | |
constructor(scope: Construct, id: string, props?: StackProps) { |
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
/* | |
For deploying it: | |
Install aws-cdk: https://github.com/awslabs/aws-cdk then | |
npm run build | |
cdk deploy | |
*/ | |
import cdk = require('@aws-cdk/cdk') |
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
tell application "Google Chrome" to set the bounds of the front window to {1376, 0, 3440, 1440} | |
tell application "iTerm" to set the bounds of the front window to {1376, 0, 3440, 1440} | |
tell application "Slack" to set the bounds of the front window to {0, 0, 1376, 1440} | |
tell application "System Events" to tell application process "WhatsApp" | |
tell window 1 | |
set {size, position} to {{1376, 1440}, {0, 0}} | |
end tell |
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
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
# /usr/bin/notify-site-is-down.rb | |
require "rubygems" | |
require "twilio-ruby" | |
account_sid = ENV["TWILIO_ACCOUNT_SID"] | |
auth_token = ENV["TWILIO_AUTH_TOKEN"] | |
@client = Twilio::REST::Client.new account_sid, auth_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
#These Ruby OOP examples, are based on the Rails 3 presentation by @guilhermecaelum | |
class Person | |
#the attribute name is immutable | |
def initialize(name) | |
@name = name | |
end | |
def name | |
@name | |
end | |
end |
NewerOlder