Skip to content

Instantly share code, notes, and snippets.

@hvva
hvva / csv2json.sh
Last active April 23, 2025 06:08
Convert CSV to JSON using bash
#!/bin/bash
# A script to convert a CSV (excel export) file into JSON
# Usage ./csv2json input.csv > output.json
# Slightly modified version of SECAGUY's:
# http://blog.secaserver.com/2013/12/convert-csv-json-bash/
input=$1
[ -z $1 ] && echo "No CSV input file specified" && exit 1
[ ! -e $input ] && echo "Unable to locate $1" && exit 1
@ncalm
ncalm / KPICard-usage.py
Created November 18, 2024 23:54
This gist shows an example of creating a Power BI-style KPI card using Python in Excel
# Create a KPI card
card = KPICard(figsize=(4, 3))
# Add elements to the card
card.add_title("Revenue")
card.add_value(1234567, prefix="$", suffix="")
card.add_change(12.5) # Will show with arrow
card.add_subtitle("vs. Previous Month")
card.add_border()
@PaulNeumann
PaulNeumann / Ubuntu_Vagrant_libvirt.md
Last active April 23, 2025 06:02
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@cbatson
cbatson / how-to-install-ifuse-on-macos.md
Last active April 23, 2025 06:01
How To Install ifuse on macOS (Updated Nov 2023)
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active April 23, 2025 06:01
Active StarUml version 6 for Window | MacOS | Linux
@ruvnet
ruvnet / .roomodes.json
Last active April 23, 2025 05:56
This guide introduces Roo Code and the innovative Boomerang task concept, now integrated into SPARC Orchestration. By following the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion) and leveraging advanced reasoning models such as o3, Sonnet 3.7 Thinking, and DeepSeek, you can efficiently break down complex proj…
{
"customModes": [
{
"slug": "sparc",
"name": "⚡️ SPARC Orchestrator",
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.",
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded
@romiroma
romiroma / Tappable-SwiftUI.swift
Created October 31, 2020 06:06
Tappable Text in SwiftUI
import Foundation
import SwiftUI
struct TappableColoredText: View {
enum Component {
case text(String)
case tappable(String, () -> Void)
}
let components: [Component]

Easy Telemetry Disable for 10/11

Prerequisites

  1. Upgrade to Enterprise edition of Windows 10/11 if you are running Home or Pro.
    • You can do this through the Change Edition option in the Extras menu in MAS.

Disabling Telemetry via Group Policy

  1. Open the Group Policy Editor. Search for "Edit Group Policy" in search or run gpedit.msc.
@bradtraversy
bradtraversy / terminal-commands.md
Last active April 23, 2025 05:49
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@Pusnow
Pusnow / CS 분야 우수 학술대회 목록.csv
Last active April 23, 2025 05:42
CS 분야 우수 학술대회 목록
약자 한국정보과학회 (2024) BK21플러스 IF (2018) KAIST CS (2022) SNU CSE (2024.4) POSTECH CSE (2024.9) 평균 (정규화) 학회명 DBLP Key
AAAI 최우수 4 O O 최우수 1.00 AAAI Conference on Artificial Intelligence (AAAI) conf/aaai
AAMAS 우수 2 0.20 International Conference on Autonomous Agents and Multiagent Systems (AAMAS) conf/ifaamas
ACCV 우수 1 우수 0.25 Asian Conference on Computer Vision (ACCV) conf/accv
ACL 최우수 4 O O 최우수 1.00 Annual Meeting of the Association for Computational Linguistics (ACL) conf/acl
ACL Findings 우수 우수 0.20 Findings of ACL series/findacl
ACNS 우수 0.10 International Conference on Applied Cryptography and Network Security (ACNS) conf/acns
ACSAC 우수 2 우수 0.30 Annual Computer Security Applications Conference (ACSAC) conf/acsac
AIED 우수 0.10 International Conference on Artificial Intelligence in Education (AIED) conf/aied
AISTATS 우수 1 우수 0.25 International Conference on Artificial Intelligence and Statistics (AISTATS) conf/aistats