#/bin/bash
export ZENHOME=/opt/zenoss
cd /opt/zenoss/backups
rm -f *.tgz *.log
This file contains hidden or 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 | |
########################################################################## | |
# | |
# Copyright 2009 Zenoss, Inc. All Rights Reserved. | |
# | |
########################################################################## | |
__doc__ = """zenfixit | |
Apply common remedies for problems, and look for other issues. |
This file contains hidden or 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 | |
########################################################################## | |
# | |
# Copyright 2009 Zenoss, Inc. All Rights Reserved. | |
# | |
########################################################################## | |
__doc__ = """zenfixit | |
Apply common remedies for problems, and look for other issues. |
This file contains hidden or 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
from random import randint, choice | |
class Player: | |
def __init__(self, level, symbol): | |
self.level = level | |
self.symbol = symbol | |
This file contains hidden or 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
from string import digits | |
import random | |
class Mesh: | |
def __init__(self, state=" " * 9): | |
self.state = list(state) | |
self.turn = "O" if abs(state.count("X") - state.count("O")) == 1 else "X" | |
self.status = "Game not finished" | |
self.start() |
This file contains hidden or 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 random | |
class Board: | |
def __init__(self): | |
self.field = list(EMPTY_CELL * 9) | |
# self.cells = set(range(9)) | |
def show_field(self): | |
print('---------') |
This file contains hidden or 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
from random import randint | |
class Player: | |
def __init__(self, type, symbol): | |
self.type = type | |
self.symbol = symbol | |
class TicTacToe: |
This file contains hidden or 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 and rotation | |
$overFilename = 'Map_Plain.png'; // this is the file that goes over top | |
$underFilename = 'Map_Gat.png'; // the underneath image | |
// calculate the rotation | |
//$degrees = $_GET["angle"]; | |
if (date("G") < 5) | |
{$hr = (date("G") + 24);} | |
else {$hr = (date("G"));} |
This file contains hidden or 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://forum.doom9.org/showthread.php?t=105920&page=403 | |
Reading the .lwi file generated by LWLibavAudioSource (The resumed first lines): | |
https://forum.doom9.org/showthread.php?t=151159&page=230 |
This file contains hidden or 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
def power(x, y, p): | |
res = 1 | |
x = x % p | |
while y > 0: | |
if y & 1: | |
res = (res * x) % p | |
y = y//2 | |
x = (x * x) % p |
NewerOlder