Skip to content

Instantly share code, notes, and snippets.

View Wats0ns's full-sized avatar
💭
Pythoning some python

Wats0ns

💭
Pythoning some python
View GitHub Profile
@Wats0ns
Wats0ns / Talk meetup Python Lyon.ipynb
Created October 15, 2024 07:24
Talk meetup Python Lyon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"apiVersion": |-
argoproj.io/v1alpha1
"kind": |-
Workflow
"metadata":
"annotations":
"pipelines.kubeflow.org/pipeline_spec": |-
{"description": "A pipeline with two sequential steps.", "inputs": [{"default": "gs://kubeflow-ryanbouamara/kc_house_data.csv", "name": "url", "optional": true}, {"default": "/mnt/trained_model", "name": "trained_path", "optional": true}, {"default": "/mnt/dataset.csv", "name": "data_path", "optional": true}], "name": "Sequential pipeline"}
"generateName": |-
sequential-pipeline-
@Wats0ns
Wats0ns / load_tester.py
Created June 30, 2017 09:33
Zappy Load Tester
#!/usr/bin/python3
import sys, socket
from multiprocessing.dummy import Pool as ThreadPool
import multiprocessing
import time
def starter(sockets):
for sock in sockets:
print("Broadcasting")
sock.send("Broadcast tutut\n".encode())
@Wats0ns
Wats0ns / hashed_Nodejs.js
Created November 10, 2016 08:22
CakePHP Security::Hash in NodeJS
var crypto = require('crypto');
var hash_sha1 = function(password, salt){
password = salt + password;
var hash = crypto.createHash('sha1');
hash.update(password);
var value = hash.digest('hex');
return value;
};