Skip to content

Instantly share code, notes, and snippets.

View mehmetg's full-sized avatar

Mehmet mehmetg

  • San Francisco, CA
View GitHub Profile
@thomasdarimont
thomasdarimont / app.py
Last active May 11, 2024 09:57
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@juanca
juanca / github_load_all_diffs.js
Created March 2, 2017 18:42
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
package main
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
_ "github.com/mattn/go-sqlite3"
)
type Users struct {
Id int `gorm:"AUTO_INCREMENT" form:"id" json:"id"`
@kyrs
kyrs / opencv_tensor.cc
Last active February 15, 2024 12:44
File Takes an Image Mat file as an input and convert it to tensor.
/*
Following file take opencv mat file as an input and run inception model on it
Created by : Kumar Shubham
Date : 27-03-2016
*/
//Loading Opencv fIles for processing
#include <opencv2/opencv.hpp>
#!/bin/bash
#
# Restart SauceConnect via Rolling Restart
# The port it uses for listening for Selenium Relay
# is chosen automatically an ranges between 4441 and 4449
#
# Tunnel identifiers are optional, but removing them
# from this example would include some tweaking
#
@halkeye
halkeye / saucelabs-swagger.yml
Last active April 8, 2016 17:37
Attempting to start making a swagger file for saucelabs api
# for i in java ruby; do java -jar ./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ../saucerest-java/swagger.yml -l ${i} -o samples/client/saucelabs/${i}/default -DgroupId=com.saucelabs -DartifactId=saucerest -DartifactVersion=2.0.0 -DserializableModel=true; done
swagger: '2.0'
info:
title: Sauce Labs REST API
description: Do the thing!
version: 1.0.0
termsOfService: 'https://saucelabs.com/tos/'
contact:
name: Sauce Labs
url: 'http://saucelabs.com'
@joekiller
joekiller / gtk-firefox.sh
Last active October 21, 2021 04:15 — forked from phstc/gtk-firefox.sh
INSTALL FIREFOX ON AMAZON LINUX X86_64 COMPILING GTK+
#!/bin/bash
# GTK+ and Firefox for Amazon Linux
# Written by Joseph Lawson 2012-06-03
# http://joekiller.com
# http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/
# chmod 755 ./gtk-firefox.sh
# sudo ./gtk-firefox.sh