Skip to content

Instantly share code, notes, and snippets.

@furkanusta
furkanusta / CS223.org
Last active November 27, 2024 20:41
Warnings in Vivado

Common Warnings/Errors

The following notes are collected from my notes and previous semesters’ labs. I’ve removed some of the notes that were rare/specific, if you encounter a warning that is not written in here you can send me an email (you can find on Unilica) or write below this as a comment.

Most of the warnings in here, starts to appear as your code gets bigger. It is only natural for you to not understand all of the reasoning in here during the first few labs. If after getting a warning and reading here you believe that explanation in here is confusing, notify me so I can

@kfatehi
kfatehi / 1pass_dups.js
Last active November 27, 2024 20:38 — forked from thehesiod/1pass_dups.py
1password duplicate remover (alpha, only run in debugger with breakpoints everywhere *g*)
// you need `op` tool for this, download it here https://support.1password.com/command-line/
// create items.json like so:
// op list items | jq > items.json
// then run this script
// this script outputs uuids of dupes as keyed by item title, create, and modified date,
// feed it into the delete command like so:
// node process.js | xargs -I{} op delete item {}
const items = require('./items.json');
@alchem0x2A
alchem0x2A / blender_venv.org
Last active November 27, 2024 20:37
Enable 3rd-party packages in Blender using virtualenv

Install external python packages + virtualenv with Blender

Requirements: Blender 2.80+ (2.79 should also work with pip method, not tested thoroughly)

Step 1: Install virtualenv on the system

In order not to mix the packages installed for Blender (such as scipy, matplotlib) with those system-wide packages, we need to create a virtual environment for the Blender alone.

Best practice is to use a single virtualenv for each version of

@mikekenneth
mikekenneth / rootless_cadvisor.sh
Last active November 27, 2024 20:35
rootless cadvisor : Allow you to start cadvisor with rootless docker so you can monitor les rootless containers
docker run \
--volume=/:/rootfs:ro \
--volume=/run/user/$(id -u)/docker.sock:/var/run/docker.sock:ro \
--volume=/sys:/sys:ro \
--volume=$HOME/.local/share/docker/:/var/lib/docker:ro \
--volume=/dev/disk/:/dev/disk:ro \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
gcr.io/cadvisor/cadvisor:latest
@akhilkailas017
akhilkailas017 / Create a Repack with Inno Setup and FreeArc on Windows.md
Created August 28, 2024 05:52
Create a Repack with Inno Setup and FreeArc on Windows

🚀 Tutorial: Create a Repack with Inno Setup and FreeArc on Windows

Learn how to create a repack using Inno Setup with disk spanning and FreeArc compression. This step-by-step guide will help you create an automated installer that decompresses and installs files seamlessly.

📦 Step 1: Install Necessary Tools

1.1 Install Inno Setup

  1. Go to the Inno Setup website.
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active November 27, 2024 20:34
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@kzzzr
kzzzr / assignment.md
Last active November 27, 2024 20:34
Data Vault 2.0 + Greenplum + dbtVault assignment
@santaklouse
santaklouse / CrossOver.sh
Last active November 27, 2024 20:32
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@fitzgeraldsteele
fitzgeraldsteele / vmss-flex-spot-create.py
Created February 6, 2024 06:41
Create VMSS Flex with Spot Instances sample
# Import the needed credential and management objects from the libraries.
from azure.identity import AzureCliCredential
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.network import NetworkManagementClient
from azure.mgmt.compute import ComputeManagementClient
from azure.mgmt.compute.models import OrchestrationMode
import os
print(f"Provisioning a virtual machine scale set...some operations might take a minute or two.")
@meaksh
meaksh / libcloud_example.py
Created September 11, 2019 13:09
List virtual instances from AWS, Azure and Google Compute Engine using libcloud
#-*- coding: utf8 -*-
# AWS related variables
AWS_ACCESS_KEY_ID = "EXAMPLE"
AWS_SECRET_ACCESS_KEY = "EXAMPLE"
AWS_REGION = "us-east-2"
# Azure related variables
AZURE_SUBSCRIPTION_ID = "EXAMPLE"
AZURE_APPLICATION_ID = "EXAMPLE"