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
# do not edit this file, it will be overwritten on update | |
# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path} | |
# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <[email protected]> | |
ACTION=="remove", GOTO="persistent_storage_end" | |
ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="persistent_storage_end" | |
SUBSYSTEM!="block", GOTO="persistent_storage_end" | |
KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|scm*|pmem*|nbd*", GOTO="persistent_storage_end" |
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
Shapez.io shapes to try out for automatic generation | |
{Cu------:--CrCgCb:--Cw----} | |
{Cu------:--CrCgCb:--Cw----:Cy--CcCp} | |
{Cu------:--Cr----:--Cw----:Cy--CcCp} | |
{--CyCpCc:Cu------:--CrCgCb:--Cw----} | |
{--CyCpCc:Cu------:--CrCgCb:CwCwCwCw} | |
{--Ru----:Rr--Cw--:--RgCw--:Rb--Cw--} | |
{Cu------:--CuCr--:CuCr----} | |
{Cu------:--CuCr--:CuCr----:Cg------} |
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 make_pi(R): | |
q, r, t, k, m, x = 1, 0, 1, 1, 3, 3 | |
for j in range(R): | |
if 4 * q + r - t < m * t: | |
yield m | |
q, r, t, k, m, x = 10*q, 10*(r-m*t), t, k, (10*(3*q+r))//t - 10*m, x | |
else: | |
q, r, t, k, m, x = q*k, (2*q+r)*x, t*x, k+1, (q*(7*k+2)+r*x)//(t*x), x+2 | |
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
{ | |
"action": "edited", | |
"changes": { | |
"body": { | |
"from": "{TIME: 2h}\n" | |
} | |
}, | |
"issue": { | |
"url": "https://api.github.com/repos/rmamba/sss3/issues/5", | |
"repository_url": "https://api.github.com/repos/rmamba/sss3", |
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
arm_freq=950 | |
arm_freq_min=100 | |
over_voltage=6 | |
core_freq=450 | |
core_freq_min=75 | |
gpu_freq=250 | |
gpu_freq_min=100 | |
sdram_freq=450 | |
sdram_freq_min=150 |
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
#(sudo) pip install netifaces | |
import netifaces as ni | |
import sys | |
if name == '__main__': | |
interfaces = ni.interfaces() | |
if len(sys.argv) < 2: | |
print('IP.py interface [json]') | |
print('Interfaces: %s' % interfaces) | |
quit() |
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
sudo add-apt-repository ppa:noobslab/themes | |
sudo apt-get update | |
sudo apt-get install windos-10-themes |
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
# Created by https://www.gitignore.io/api/linux,pycharm,python | |
### Linux ### | |
*~ | |
# temporary files which can be created if a process still has a handle open of a deleted file | |
.fuse_hidden* | |
# KDE directory preferences |
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
#Catalex YX5300 serial MP3 player | |
#http://www.ebay.co.uk/sch/i.html?_from=R40&_sacat=0&_nkw=YX5300&_sop=15 | |
import serial | |
s = serial.Serial(port='COM5', baudrate=9600) | |
#reset | |
s.write('\x7E\xFF\x06\x0C\x00\x00\x00\xEF') | |
#set volume | |
s.write('\x7E\xFF\x06\x06\x00\x00\x1E\xEF') | |
#play 1st file in loop |
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 PIL import Image | |
size = 16 | |
im = Image.open("cards-001.png") | |
w = 0 | |
h = 0 | |
while h + size < im.size[1]: | |
w = 0 |
NewerOlder