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
#Requires AutoHotkey v2.0 | |
#SingleInstance Force | |
#Include TextRender.ahk | |
#Include StdOutToVar.ahk | |
DetectHiddenWindows True | |
; Changing volume and muting requires https://www.nirsoft.net/utils/sound_volume_command_line.html | |
; Changing audio device requires https://github.com/frgnca/AudioDeviceCmdlets | |
; Using TextRender.ahk from https://github.com/iseahound/TextRender |
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
osmc@osmc:~$ ifconfig | |
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 | |
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 | |
ether b8:27:eb:5d:57:a4 txqueuelen 1000 (Ethernet) | |
RX packets 400632 bytes 519837935 (495.7 MiB) | |
RX errors 0 dropped 0 overruns 0 frame 0 | |
TX packets 25314 bytes 1575366 (1.5 MiB) | |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | |
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 |
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
// This component adds an alpha map to a mesh. | |
AFRAME.registerComponent('alpha-map', { | |
schema: { | |
src: {type: 'map'} | |
}, | |
init: function() { | |
this.el.sceneEl.systems.material.loadTexture(this.data.src, {src: this.data.src}, this.callback.bind(this)); | |
}, | |
callback: function(texture) { |
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
SELECT f.forum_id | |
FROM forums f | |
LEFT JOIN acl_groups ag ON ag.forum_id = f.forum_id | |
LEFT JOIN acl_options ao ON ag.auth_option_id = ao.auth_option_id | |
LEFT JOIN acl_roles_data ard ON ag.auth_role_id = ard.role_id | |
LEFT JOIN acl_options ao2 ON ard.auth_option_id = ao2.auth_option_id | |
WHERE ag.group_id = 2 AND ((ag.auth_option_id = 20 AND ag.auth_setting = 1) OR (ard.auth_option_id = 20 AND ard.auth_setting = 1)) |
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 Imgur direct link | |
// @namespace https://tadaima.cat/ | |
// @version 0.1 | |
// @description replaces default imgur link with direct link | |
// @author Nerestaren | |
// @match https://imgur.com/a/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package encoding; | |
import java.io.*; | |
/** |
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 | |
while true | |
do | |
ping -c 1 www.uib.es > /dev/null 2>&1 | |
echo -e `date '+%Y-%m-%d %H:%M:%S'` '\t' $? | |
# sleep 10 | |
done |
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
RewriteRule ^(.+)-t([0-9])-([0-9]).html viewtopic.php?t=$2&start=$3&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-t([0-9]).html viewtopic.php?t=$2&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-f([0-9])-([0-9]).html viewforum.php?f=$2&start=$3&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-f([0-9]).html viewforum.php?f=$2&%{QUERY_STRING} [L] |
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
{"asd": "asd"} |
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
{"name": "test"} |
NewerOlder