Skip to content

Instantly share code, notes, and snippets.

View rizplate's full-sized avatar

Whats in the name rizplate

View GitHub Profile
@goraj
goraj / incremental_lightgbm.py
Last active October 1, 2021 03:25
incremental learning lightgbm
# -*- coding: utf-8 -*-
"""
@author: goraj
"""
import lightgbm as lgbm
from sklearn.datasets import load_digits
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score
kubectl get services # List all services
kubectl get pods # List all pods
kubectl get nodes -w # Watch nodes continuously
kubectl version # Get version information
kubectl cluster-info # Get cluster information
kubectl config view # Get the configuration
kubectl describe node <node> # Output information about a node
kubectl get pods # List the current pods
kubectl describe pod <name> # Describe pod <name>
kubectl get rc # List the replication controllers
@almoraes
almoraes / 0x-ebrotate.config
Created January 2, 2018 17:34
EB AWS rotate docker logs
files:
"/etc/logrotate.elasticbeanstalk.hourly/logrotate.elasticbeanstalk.dockerlogs.conf":
mode: "000644"
owner: root
group: root
content: |
/var/lib/docker/containers/*/*.log {
size 100M
rotate 14
missingok
FROM debian:stretch
RUN apt-get update
RUN apt-get install -y python3 python3-pip erlang rabbitmq-server unixodbc unixodbc-dev
RUN pip3 install pyodbc apscheduler nameko
COPY config.yaml /srv/config.yaml
COPY service.py /srv/service.py
CMD /etc/init.d/rabbitmq-server start; cd /srv; nameko run service --config config.yaml

Awesome Blockchain

Curated list of awesome bitcoin blockchain services:

Assets

  • Coinspark - Upgrade your bitcoin with messaging and assets
  • Coinprism - Use the Bitcoin blockchain with any kind of asset
  • Colu.co - Creating, Storing and Managing Digital Assets On Top of the Bitcoin Blockchain
  • Chronicled - Collect and trade 100% authentic products
@bobquest33
bobquest33 / odo_csv_upload.py
Created April 11, 2017 06:17
100 Scripts in 30 Days challenge: Script 2 & 3 — Loading a 3 GB csv file into DB using Pandas & Odo
Statsitics:
pandas_csv_upoad.py
Timing: 01:59:36.97 (1 Hour, 59 Mins, 36.97 Sec)
odo_csv_upload.py
Timing: 00:30:12.96 (30 Mins, 12.96 Sec)
@ruanbekker
ruanbekker / boto3_emr_create_cluster_with_wordcount_step.py
Created March 21, 2017 19:16
Create EMR Cluster with a Wordcount Job as a Step in Boto3
import boto3
client = boto3.client(
'emr',
region_name='eu-west-1'
)
cmd = "hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount file:///etc/services /output"
emrcluster = client.run_job_flow(
@abayer
abayer / Jenkinsfile
Created February 15, 2017 15:17
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',
@DanielBerman
DanielBerman / .eb extension config for Elastic Beanstalk
Created February 9, 2017 08:38
.eb extension for Elastic Beanstalk to send logs to Logz.io with Filebeat
files:
"/etc/filebeat/filebeat.yml":
mode: "000755"
owner: root
group: root
content: |
filebeat:
# List of prospectors to fetch data.
prospectors:
-
@jakubczaplicki
jakubczaplicki / app.py
Created February 2, 2017 18:20
Flask Logging Logger Configuration
import sys
import logging
import logging.config
from flask import Flask
class LoggerConfig:
dictConfig = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {