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
#!/bin/sh | |
rm -rf .list.txt | |
for file in *; do | |
filename=$(basename -- "$file") | |
basename="${filename%.*}" | |
extension="${filename##*.}" | |
echo "file '$file'" >> .list.txt; | |
done |
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 python3 | |
import libtorrent as lt | |
import time | |
import json | |
import os | |
def write_json(path, contents): | |
with open(path, 'w', encoding='utf-8') as f: | |
json.dump(contents, f, default=str, indent=4, sort_keys=True) |
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 | |
/* | |
* Your settings here | |
*/ | |
define('DB_DSN', 'mysql:host=localhost;dbname=mydb;charset=UTF8'); | |
define('DB_USER', 'myuser'); | |
define('DB_PASS', 'mypass'); | |
define('DB_TABLE', 'mytable'); | |
define('DB_OPTIONS', [ |
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
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo" |
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
#!/bin/sh | |
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm \ | |
-cpu host \ | |
-m 4G \ | |
-drive id=disk,file=/home/archie/Documents/Images/win10x64.img,if=none \ | |
-drive file=/home/archie/Downloads/Win10_1709_English_x64.iso,index=3,media=cdrom \ | |
-drive file=/home/archie/Downloads/drivers.iso,index=4,media=cdrom \ | |
-device intel-iommu \ | |
-device ich9-ahci,id=ahci \ | |
-device ide-drive,drive=disk,bus=ahci.0 \ |
NewerOlder