Skip to content

Instantly share code, notes, and snippets.

@ziadoz
ziadoz / install.sh
Last active February 8, 2025 16:04
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@wagner
wagner / vaga-dev-senior.md
Last active February 26, 2018 14:05
Desenvolvedor Ruby on Rails Sênior - São Paulo/SP - Vindi

Desenvolvedor Ruby on Rails Sênior - São Paulo

Publicação: 26/02/2018

A Vindi (https://www.vindi.com.br) é uma empresa brasileira de tecnologia especializada em pagamento recorrente (subscription billing). Estamos buscando um profissional que atenda os seguintes requisitos:

  • Domínio da linguagem Ruby e do framework Ruby on Rails;
  • Experiência com arquitetura, documentação e manutenção de APIs REST;
  • Capacidade de se comunicar em inglês verbalmente ou por escrito.

Além disso valorizamos toda experiência profissional no desenvolvimento e manutenção de plataformas para meios de pagamento (adquirência, subadquirência, gateway e fintechs em geral), bem como qualquer forma de contribuição para a comunidade open source, seja através de código, palestras ou participação em eventos.

@givigier
givigier / backend.mkd
Last active March 14, 2016 18:06
Open positions at Agrid

Backend Developer at Agrid

  • Full time position
  • Flexible working hours
  • Remote job
  • Salary from R$ 3000,00 to R$ 6000,00 according with experience
  • Company stocks in case of hiring

Agrid is an API of prices of services that aims to make market more fair for clients and service providers. Our team consists of experienced developers who needs others qualified and agile professionals to transform ideas in code.

@bkaradzic
bkaradzic / orthodoxc++.md
Last active February 27, 2025 08:52
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@renchap
renchap / README.md
Last active February 14, 2025 13:25
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {
@eliotsykes
eliotsykes / current-route-query-params-ember-component.js
Last active August 15, 2024 15:15
How to get the current route, queryParams, etc. in an Ember component
// Examples
// Yes, "router.router" twice - this assumes that the router is being injected
// into the component. Otherwise lookup 'router:main'
// One of these will be of interest, figure out which one you want:
this.get('router.router.state');
this.get('router.router.state.params');
this.get('container').lookup('controller:application').currentPath;
@tobyzerner
tobyzerner / app.js
Created April 8, 2015 02:38
Mithril ES6 Components
import Component from './component';
class Widget extends Component {
init(ctrl) {
var props = this.props;
ctrl.counter = props.initialValue;
ctrl.increment = function() {
ctrl.counter++;
@peihsinsu
peihsinsu / gce-snapshot.sh
Created September 19, 2014 13:38
GCE daily scheduling snapshot backup
#!/bin/bash
# Environments
export PATH=/root/google-cloud-sdk/bin:$PATH
# Daily create snapshot for "backup_path" listed disks
# And remove snapshot 1 week old before
# Create snap date
export DT=`date +%Y%m%d`