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/env python3 | |
#Deleting of incoming and outdated SQL backups - Using with crontab | |
import os, re | |
d_list = sorted( #Filenames containing unix-timestamp, sorted() will set 'd_list' ordered, from old to new | |
re.findall(r'\w+\.sql\.gz', #searching for filenames | |
','.join(os.listdir('/home/kirika')))) #Listing all files in directory and putting them comma-seperated together | |
for i in range(len(d_list)-4): #Count of found files -4 | |
os.remove(d_list[i]) #the newest 4 files wont be deleted |
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 os | |
import sys | |
import base64 | |
import paramiko | |
import pyperclip | |
import configparser | |
from PIL import ImageGrab | |
from balloons import WindowsBalloonTip | |
config = configparser.ConfigParser() |
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/env python | |
'''Yama's A.T.S.P.-Bot for IRC-Tasks''' | |
import irc.bot | |
import irc.strings | |
import re | |
import logging | |
import configparser | |
from time import sleep | |
from multiprocessing import Process |
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
on ^*:text:* has logged in.*:#yamaria: { | |
/echo -tm #terraria $1- | |
/haltdef | |
} | |
on ^*:text:* left the server.*:#yamaria: { | |
/echo -tm #terraria $1- | |
/haltdef | |
} |
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 | |
/usr/local/bin/ping -c 1 192.168.1.2 | |
ec=$? | |
state=`cat /root/light2_state` | |
stat=`echo -e "licht 2 status" | nc 192.168.1.3 54321` | |
s=$((${#stat}-1)) | |
stat=${stat:$s:1} | |
echo "nc: $stat" | |
echo "file: $state" |
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
;--------------------------------------------------- - - - - | |
;| Yama Control Highlight © 14.09.2008 | |
;--------------------------------------------------- - - - - | |
;| Version: 3.5 | |
;| mIRC: v6.3 | |
;| Script-Planung: Yama | |
;| Script-Mod: Chialya | |
;--------------------------------------------------- - - - - | |
;| Beschreibung: Markiert die Zeile und spielt Ai.mp3 ab, | |
;| sobald die Nicks gerufen werden. |
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/python | |
import os | |
import sys | |
import socket | |
import time | |
from PIL import Image | |
from lglcd import LogitechLcd | |
from threading import Thread | |
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/env python | |
######################################################################################### | |
# # | |
'''A.T.S.P. Short-URL Controller''' # | |
# # | |
######################################################################################### | |
import cymysql | |
from flask import Flask, redirect | |
app = Flask(__name__) |
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
function OnEvent(event, arg) | |
if (event == "PROFILE_ACTIVATED") then | |
color() | |
end | |
end | |
function color() | |
r1 = 0 | |
g1 = 0 | |
b1 = 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
#!/bin/bash | |
REPOFILE="glusterfs-3.7.list" | |
SSHSERVER="ssh.server" | |
SSHUSER="username" | |
# Kopiere das Repo, damit es verwendet werden kann | |
cp $REPOFILE /etc/apt/sources.list.d/ | |
if [[ $? -eq 0 ]]; then | |
# SSH-Tunnel über den user "tunnel" zum Login-Server, welcher im Hintergrund bleibt, |
OlderNewer