Skip to content

Instantly share code, notes, and snippets.

View ieski's full-sized avatar
🌅
Working from home

ismail eski ieski

🌅
Working from home
View GitHub Profile
@ieski
ieski / 0_export_public_key.py
Created May 5, 2024 19:34 — forked from aellerton/0_export_public_key.py
Python sign message with private key and verify with public key
#!/usr/bin/env python
"""Extract the public key from the private key and write to a file.
"""
from Crypto.Hash import SHA256
from Crypto.Signature import PKCS1_v1_5
from Crypto.PublicKey import RSA
with open("private_key.pem", "r") as src:
private_key = RSA.importKey(src.read())
@ieski
ieski / generate_key.sh
Created May 5, 2024 19:34 — forked from cevaris/generate_key.sh
Sign and Verify using Python pycrypto
#!/usr/bin/env bash
# Generate RSA private key
openssl genrsa -out private_key.pem 1024
@ieski
ieski / x509_sign.py
Created May 4, 2024 20:12 — forked from osvalr/x509_sign.py
Sign XML file in python with a x509 certificate
# coding: utf-8
from lxml import etree
from signxml import xmldsig
cert = open('cert.pem').read()
key = open('key.pem').read()
doc = etree.parse('sample.xml').getroot()
@ieski
ieski / odoo_wrapper.py
Created October 31, 2023 20:17 — forked from rafnixg/odoo_wrapper.py
Odoo shell enviroment wrapper for executre custom code
import sys
def execute_script(env, script_path):
# Importa el archivo de script como un modulo
import importlib.util
spec = importlib.util.spec_from_file_location("module.name", script_path)
script_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(script_module)
# Ejecuta la función 'run' del modulo importado
@ieski
ieski / launch.json
Created October 31, 2023 20:16 — forked from rafnixg/launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Odoo",
"type": "python",
"request": "launch",
@ieski
ieski / rarreg.key
Created January 16, 2022 15:11 — forked from MuhammadSaim/rarreg.key
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@ieski
ieski / webinar.md
Created December 16, 2020 20:25 — forked from JVegaB/webinar.md

Field JS

odoo.define('academy.field', (require) => {

    const registry = require('web.field_registry');
    const Widget = require('web.AbstractField');
@ieski
ieski / config
Created January 10, 2019 20:51
SSH Multiple Keys Config File
#Gmail account
Host gitlab.com-ieski
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile "C:\Users\ismaile\.ssh\id_rsa"
IdentitiesOnly yes
#ProJet account
Host gitlab.com-projetgrup
HostName gitlab.com