1. Setup ODBC on your Mac (including Apple Silicon)
Install brew
unixodbc
package from brew
works for Apple Silicon
USE TestDB | |
GO | |
DECLARE @DatabaseName VARCHAR(100) | |
DECLARE @SchemaName VARCHAR(100) | |
DECLARE @TableName VARCHAR(100) | |
DECLARE @ColumnName VARCHAR(100) | |
DECLARE @FullyQualifiedTableName VARCHAR(500) | |
--Create Temp Table to Save Results |
build-container: | |
stage: build | |
image: | |
name: moby/buildkit:rootless | |
entrypoint: [ "sh", "-c" ] | |
variables: | |
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox | |
before_script: | |
- | | |
mkdir ~/.docker |
1. Setup ODBC on your Mac (including Apple Silicon)
Install brew
unixodbc
package from brew
works for Apple Silicon
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#!/bin/bash | |
youtube_url="$1" | |
echo "Downloading video..." | |
video_info=$(yt-dlp -e -o "%(title)s" -- "$youtube_url") | |
sanitized_title=$(echo "$video_info" | sed 's/[^a-zA-Z0-9_.-]/_/g') | |
output_file="${sanitized_title}.mp4" | |
yt-dlp -o "temp.mp4" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -- "$youtube_url" |
let token = "your token"; | |
function login(token) { | |
setInterval(() => { | |
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` | |
}, 50); | |
setTimeout(() => { | |
location.reload(); | |
}, 2500); | |
} |
[FileInfo] | |
FileName=C:/Users/Stealth/Desktop/AC24ls.dcf | |
FileVersion=1 | |
FileRevision=0 | |
EDSVersion=4.0 | |
Description=Gen4 (T,P,PS - slip)29 March 2012 13:20 | |
CreationTime=04:38PM | |
CreationDate=02-24-2015 | |
CreatedBy=Tech/Ops SEVCON Ltd | |
ModificationTime=04:38PM |
#!/usr/bin/env python3 | |
"""Util to fetch sample files.""" | |
import json | |
import logging | |
from dataclasses import dataclass | |
from urllib.error import HTTPError | |
from urllib.request import Request, urlopen | |
logging.basicConfig(encoding="utf-8", level=logging.INFO, format="%(asctime)-15s %(levelname)-8s | %(message)s") |
# Thanks to @danger89 and @Ilothar for updating the gist. | |
# Set the name and the supported language of the project | |
project(hello-world C CXX) | |
# Set the minimum version of cmake required to build this project | |
cmake_minimum_required(VERSION 3.10) | |
# Use the package PkgConfig to detect GTK+ headers/library files | |
find_package(PkgConfig REQUIRED) | |
pkg_check_modules(GTK REQUIRED gtkmm-3.0) |