Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.2
servers:
- url: 'https://localhost/api'
description: Test
info:
description: 'Test'
version: 0.0.1
title: Testing API
tags:
- name: test
@el2ro
el2ro / get_temp.py
Last active May 15, 2021 18:43
Example for fetching temperature forecast from a ilmatieteenlaitos API for a certain LAT, LON location
#!/usr/bin/env python
#
# This is example usage for using ilmatieteelaitos api for a fetching
# temperature forecast for a certain LAT & LON position for next 8 hours.
# https://ilmatieteenlaitos.fi/avoin-data
#
# Licensend under MIT
#
import urllib3
@el2ro
el2ro / gist:8914557
Created February 10, 2014 11:54
Get symbols and offset using BFD from unlinked / linked kernel module
if ( 1 ) {
bfd *abfd;
char * target;
char **matching;
asection *asection_p;
fprintf(stderr, "section not found bfd time (%s) (0x%lx)\n",path_.c_str(),load_address);
bfd_init();
abfd = bfd_openr(path_.c_str(),target);
@el2ro
el2ro / setup.sh
Last active February 19, 2016 16:52
Ubuntu 12.04 DigitalOcean setup script
#!/bin/bash
######
#LICENCE#
######
#Released under the BSD license http://www.opensource.org/licenses/bsd-license
#Copyright (c) 2011, Rowan Wookey <admin@rwky.net>
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#