Skip to content

Instantly share code, notes, and snippets.

Avatar

Izzulmakin imakin

View GitHub Profile
@imakin
imakin / nvidia-oc.bash
Created Jun 4, 2021
how to overclock NVIDIA GPU on linux from command line
View nvidia-oc.bash
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
https://www.youtube.com/results?search_query=abu+usamah+kartun
https://www.youtube.com/watch?v=MGPeIG7tIvI
View remote.py
#!/home/kareem/anaconda3/bin/python3.6
"""
requires:
socket
pynput
"""
import os
import logging
import socket
from pynput import keyboard
@imakin
imakin / devices.py
Last active Feb 3, 2017
JKFF simulator
View devices.py
#!python3
class Device(object):
def clock(self):
raise NotImplemented("unimplemented clock method")
class Terminal(Device):
"""
wired object for any devices
Members:
View temp.py
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
node0 = Node()
node1 = Node()
node2 = Node()
node3 = Node()
node4 = Node()
node5 = Node()
node6 = Node()
node7 = Node()
node8 = Node()
node9 = Node()
@imakin
imakin / BrainBrain.b
Last active Dec 7, 2016
testing if possible to make brainfuck interpreter written in brainfuck itself
View BrainBrain.b
[
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
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
"""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")