Skip to content

Instantly share code, notes, and snippets.

View aborsu's full-sized avatar

Augustin Borsu aborsu

View GitHub Profile
@aborsu
aborsu / toto.py
Created February 8, 2019 06:42
For vio
df = pd.DataFrame.from_records([
{
"id": post.id,
"title": post.title,
"url": post.url,
"text": post.selftext,
"author": post.author.name if post.author else "",
"created_utc": datetime.utcfromtimestamp(post.created_utc),
"flair": post.link_flair_text,
} for post in posts])
@aborsu
aborsu / run-sonar.sh
Last active April 7, 2016 08:53
circle-ci
#!/bin/bash
function install() {
wget -N http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip;
unzip -o sonar-runner-dist-2.4.zip;
}
function run() {
if [ $CI_PULL_REQUEST ];
then ./sonar-runner-2.4/bin/sonar-runner \

Install vagrant

brew cask install virtualbox
brew cask install vagrant

Goodies (for Simon)

Vagrant-manager

Title bar icon to start/stop and destroy vagrant clusters.

@aborsu
aborsu / sonarqube.nix
Created January 11, 2016 23:24
First attempt at making a sonarQube package for nixos.
{ stdenv, fetchurl, unzip, pkgs, makeWrapper, jre, utillinux, getopt, procps }:
stdenv.mkDerivation rec {
name = "sonarqube-${version}";
version = "5.3";
src = fetchurl {
url = "https://sonarsource.bintray.com/Distribution/sonarqube/${name}.zip";
sha256 = "4e61ee3a01d5e447bcd64357df77e0377325c4a2bb5ceb2cdeb5a5d193443ba5";
};