Skip to content

Instantly share code, notes, and snippets.

View TomiToivio's full-sized avatar
👽
LaclauGPT!

Tomi Toivio TomiToivio

👽
LaclauGPT!
View GitHub Profile
@TomiToivio
TomiToivio / laclaugpt_multimodal_summary_sample_result.md
Created September 19, 2025 08:27
LaclauGPT Multimodal Summary Sample Result

Comprehensive Political Analysis

1. Narrative Construction

The narrative construction in this video is centered around a person's face, emphasizing their importance and creating an intimate atmosphere. The sequence of events appears to be focused on addressing a crowd or speaking directly to the camera.

  • Key events:
    • A close-up shot of a person's face
    • Emphasis on individual importance
  • Blurred background with outdoor setting
@TomiToivio
TomiToivio / laclaugpt_frame_analysis_sample_result.md
Created September 19, 2025 08:24
LaclauGPT Multimodal Frame Analysis Sample Result

Frame 1 at 0 seconds:

Framing

  • The video features a close-up shot of a woman with blonde hair and a black jacket, emphasizing her importance in the context.
  • A split-screen layout is not present; however, there are dual images within the frame, including a red background with a yellow bird emblem on the right side.

Visual Elements

  • The scene is set indoors, likely in an office or studio environment, given the presence of a desk and chair behind the woman.
  • The background features a red wall with a yellow bird emblem, which may symbolize European unity or national pride.
@TomiToivio
TomiToivio / laclaugpt_multimodal_frame_prompt.md
Last active September 19, 2025 08:26
LaclauGPT Multimodal Frame Prompt

System Prompt

You are a political scientist analyzing a single frame from a TikTok video concerning the 2024 European Parliament elections.

**Provided Data**:
- **Video Frame**: One frame from the TikTok video.

### **Analysis Categories**
For each category, provide a thorough, objective analysis, focusing on details that may reveal framing techniques, contextual cues, and visual emphasis in the video content.
@TomiToivio
TomiToivio / laclaugpt_multimodal_summary_prompt.md
Last active September 19, 2025 08:26
LaclauGPT Multimodal Summary Prompt

System Prompt:

You are assisting a political scientist in analyzing a TikTok video related to the **2024 European Parliament elections**. 
You are provided a **Whisper transcript**, **TikTok metadata**, **multimodal Llama frame analysis results for 1-6 frames** and **easyOCR results for each frame** to facilitate the analysis.
Your role is to provide a structured and comprehensive political analysis using the multimodal frame analysis results, TikTok metadata, and Whisper transcript provided by the user.

**Context**:
The political scientist has supplied multimodal data, including multimodal video frame analysis, TikTok metadata, and Whisper transcript.
Use this data to conduct a detailed political analysis of the TikTok video.
@TomiToivio
TomiToivio / laclaugpt_populism_sample_result.md
Last active September 19, 2025 08:21
LaclauGPT Formula Of Populism Sample Result

Populist Analysis of the Video Using Laclau’s Theory and Palonen’s Formula

Us (the People)

The video constructs a collective subject, 'Us,' represented by ordinary German citizens who are concerned about the impact of the Ukraine war on Germany and Europe. The demands and values forming this side include:

  • Peace and Stability: Emphasized through references to the peace obligation in the German Basic Law.
  • National Sovereignty: Implied through criticism of EU policies that affect Germany.
  • Transparency and Accountability: Highlighted as expectations from politicians.
@TomiToivio
TomiToivio / laclaugpt_formula_of_populism_prompt.md
Last active September 19, 2025 08:22
LaclauGPT Formula Of Populism Prompt

System Prompt

Role: Political Scientist Analyzing Populism in Political Videos

You are a political scientist working for the University of Helsinki. You are given a previously generated structured political analysis of a TikTok or Instagram video. The videos are related to the 2024 European Parliament elections. Then you will need to re-analyze the previously generated analysis through the lens of Ernesto Laclau’s theory of populism and Emilia Palonen’s formula of populism. The output must have three parts: (1) a list of political themes, (2) a detailed textual analysis of the formula of populism, and (3) a simplified machine readable JSON version of the formula of populism. Answer following the specified JSON schema. The JSON schema is provided below.


Theoretical Background For Analysis of European Parliament Elections 2024

#
# WARNING: heavily refactored in 0.9.0 release. Please review and
# customize settings for your setup.
#
# Changes: in most of the cases you should not modify this
# file, but provide customizations in jail.local file,
# or separate .conf files under jail.d/ directory, e.g.:
#
# HOW TO ACTIVATE JAILS:
#
@TomiToivio
TomiToivio / wordpress.sh
Created June 14, 2019 18:30
WordPress installation commands
# Install some PHP libraries.
sudo apt-get install php-curl, php-zip, php-mbstring, php-xml, php-soap
# Create database for WordPress.
mysql -u root -p
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE wordpress;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost';
# To use mod rewrite add this to your virtualhost file.
@TomiToivio
TomiToivio / wp-permissions-script
Created April 6, 2019 22:31 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # <-- wordpress owner
WP_GROUP=changeme # <-- wordpress group
WP_ROOT=/home/changeme # <-- wordpress root directory

Keybase proof

I hereby claim:

  • I am tomitoivio on github.
  • I am tomi (https://keybase.io/tomi) on keybase.
  • I have a public key ASBqguDRmCCyHcVHLe3HStKzVodCGvZHNNF1sauwa8iPEAo

To claim this, I am signing this object: