This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Universal WebDAV Server Setup Script for Debian 12 | |
# Works on both standard Debian 12 and WSL environments | |
# Exit on any error | |
set -e | |
# Configuration variables | |
WEBDAV_DIR="/var/www/webdav" | |
WEBDAV_CONF="/etc/apache2/sites-available/webdav.conf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install --upgrade google-cloud-discoveryengine humanize | |
## Install this before running | |
import humanize | |
import time | |
import re | |
from typing import List, Optional | |
from google.api_core.client_options import ClientOptions | |
from google.cloud import discoveryengine_v1beta as discoveryengine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyodbc | |
import json | |
# Connect to your database - don't hardcode the creds! | |
conn = pydobc.connect(database="your_database", user="your_username", password="your_password", host="your_host", port="your_port") | |
cur = conn.cursor() | |
# List of your tables | |
tables = ["table1", "table2", "table3", "table4", "table5", "table6", "table7", "table8", "table9"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @TableName nvarchar(128); | |
DECLARE @Command nvarchar(500); | |
DECLARE TableCursor CURSOR FOR | |
SELECT table_name FROM information_schema.tables | |
WHERE table_schema = 'myschema'; | |
OPEN TableCursor; | |
FETCH NEXT FROM TableCursor INTO @TableName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tweepy #https://github.com/tweepy/tweepy | |
import csv | |
#Twitter API credentials | |
consumer_key = "" | |
consumer_secret = "" | |
access_key = "" |