Skip to content

Instantly share code, notes, and snippets.

View jonpalmisc's full-sized avatar
🔌
Working offline...

Jon Palmisciano jonpalmisc

🔌
Working offline...
View GitHub Profile
@jonpalmisc
jonpalmisc / llvm_emake.toml
Created December 20, 2023 13:10
Emake config for building LLVM for development
[configure]
generator = "Ninja"
args = [
"-DCMAKE_BUILD_TYPE=Debug",
"-DCMAKE_INSTALL_PREFIX=/Users/jp/Developer/Prefix/opt/llvm-debug",
"-DLLVM_ENABLE_PROJECTS=clang",
"-DLLVM_ENABLE_RUNTIMES=compiler-rt",
"-DLLVM_TARGETS_TO_BUILD=AArch64",

Quartus on M1 (Linux) Notes

These are some old notes from when I got Quartus mostly working on M1. Take them with a grain of salt.

Setup details

  • 2021 14" MacBook Pro
  • macOS 13
  • Parallels 18.1.1 (Build 53328)
  • Ubuntu 20.04.5 LTS
From ab31655804c4e6c89b873e2a11b9d8f1b676a171 Mon Sep 17 00:00:00 2001
From: Jon Palmisciano <[email protected]>
Date: Mon, 2 Jan 2023 21:13:45 -0500
Subject: [PATCH] Add macOS build and fix scripts
---
jp-configure.sh | 9 +++++++++
jp-inject-path.sh | 15 +++++++++++++++
2 files changed, 24 insertions(+)
create mode 100755 jp-configure.sh
@jonpalmisc
jonpalmisc / ida_fusion.py
Created October 7, 2022 04:48
IDA Pro Fusion Theme Mini-plugin
import ida_idaapi
from PyQt5.QtWidgets import QApplication
class FusionThemePlugin(ida_idaapi.plugin_t):
flags = ida_idaapi.PLUGIN_FIX
wanted_name = "FusionTheme"
def init(self):
QApplication.setStyle("Fusion")
@jonpalmisc
jonpalmisc / groupme_backup.php
Created April 22, 2022 21:17
GroupMe chat archiver
<?php
/**
* Chat archiver for GroupMe.
*
* Depends on <https://github.com/jspaetzel/GroupMePHP>.
*
* Copyright (c) 2022 Jon Palmisciano
*
* Redistribution and use in source and binary forms, with or without modification,
@jonpalmisc
jonpalmisc / dataview.rs
Created October 3, 2021 06:31
Rust: DataView
/// DataView wraps a vector and provides a multi-cursor interface over it.
#[derive(Clone, Debug)]
pub struct DataView<'a, T> {
data: &'a Vec<T>,
pivot_pos: usize,
cursor_pos: usize,
}
#[allow(dead_code)]
impl<'a, T: std::cmp::PartialEq + std::clone::Clone> DataView<'a, T> {
@jonpalmisc
jonpalmisc / cmake-tricks.org
Created August 8, 2021 22:49
CMake Tricks

Formatting task

add_custom_target(clang_format COMMAND clang-format -i --style=WebKit ${SOURCES})
@jonpalmisc
jonpalmisc / base16-reflection.sh
Created April 16, 2021 19:49
Reflection Base16 Shell Theme
#!/bin/sh
# base16-shell (https://github.com/chriskempson/base16-shell)
# Base16 Shell template by Chris Kempson (http://chriskempson.com)
# Reflection scheme by Jon Palmisciano (@jonpalmisc)
color00="27/27/2A" # Base 00 - Black
color01="D8/B4/FE" # Base 08 - Red
color02="86/EF/AC" # Base 0B - Green
color03="F0/AB/FC" # Base 0A - Yellow
color04="7D/D3/FC" # Base 0D - Blue

Keybase proof

I hereby claim:

  • I am jonpalmisc on github.
  • I am jonpalmisc (https://keybase.io/jonpalmisc) on keybase.
  • I have a public key ASDSVX3Ub-zlJEpYP2taNZ8xz7PjKmGTHL0TXZKSLq7W0go

To claim this, I am signing this object: