Skip to content

Instantly share code, notes, and snippets.

View psyomn's full-sized avatar
♥️
HARD WORK AND DISCIPLINE

psyomn

♥️
HARD WORK AND DISCIPLINE
View GitHub Profile
@psyomn
psyomn / parse.rb
Created February 19, 2024 01:45
Parse output from tmdb.org for ratings.
require 'csv'
require 'fileutils'
# you can extract your ratings on tmdb by clicking the three dots on the
# ratings section, and click the csv export option. You should be able to use
# this script to extract more information afterwards.
#
# format of tmdb CSV
# ["TMDb ID", "IMDb ID", "Type", "Name", "Release Date", "Season Number", "Episode Number", "Rating", "Your Rating", "Date Rated"]
@psyomn
psyomn / cmus-cache-extract.c
Created July 31, 2023 03:52
cmus music player cache extractor/converter
/*
** cce converts a cmus cache to another format for export.
**
** Copyright (C) 2023 Simon Symeonidis
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
@psyomn
psyomn / README.md
Created July 7, 2023 00:13
Backup Opera Sessions

backup opera sessions

Decided to leave this for anyone else that may be having issues.

I switched from firefox to opera recently.

I gave Opera a shot after something like 10 years to see how the browser is faring. I'm enjoying the workflow. I can have workspaces, and combine them with tab islands, which makes organization very possible.

However, it seems Opera likes to crash often (I've observed this on my computer running Linux, as well as on Windows),

Keybase proof

I hereby claim:

  • I am psyomn on github.
  • I am psyomn (https://keybase.io/psyomn) on keybase.
  • I have a public key ASAsa6QjtVpZm2t1Gi-z0mPxgImyvQ0KUukXJpnymJhLmgo

To claim this, I am signing this object:

@psyomn
psyomn / CMakeLists.txt
Last active February 8, 2021 21:23
usage of win32api along with linkage instructions in the cmake
cmake_minimum_required (VERSION 3.8)
# Add source to this project's executable.
add_executable (cc_examples "cc_examples.cpp" "cc_examples.h")
target_link_libraries(cc_examples PowrProf.dll)
@psyomn
psyomn / simple_server.go
Created July 24, 2018 17:50
if you need to do quick test thingies
package main
import (
"encoding/json"
"net/http"
"github.com/gorilla/mux"
)
type Sample struct {
@psyomn
psyomn / rover_listener.py
Created January 12, 2016 02:58
old rover listener
import sys
import traceback
import threading
from multiprocessing.connection import Listener
from colorama import Fore
from roboticsnet.commands.command_factory import CommandFactory
from roboticsnet.sanitizer import sanitize
from roboticsnet.session import Session
@psyomn
psyomn / shape_example.cxx
Last active November 14, 2015 00:35
Simple builder example in CXX
/* Simon psyomn Symeonidis 2015
* g++ -std=c++11 example.cpp
*/
#include <iostream>
#include <string>
#include <cstddef>
using std::string;
using std::cout;
using std::endl;
@psyomn
psyomn / enumtree.rs
Created November 1, 2015 22:21
Recursive trees in Rust!
//! Recursive enumerable types! Freaking cool!
#[derive(Debug)]
pub enum BinTree<T> {
Value(T,
Option<Box<BinTree<T>>>,
Option<Box<BinTree<T>>>),
}
fn main() -> () {