Skip to content

Instantly share code, notes, and snippets.

View match-gabeflores's full-sized avatar

Gabe Flores match-gabeflores

View GitHub Profile
@waynezhang
waynezhang / threads.net.js
Last active August 30, 2024 14:34
Userscript to load Following feed by default in threads.net
// ==UserScript==
// @name Threads
// @description Userscript to load Following feed by default in threads.net
// @match https://www.threads.net/*
// ==/UserScript==
sessionStorage.setItem("feed_variant", "FOLLOWING");
@gordthompson
gordthompson / mssql_insert_json.py
Last active August 29, 2024 01:12
Alternative to_sql() *method* for mssql+pyodbc
# Alternative to_sql() *method* for mssql+pyodbc or mssql+pymssql
#
# adapted from https://pandas.pydata.org/docs/user_guide/io.html#io-sql-method
#
# version 1.6 - 2024-03-28
from datetime import date
import json
import pandas as pd
import sqlalchemy as sa
@aanari
aanari / dropbox_hook.py
Last active August 15, 2023 18:35
Airflow Dropbox Hook
# -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@dazfuller
dazfuller / License.md
Last active July 2, 2024 12:37
Exporting data from a database to Parquet files in .NET (Core). This demo application targets a SQL Server database but the code could be re-used to target other database solutions.

MIT License

Copyright (c) 2018 Darren Fuller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@TheRockStarDBA
TheRockStarDBA / ServerSideTrace.sql
Created July 20, 2015 13:53
Server side trace - stored procedure
/************************************************************************************************************************************************************************************************************************************
************************************************************************************************************************************************************************************************************************************
Author : Kin Shah
Site : http://sqlsybase.azurewebsites.net/
The server side trace SP uses XP_CMDSHELL for creating directories.
Change : @FilePath = 'E:\trace\' as per your location
@Duration = 61 -- this is the trace time in minutes .. change as per your needs
If you want to look at different columns for a given event then use