- download latest alps source code from here
- copy the psmouse-alps-1.x folder to your /usr/src directory
- (as root)
dkms add psmouse/alps-1.x
- (as root)
dkms autoinstall
- (as root)
rmmod psmouse && modprobe psmouse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import struct | |
import socket | |
import hashlib | |
import sys | |
from select import select | |
import re | |
import logging | |
from threading import Thread | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('VIEW_FOLDER', dirname(__FILE__) . '/views'); | |
function renderView($viewName, $vars){ | |
extract($vars); | |
ob_start(); | |
require VIEW_FOLDER . "/$viewName.php"; | |
$output = ob_get_contents(); | |
ob_end_clean(); | |
echo $output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sharedfolder /mount/point vboxsf uid=<user>,gid=<group> 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert multipage.tiff -density 300x300 -compress jpeg multipage.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', true); | |
require '../vendor/autoload.php'; | |
use Symfony\Component\Translation\Loader\YamlFileLoader, | |
Symfony\Component\Translation\Loader\XliffFileLoader, | |
Symfony\Component\Translation\MessageCatalogue, | |
Symfony\Component\Translation\Dumper\PoFileDumper; | |
use Symfony\Component\Yaml\Yaml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', true); | |
require '../vendor/autoload.php'; | |
use Symfony\Component\Translation\Loader\PoFileLoader, | |
Symfony\Component\Translation\MessageCatalogue, | |
Symfony\Component\Translation\Dumper\YamlFileDumper, | |
Symfony\Component\Translation\Dumper\XliffFileDumper; | |
use Symfony\Component\Yaml\Yaml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -type f -print0 | xargs -0 chmod 644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pdb | |
""" | |
Algoritmul Bellman-Ford | |
Explicatii: | |
iter(graph) returneaza toate nodurile | |
iter(graph[u]) returneaza nodul vecin lui u | |
graph[u][v] returneaza ponderea muchiei (u, v) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 990Movie | |
// @namespace redpoppy | |
// @description Corrects 990 movies to bypass shortening | |
// @include http://990.ro/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var links = document.querySelector('a[href*="mastervid.com"]'); | |
if (typeof links[0] === 'undefined') { |
OlderNewer