ENABLE UEFI and DISABLE Secure Boot
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
import re | |
from lxml import html | |
def printError(search): | |
print("Errorea gertatu da, ziur aski sartu duzun hitza ez da hiztegian agertzen") |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
import re | |
class api: | |
url = 'https://wiki.zital.eus/api.php' | |
# sep egindakoak ezberdintzeko erabiliko dugu, bestela bukleetan behin eta berriz sartuko da |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# usage: python3 fmod.py "/home/zital/Music" | |
import os, sys, datetime | |
def getResources(path): | |
resources = [] |
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
# /etc/fstab | |
#... | |
tmpfs /tmp tmpfs defaults,rw,nodev,nofail,noatime,nosuid,size=8G 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
// ==UserScript== | |
// @name YouTube Link Replacer | |
// @namespace Violentmonkey Scripts | |
// @match https://www.youtube.com/* | |
// @match https://m.youtube.com/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function() |
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 | |
//... | |
$wgScriptPath = ""; | |
$wgArticlePath = "/wiki/$1"; | |
$wgUsePathInfo = true; | |
//... |
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
# https://core.telegram.org/bots/api#markdownv2-style | |
def mdEscapeSpecialChars(msg): | |
special = r'_*[]()~`>#+-=|{}.!' | |
pattern = r'([' + re.escape(special) + '])' | |
replacer = lambda match: '\\' + match.group(1) | |
output = re.sub(pattern, replacer, msg) | |
return 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
echo "Testing msmtp from ${HOSTNAME} with mail command" | mail -s "hi there" zital@riseup.net |
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 | |
$file_name = 'latest.log'; | |
$f_mod = date('Y-m-d H:i:s', filemtime($file_name)); | |
$log_file = file_get_contents($file_name); | |
$lines = preg_split("/\n/", $log_file); | |
$log = ''; | |
foreach($lines as $line) | |
{ | |
// [22:41:42] [User Authenticator #7/INFO]: UUID of player arkkuso is aa1111a1-a1aa-1111-1a1a-aa11a1a111aa |