Skip to content

Instantly share code, notes, and snippets.

View Botffy's full-sized avatar

Ármin Scipiades Botffy

View GitHub Profile
@Botffy
Botffy / make_video.sh
Created August 15, 2020 11:21
Convert all mp3 files in the directory into mp4 videos with a still image
for f in *.mp3; do
ffmpeg -loop 1 -i still.png -i "$f" -shortest "${f%.mp3}.mp4"
done
@Botffy
Botffy / dbms_scheduler.sql
Created November 7, 2016 13:06
DBMS_Scheduler example
job_name := dbms_scheduler.generate_job_name(prefix => 'Bilagr_');
dbms_scheduler.create_job (
job_name => job_name,
job_type => 'STORED_PROCEDURE',
job_action => 'Bilagr.Run',
start_date => Sysdate,
enabled => true,
auto_drop => true,
number_of_arguments => 2
var _ = require('lodash');
var through = require('through2');
var toposort = require('toposort');
var ngDeps = require('ng-dependencies');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
module.exports = function() {
var files = {};
@Botffy
Botffy / fun_diamond.cpp
Created November 16, 2012 08:48
dreaded diamond with a twist: granddad has no members, but has a method.
#include <iostream>
struct granddad {
void helloes() {
std::cout << "helloes" << std::endl;
}
};
struct dad : public granddad {
int a;
@Botffy
Botffy / jfreeswt.java
Created November 15, 2012 14:27
compile with jcommon-1.0.16, else the chart text doesn't show
package frech;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.custom.*;
@Botffy
Botffy / NiochatServer.java
Created October 9, 2012 18:45
simple Java NIO chat server
package niochat;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;
import java.io.IOException;
import java.util.*;
public class NiochatServer implements Runnable {
private final int port;