Skip to content

Instantly share code, notes, and snippets.

View MegaBedder's full-sized avatar

Bedder MegaBedder

  • Honduras
View GitHub Profile
anonymous
anonymous / cron.php
Created January 4, 2016 10:43
Add dlc files to the DSM download station trough the command line
<?php
/**
* This script reads dlc files from a folder and adds the links to the DSM
* download station. Most code is copied from https://github.com/downtuned42/ds-dec.
*
* Usage:
* - Put the cron.php file in to the folder /volume1/php/cron.php on your DSM Nas
* - Adapt the parameters on the beginning of the file
* - Copy a dlc file to /volume1/shares/Downloads/ on your NAS
* - Run it on your SSH console like php /volume1/php/cron.php
<?php
/*********************************************************************\
| (c)2011-2015 Synoboost http://www.synoboost.com |
|---------------------------------------------------------------------|
| 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 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
<?php
$JSONOutput = array();
$TotalResults = 0;
$loginUrl = 'https://bezze.me/login.php';
// init curl
$ch = curl_init();
@adelevie
adelevie / web.lua
Created December 11, 2012 06:11
Using webscript.io's API to build a Sinatra-like web framework
[[
This is a proof of concept that you can run locally to upload scripts to webscript.io. It provides a simple Sinatra-like API (in Lua) for defining URL routes and their corresponding actions.
To run on your own, you'll need your own webscript account (and api key) and Lua installation.
Just copy the script locally, fill in your own values in the `app` table below, cd into the directory and run `lua yourfilename.lua`.
Then log into webscript.io to make sure everything is there!
This is clearly highly experimental, probably broken in many ways, and only supports GET requests. Use at your own risk. Also, I'm totally new to Lua, so feel free to point out any egregious mistakes.
@meteorsnows
meteorsnows / noVNC
Last active August 26, 2020 04:11
Ubuntu noVNC
https://github.com/kanaka/noVNC/issues/535
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
http://www.penguintutor.com/raspberrypi/tightvnc
https://news.ycombinator.com/item?id=10289673
https://blog.docker.com/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/
https://github.com/ConSol/docker-headless-vnc-container
http://cects.com/ssh-local-and-remote-port-forwarding-with-vnc/
https://security.web.cern.ch/security/recommendations/en/ssh_tunneling_vnc.shtml
http://crl.ucsd.edu/handbook/vnc/
@jpillora
jpillora / search-example.json
Last active February 3, 2022 03:08
Torrent cloud search provider specification
{
"mininova": {
"name": "Mininova",
"type": "screen-scraper",
"list": {
"url": "http://www.mininova.org/search/{query}/seeds/{page}",
"items": ".maintable > tr",
"item": {
"name":"td:nth-child(3) > a:nth-child(2)",
"url":"td:nth-child(3) > a:nth-child(2)@href",
@Egor-Skriptunoff
Egor-Skriptunoff / how_to_build_luajit_for_windows.md
Last active July 26, 2022 22:11
How to build LuaJIT for Windows

How to build 64-bit LuaJIT 2.1 binaries for Windows

  1. Download the latest LuaJIT sources

    • Create temporary folder for LuaJIT sources.
      I assume you would use C:\Temp\ folder.

    • Download and install Portable "Git for Windows"

@esparta
esparta / 01-no-silver-bullet-es.md
Created May 14, 2014 17:32
No hay balas de plata

No hay balas de plata: Lo esencial y lo accidental en la Ingeniería del Software

by Frederick P. Brooks, Jr.

De todos los monstruos que pueblan nuestras pesadillas, ninguno es tan terrorífico como el hombre lobo, porque pasa repentinamente de lo familiar al horror. Por eso, todos buscamos balas de plata que puedan acabar con ellos magicamente.

El familiar proyecto de software, al menos tal como lo ve un gestor no técnico, tiene algo de ese caracter: suele ser inocente y sencillo, pero es capaz de convertirse en un monstruo de plazos incumplidos, objetivos fallados y productos defectuosos. Por eso escuchamos lamentos clamando por una bala de plata -- algo que haga que los costes del software caigan tan rapidamente como lo han hecho los del hardware.

Pero no se ve en ningún lugar una bala de plata. No hay ningún desarrollo, ni en tecnología ni en técnicas de gestión, que por si sólo prometa ni siquiera una mejora en un orden de magnigud en productividad, en fiabilidad, en simplicidad. En este artículo,

@Egor-Skriptunoff
Egor-Skriptunoff / how_to_install_lua_and_luajit_on_windows.md
Last active March 2, 2024 11:05
How to install Lua and LuaJIT on Windows

How to install Lua and LuaJIT on 64-bit Windows

  1. Download the latest Lua and LuaJIT sources

    • Create temporary folder for Lua sources.
      I assume you would use C:\Temp\ folder.

    • Visit Lua FTP webpage and download the latest Lua source archive, currently it is lua-5.4.3.tar.gz

  • Use suitable software (7-Zip, WinRar, WinZip or TotalCommander) to unpack the archive.
@xeoncross
xeoncross / Requests.php
Created April 11, 2012 21:44
cURL asynchronous requests using curl_multi and callbacks
<?php
/**
* Make asynchronous requests to different resources as fast as possible and process the results as they are ready.
*/
class Requests
{
public $handle;
public function __construct()
{