Skip to content

Instantly share code, notes, and snippets.

View coisnepe's full-sized avatar
🤷‍♂️
Who reads Github statuses anyway ?

coisnepe

🤷‍♂️
Who reads Github statuses anyway ?
View GitHub Profile
@acookin
acookin / agent.py
Created September 8, 2022 22:58
Agent + flow to cleanup local process flow runs
"""
Runs prefect agent
Keeps track of flow runs the agent kicked off,
and sets a DateTime block storage to NOW() for
every running flow, every couple of seconds.
Also, has a cleanup function that will set the state of
every running flow to AwaitingRetry for each running
flow.
@asandeep
asandeep / prefect_cleanup.py
Created October 27, 2020 02:57
Flow to cleanup old prefect flow runs.
import pendulum
import prefect
from dynaconf import settings
from prefect import schedules
from prefect.schedules import clocks
# Cron schedule to execute cleanup job. Currently set to run at 00:00 (UTC)
# every Sunday.
DATA_CLEANUP_SCHEDULE_CRON_STRING = "0 0 * * 0"
@super3
super3 / readme.md
Last active July 21, 2020 11:03 — forked from jimmywarting/readme.md
Cors Proxies
Server SSL Metods Server country code Comments
[YaCDN][1] GET EU Unlimited size and unlimited requests (for now)
[crossorigin.me][2] GET US Require Origin header
2MB size limit
[cors-proxy.htmldriven][3] - CZ JSON response
don't work well with binary
[cors-proxy.taskcluster][4] POST US Only witelisted to taskcluster.net
Can send any header/method
[thingproxy][9] ANY US Limited to 100kb for both upload and download, max 10 req/sec
[whateverorigin][10] GET US Only supports JSONP
[cors.io][11] GET, HEAD US Only supports GET and HEAD request
[gobetween][12] GET US Only supports GET requests
@TysonRayJones
TysonRayJones / nvidia_gpu_on_osx.md
Last active April 4, 2024 14:45
How to connect an NVIDIA eGPU to OSX

Using an NVIDIA eGPU with OSX

Installation Instructions

Connecting the eGPU

Do not connect the eGPU to your Macbook until instructed.

@praveenperera
praveenperera / webpack.config.babel.js
Last active December 20, 2017 05:19
Webpack 2.0+ with Phoenix 1.3+ (Elixir)
import webpack from "webpack";
import ExtractTextPlugin from "extract-text-webpack-plugin";
import CopyWebpackPlugin from "copy-webpack-plugin";
import WebpackNotifierPlugin from "webpack-notifier";
import path from "path";
const ENV = process.env.NODE_ENV || "development";
const IS_PROD = ENV === "production";
const OUTPUT_PATH = path.resolve(__dirname, "..", "priv", "static");
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
@ziadoz
ziadoz / install.sh
Last active November 7, 2024 19:48
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@caironoleto
caironoleto / apartment_setup_database_test.rake
Last active November 22, 2017 17:53
A faster way to deal with apartment in specs.
# This rake will setup the tenant like rails
# setup the test database.
Rake::Task['db:test:prepare'].enhance do
# Connect in the test database.
Rails.env = 'test'
ActiveRecord::Base.establish_connection('test')
Apartment::Tenant.drop('app') rescue nil
Apartment::Tenant.create('appp')
@rpanachi
rpanachi / db.rake
Created April 10, 2016 21:26
Rakefile for Sequel database operations
namespace :db do
require 'sequel'
Sequel.extension(:migration)
MIGRATIONS_PATH = 'db/migrations'
def db_conn_env
ENV["BOOKSHELF_DATABASE_URL"]
end