Skip to content

Instantly share code, notes, and snippets.

View Danielericking's full-sized avatar
🏠
Working from home

Daniel Danielericking

🏠
Working from home
View GitHub Profile
@devil-cyber
devil-cyber / _cnn.py
Created November 13, 2020 08:27
CNN classifier using CIFAR10 dataset with Pytorch
import torch
import torch.nn as nn
import torchvision
from torchvision.transforms import transforms
from torchvision import datasets
from torch.utils.data import DataLoader
import torch.nn.functional as F
# HyperParameter
device = torch.device('cuda' if torch.cuda.is_available else 'cpu')
@eray995
eray995 / PY0101EN-3-4-Classes.ipynb
Created November 13, 2020 08:26
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Danielericking
Danielericking / emojis.md
Created September 26, 2020 21:24 — forked from andrepg/emojis.md
Markdown GitHub Emojis

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
EXPLAIN (ANALYZE, VERBOSE, BUFFERS) SELECT count(id)                                                                                                                                                      
FROM "product_template"
LEFT JOIN (SELECT res_id, value
    FROM "ir_translation"
    WHERE type='model' AND name='product.template,name' AND lang='es_CR' AND value!='') as "product_template__name"                                                                                               
    ON ("product_template"."id" = "product_template__name"."res_id") WHERE (("product_template"."active" = true) AND ("product_template"."type" in ('consu','product')))
@mao-odoo
mao-odoo / create_ab.sh
Created May 31, 2019 08:57 — forked from nvn-odoo/create_ab.sh
Creates a database with schema 'a' and schema 'b' containing databases given in parameters
#!/bin/bash
# This tool creates a database $3 from database $1 and database $2
# database $1 will ends in the schema a
# database $2 will ends in the schema b
# this will allow comparisons between two schemas in the same database
if [ "$1" = "" ]; then
echo "USAGE: $0 <DBNAME_A> <DBNAME_B> <DBNAME_AB>" >&2
exit 1
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@ryanc-me
ryanc-me / odoo.conf
Last active September 26, 2020 22:51
Sample Odoo/Nginx Config (with dbfilter_from_header support)
# Author: Ryan Cole
# Website: https://ryanc.me
# GitHub: https://github.com/MGinshe
# Usage:
# Place this file in /etc/nginx/sites-enabled/
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections
#
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/
@mga-odoo
mga-odoo / odoo-nginx.conf
Created January 29, 2016 13:27
Odoo Proxy Server Configuration on Nginx
upstream odoo-server {
server 0.0.0.0:8069;
}
upstream odoo-server-im {
server 0.0.0.0:8072 weight=1 fail_timeout=0;
}
server {
@alexpos
alexpos / Example 1
Created December 13, 2012 17:39
Several examples how to use python-wordpress-xmlrpc to post to wordpress
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import NewPost
#authenticate
wp_url = "http://192.168.50.100:8051/xmlrpc.php"
wp_username = "admin"
wp_password = "12"
wp = Client(wp_url, wp_username, wp_password)
#post and activate new post