Skip to content

Instantly share code, notes, and snippets.

View saiberz's full-sized avatar
🌴
Traveling

Fredy M. saiberz

🌴
Traveling
View GitHub Profile
@saiberz
saiberz / docker-compose.yml
Created June 18, 2017 18:14
sample sql-server
version: '2'
services:
sql-server:
image: microsoft/mssql-server-linux
ports:
- 1433:1433
volumes:
- /sql-server-data:/var/opt/mssql
environment:
- SA_PASSWORD=jdev29121985
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~ /.well-known {

Keybase proof

I hereby claim:

  • I am saiberz on github.
  • I am saiberz (https://keybase.io/saiberz) on keybase.
  • I have a public key whose fingerprint is D11F C64B 1018 73C8 2C62 6F7F 6B27 028A 228D 2D06

To claim this, I am signing this object:

@saiberz
saiberz / test.html
Last active December 25, 2015 00:39
<div class='.users'>
<div class='.userBox'>
<div class='.userName'> Name1</div>
<div>
<div>SomeStuff</div>
<div class='.userEmail'> Email1</div>
</div>
<img src='path/to/image1'/>
</div>
<div class='.userBox'>
@saiberz
saiberz / example.html
Created December 22, 2015 21:45 — forked from anaisbetts/example.html
ExecuteJavaScript returning a result
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Electron boilerplate</title>
<link rel="stylesheet" href="index.css">
<script>
window.foo = {};
window.foo.bar = {
baz: function(a,b) {
post:
description: Add a new user
operationId: addUser
parameters:
- name: user
in: body
description: New user to add
schema:
$ref: "#/definitions/NewUser"
responses:
@saiberz
saiberz / ggwp.py
Last active August 29, 2015 14:19
dotahelp
import requests
import json
items_list = requests.get('http://steamcommunity.com/market/appfilters/570')
items_json = json.loads(items_list.text)
heroes_list = items_json['facets']['570_Hero']['tags']
heroes = []
hero = {}
#for k,v in heroes_list.iteritems():
for key in heroes_list:
@saiberz
saiberz / dotay.py
Created April 22, 2015 07:13
GG Dota Y
# coding: utf-8
import requests
from requests import Session
import re
from pprint import pprint
import json
from time import sleep
url = 'http://steamcommunity.com/market/search/render/'
@saiberz
saiberz / compojure.clj
Last active October 23, 2024 07:41
Introduction to Compojure
Foreword
========
This is a very rough draft of the tutorial I'm going to put on
compojure.org. It's not complete, but it covers most of the basics.
There's a possibility some of the terminology (such as handlers and
routes) might change, but I'll let you know if it does. The technical
content, however, should be accurate and up to date.
Criticism is very welcome; I'd like to know if anything is unclear or
@saiberz
saiberz / pretty_region.json
Created December 29, 2014 01:50
Region Pretty
{
"20": {
"Pasco": {
"0": [],
"63": [],
"64": [],
"65": [],
"66": [
"http://www.web.onpe.gob.pe/home/modFondosPartidarios/download_mr/ERM-2010-REG/PIURA/FUERZA_REGIONAL/ingresos_1.pdf",
"http://www.web.onpe.gob.pe/home/modFondosPartidarios/download_mr/ERM-2010-REG/PIURA/FUERZA_REGIONAL/gastos_1.pdf"