Skip to content

Instantly share code, notes, and snippets.

View swip3798's full-sized avatar

Christian Schweigel swip3798

  • SAP SE
  • Karlsruhe, Germany
View GitHub Profile
@swip3798
swip3798 / testscript.js
Created June 23, 2023 13:05
Testing if a github javascript file can be incorported in a browser
alert("Hello world, this is a test");
@swip3798
swip3798 / rofi-dep-install.sh
Last active February 5, 2022 13:17
Rofi (1.7.3) apt dependencies install for easy paste
# Those dependencies make it possible to build rofi 1.7.3 from source.
# Should hopefully work with future versions
# Tested on xubuntu 20.04
# If it doesn't work somewhere or with later versions, tell me, I will update
sudo apt install -y meson gcc cmake libglib2.0-dev-bin libglib2.0-dev libcairo-dev libpango1.0-dev libpangocairo-1.0-0 libxkbcommon-dev libgdk-pixbuf2.0-dev libxcb-util-dev libxcb-xkb-dev libxkbcommon-x11-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-randr0-dev libxcb-cursor-dev libxcb-xinerama0-dev libstartup-notification0-dev git flex ohcount cppcheck doxygen go-md2man
@swip3798
swip3798 / extract_chat_to_csv.py
Last active April 29, 2020 13:18
Python CLI application to extract exported telegram chats from json to csv format. Currently extracts only text messages.
import json
import pandas as pd
import argparse
import csv
def extract_to_csv(filename, chat_name):
with open("result.json", "r", encoding='utf8') as f:
data = json.loads(f.read())
chats = data["chats"]["list"]
for i in chats: