Skip to content

Instantly share code, notes, and snippets.

View omeryagmurlu's full-sized avatar

Ömer Erdinç Yağmurlu omeryagmurlu

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omeryagmurlu
omeryagmurlu / ilias.fish
Created November 11, 2022 16:28
KIT Ilias 7 downloader for lecture videos using aria2c
function ilias --description 'cli companion for ilias vid downloader userscript' --argument b64
base64 -d (echo "$b64" | psub) | aria2c --file-allocation=none -R --http-accept-gzip=true --auto-file-renaming=false -x16 -j30 --input-file -
end
local bailout = 15
turtle.refuel()
while(bailout > 0)
do
if (turtle.detect()) then
bailout = 15
turtle.dig()
else
bailout = bailout - 1
local bailout = 15
#comment
turtle.refuel()
while(bailout > 0)
do
if (turtle.detect()) then
bailout = 15
turtle.digUp()
turtle.dig()
turtle.digDown()
@omeryagmurlu
omeryagmurlu / inheritWhat.js
Created June 21, 2016 00:03
js - what are you inheriting?
// running only the constructor on 'this'
_2 = function() {
this._2_ = true;
}
_2.prototype.p_2_ = true;
_1 = function() {
_2.call(this);
this._1_ = true;
}
var noble = require('noble');
var tree = {};
var OLLIEUUID = "ef66143e996d";
console.log("trying to connect to the ollie with UUID: ", OLLIEUUID);
setTimeout(function(){
console.log(tree);
process.exit();