View nvidia-oc.bash
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
nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[4]=1500 | |
nvidia-settings -a [gpu:1]/GPUMemoryTransferRateOffset[4]=2000 | |
nvidia-settings -q all | grep CUDA | grep gpu | |
# Attribute 'CUDACores' (mkn2020:0[gpu:0]): 1920. | |
# Attribute 'CUDACores' (mkn2020:0[gpu:1]): 4864. | |
nvidia-smi -L | |
#GPU 0: NVIDIA GeForce RTX 3060 Ti (UUID: GPU-1e08c8ef-81e2-8759-0754-b4c30de0da7a) |
View mykeyboard
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://www.youtube.com/results?search_query=abu+usamah+kartun | |
https://www.youtube.com/watch?v=MGPeIG7tIvI |
View remote.py
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
#!/home/kareem/anaconda3/bin/python3.6 | |
""" | |
requires: | |
socket | |
pynput | |
""" | |
import os | |
import logging | |
import socket | |
from pynput import keyboard |
View DATA
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
test_start |
View devices.py
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
#!python3 | |
class Device(object): | |
def clock(self): | |
raise NotImplemented("unimplemented clock method") | |
class Terminal(Device): | |
""" | |
wired object for any devices | |
Members: |
View temp.py
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
def next_move(posx, posy, dimx, dimy, board): | |
if board[posy][posx]=="d": | |
print("CLEAN") | |
return | |
shortest_path = 5000 | |
shortest_coord = (-1,-1) | |
for y in range(len(board)): | |
for x in range(len(board[y])): | |
if board[y][x]=="d": |
View DuckEvent 1.1.py
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
node0 = Node() | |
node1 = Node() | |
node2 = Node() | |
node3 = Node() | |
node4 = Node() | |
node5 = Node() | |
node6 = Node() | |
node7 = Node() | |
node8 = Node() | |
node9 = Node() |
View BrainBrain.b
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
[ | |
brainfuck interpreter written in brainfuck | |
flag of code instruction: | |
p if 62, ascii for POINTER_INC command ">" | |
p if 60, ascii for POINTER_DEC command "<" | |
p5 if 43, ascii for INC command "+" | |
p3 if 45, ascii for DEC command "-" | |
p2 if 46, ascii for OUTPUT command "." | |
p4 if 44, ascii for INPUT command "," | |
p if 91, ascii for loop begin command "[" ][ |
View mapping_makin.py
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
class Node(object): | |
def __init__(self, ID): | |
self.next_nodes = [] | |
self.prev_node = None | |
self.explored = False | |
self.ID = ID | |
pass |
View rescaler_src_py.py
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
"""warp all coordinate parameters with function c(x)""" | |
import os | |
import re | |
try: | |
filename = argv[1] | |
except NameError: | |
filename = "grinding.py" | |
f = open(filename) | |
datas = f.read().split("\n") |
NewerOlder