Skip to content

Instantly share code, notes, and snippets.

How to codesign openFrameworks app without Apple developer license?

When I send openFrameworks app to my frined, app does not find data folder. This is because of "translocation", known issue on openFrameworks forum. There are couple of solution to avoid translocation but here I tried different way by codesigning. But quesion is, is it possible to codesign wihout Apple Developer license? Looks like possible...? https://stackoverflow.com/questions/27474751/how-can-i-codesign-an-app-without-being-in-the-mac-developer-program/27474942

Create Certificate

  1. Open Keychain Access.
namespace ImGui
{
static bool SelectFile(const std::string &path, std::string &selected, const std::vector<std::string> &ext={}) {
bool ret = false;
if(ofFile(path).isDirectory()) {
if(TreeNode(ofFilePath::getBaseName(path).c_str())) {
ofDirectory dir;
if(!ext.empty()) {
dir.allowExt("");
for(auto &&e : ext) {
@madelinegannon
madelinegannon / jetson-nano_openFrameworks_setup_tutorial.md
Last active December 20, 2024 01:56
How to Set Up the NVIDIA Jetson Nano for openFrameworks
@rmitton
rmitton / toolbar.cpp
Created March 13, 2019 06:20
How to do a toolbar in Dear ImGui.
// How to do a toolbar in Dear ImGui.
const float toolbarSize = 50;
void DockSpaceUI()
{
ImGuiViewport* viewport = ImGui::GetMainViewport();
ImGui::SetNextWindowPos(viewport->Pos + ImVec2(0, toolbarSize));
ImGui::SetNextWindowSize(viewport->Size - ImVec2(0, toolbarSize));
ImGui::SetNextWindowViewport(viewport->ID);
@kylemcdonald
kylemcdonald / 3840x2160.png
Last active November 28, 2019 22:04
Schlieren Moire Pattern
3840x2160.png
@kylemcdonald
kylemcdonald / Camera2d.h
Created January 30, 2019 22:47
2D Zoomable Region for openFrameworks. Scroll to zoom. Left click and drag to translate.
class Camera2d : public ofCamera {
private:
ofVec2f mouseStart;
ofVec2f startPosition;
float zoom;
float maxZoom = .01;
float minZoom = 1;
float zoomSpeed = 1. / 500;
public:
void setup() {
@kylemcdonald
kylemcdonald / ZoomableRegion2D.h
Created January 30, 2019 22:27
2D Zoomable Region for openFrameworks. Right click and drag to zoom. Left click and drag to translate.
#pragma once
#include "ofMain.h"
class ZoomableRegion2D {
private:
float speed = 5;
float zoom = 1;
ofVec2f offset, startOffset, startDrag;
float startZoom;
@thales17
thales17 / msys2-SDL2-Setup.md
Last active March 31, 2025 04:16
msys2 sdl2 setup

Download and install msys2 64bit

Update msys2

  • Update msys2 64bit after install by running pacman -Syu if pacman needs to be updated you might have to close and reopen the terminal and run pacman -Syu again

Install build tools

  • pacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make

Compile Hello World

#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(246, 189, 208);
gui.setup();
gui.add(value.set("value", 2.5, 0.00001, 3));
gui.add(speed.set("speed", 0.045, 0.00001, 3));
@ivanskodje
ivanskodje / youtube-dl-download-youtube-music-playlists.md
Last active February 9, 2025 15:57
youtube-dl for downloading music from YouTube

Downloading Music Playlists from YouTube

Disclaimer

Use this knowledge at your own risk.

youtube-dl for Windows

youtube-dl will allow you to download entire youtube playlists and store them as MP3s. This will also allow you to download individual MP3s.