Skip to content

Instantly share code, notes, and snippets.

@sotsugov
sotsugov / celery-crontab.py
Last active August 29, 2015 14:28 — forked from alexanderjulo/celery-crontab.py
celery crontab example
from celery.schedules import crontab
from flask.ext.celery import Celery
CELERYBEAT_SCHEDULE = {
# executes every night at 4:15
'every-night': {
'task': 'user.checkaccounts',
'schedule': crontab(hour=4, minute=20)
}
}
@sotsugov
sotsugov / puzzle.md
Last active November 9, 2015 10:54
Einstein's Riddle

There is a street with five houses all in a row. Each house has a person with a different name and each house is painted a different colour. Each homeowner drinks a different type of beverage, owns a different type of pet and reads a different type of newspaper.

  • Jez lives in the red house.
  • Liz keeps corgis as pets.
  • Vlad drinks vodka.
  • The green house is on the immediate left of the white house.
  • The green house's owner drinks coffee.
  • The owner who reads the Morning Star keeps a golden eagle.
@sotsugov
sotsugov / spec.md
Last active October 18, 2016 12:03
Software Engineer in Test

QA Test Engineer

Come grow your career at Nexmo with our QA Engineering team. QA at Nexmo is at the center of everything we do. If you want to create product that changes the world and is committed 100% to customer success — this is the place. Great product. Great people. Great team. Great opportunity. We are looking for highly motivated technical talent that will step up and have an impact.

You will:

  • Work towards improving test automation framework and maintain scalable data sets
  • Develop and contribute to long-term technical solutions and strategies of the engineering department
  • Advocate technical solutions and execute ideas without waiting for, or requiring intervention from others
  • Produce automation scripts in Python (pytest), Java unit testing (jUnit), load and performance testing (e.g. jMeter)
  • Work throughout the entire development cycle together with other technical and non-technical teams participating in product delivery
  • Deliver best quality products and features in shortest period
@sotsugov
sotsugov / codestyle.xml
Last active February 23, 2016 12:22
PyCharm Code Style
<code_scheme name="Nexmo">
<option name="RIGHT_MARGIN" value="100" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
<codeStyleSettings language="Python">
<option name="WRAP_LONG_LINES" value="true" />
<option name="WRAP_ON_TYPING" value="1" />
</codeStyleSettings>
@sotsugov
sotsugov / reclaimWindows10.ps1
Created January 8, 2017 09:54 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@sotsugov
sotsugov / Pandas and Seaborn.ipynb
Created February 24, 2017 09:19 — forked from 5agado/Pandas and Seaborn.ipynb
Data Manipulation and Visualization with Pandas and Seaborn — A Practical Introduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am sotsugov on github.
  • I am sotsugov (https://keybase.io/sotsugov) on keybase.
  • I have a public key ASCWNZTKE4Txsbm0SSHJLSXUrL0pS0vR6RLx8x7HGIBJlQo

To claim this, I am signing this object:

@sotsugov
sotsugov / git-feature-workflow.md
Created May 3, 2017 09:15 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

@sotsugov
sotsugov / HOWTO.md
Created September 28, 2017 18:43 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you