Skip to content

Instantly share code, notes, and snippets.

View Plasmoxy's full-sized avatar
🌃
hopefully sleeping

Sebastián Petrík Plasmoxy

🌃
hopefully sleeping
View GitHub Profile
@Plasmoxy
Plasmoxy / HowToSetupJenkinsCIWithGitLab.md
Last active December 16, 2023 14:44
How to setup Continous Integration for GitLab with Jenkins (works for private projects)

How to setup Continous Integration for GitLab with Jenkins

Hi, I'd like to share with you how I got my Jenkins CI set up for my private GitLab projects. This is more like a sheet of notes of mine, but I hope it'll help someone as I haven't found any good tutorial for Jenkins+Gitlab on the web yet :D

Here we go:

  • generate ssh keys on own server -> PUBLIC and PRIVATE ( no passphrase )
  • go to GitLab profile settings -> SSH keys -> add PUBLIC ssh key to GitLab = this will allow your Jenkins server to access your GitLab
  • also create full access GitLab API access token for Jenkins on your gitlab profile settings and keep it

  • install Git + GitLab plugin on Jenkins ( make sure they are enabled (ticked) in Jenkins !!!)
@Plasmoxy
Plasmoxy / GLDebugMessageCallback.cc
Last active September 6, 2024 16:17
C++ OpenGL Error handling callback function (glDebugMessageCallback) with auto debugger break in Visual Studio (adaptable to gcc/clang)
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute
// this software, either in source code form or as a compiled binary, for any
// purpose, commercial or non-commercial, and by any means.
//
// In jurisdictions that recognize copyright laws, the author or authors of this
// software dedicate any and all copyright interest in the software to the
// public domain. We make this dedication for the benefit of the public at large
// and to the detriment of our heirs and successors. We intend this dedication
// ==UserScript==
// @name DARK PDF
// @namespace http://tampermonkey.net/
// @version 0.1
// @description dark theme for chrome pdf using L butotn on top
// @author Plasmoxy
// @include file:///*
// @icon https://www.google.com/s2/favicons?domain=undefined.
// @grant none
// ==/UserScript==
@Plasmoxy
Plasmoxy / polymorph.c
Last active May 19, 2021 07:26
polymorphism simulation in c
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
echo ""
echo "Linux root 12.6.0-8-approval-free \#1 SMP Zigo OS 6.9 (2021-08-03) x69_69"
echo ""
echo "....::-===*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%***=[38;5;59
@Plasmoxy
Plasmoxy / tmonkey_seb_y2matemod.js
Created November 8, 2021 09:52
Tampermonkey y2mate seb mod
// ==UserScript==
// @name Y2mate Converter Button Sebo
// @namespace https://y2mate.com/
// @version 1.5
// @date 2019-07-23
// @author A Koi
// @description Y2mate Downloader: Download Video and Audio for free
// @homepage https://y2mate.com/
// @icon https://y2mate.com/themes/images/logo.png
// @icon64 https://y2mate.com/themes/images/logo.png
# Vidmod by Plasmoxy
# - clip editor for ffmpeg
$cmd = $args[0]
$fname = $args[1]
# cut with reencoding
# vidmod cut source.mp4 0:00 0:04
if ($cmd -eq "cut") {
$from = $args[2]
@Plasmoxy
Plasmoxy / dijkstra.clj
Created March 21, 2022 15:01 — forked from loganlinn/dijkstra.clj
Dijkstra's Algorithm in Clojure
(def ^:private inf (Long/MAX_VALUE))
(defn neighbors
([g n] (get g n {}))
([g n uv] (select-keys (neighbors g n) uv)))
(defn update-costs
[g costs curr unvisited]
(let [curr-cost (costs curr)]
(reduce
@Plasmoxy
Plasmoxy / vidmod.sh
Last active February 1, 2023 21:07
VidMod 4 shell
#!/bin/sh
# VidMod 4 shell by Plasmoxy
# - clip editor for ffmpeg for shell but can also like extract subtitile and cool stuff
fname=$2
case $1 in
# cut with reencoding
# vidmod cut source.mp4 0:00 0:04
// Task 6 - Generate a Bezier surface of variable density with UV coordinates.
// - Confine the Bezier data and associated methods into a reusable class.
// - Define a modelMatrix that uses position, rotation and scale.
// - Render the generated mesh with texturing applied.
// - Animate rotation.
#include <iostream>
#include <vector>
#define GLM_ENABLE_EXPERIMENTAL