View wchown.bat
takeown /f "c:\files" /r | |
:: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-acl?view=powershell-7.1 | |
:: | |
:: get permissions from a sample file | |
$NewAcl = Get-Acl File0.txt | |
:: apply those permissions to other files | |
Get-ChildItem -Path "C:\files" -Recurse -Include "*.txt" -Force | Set-Acl -AclObject $NewAcl |
View bashprompt.sh
#!/bin/bash | |
# intially generated from http://bashrcgenerator.com/ with additional modificationas | |
# | |
# creates prompt like this with username and directory path on one line, then most recent error code number and $ on next line: | |
# gojimmypi@ubuntu : ~ | |
# 0 $ | |
# | |
# prior version, no GitHub branch | |
# export PS1="\[\033[38;5;2m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\] : \[$(tput sgr0)\]\[\033[38;5;11m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\$? \\$ \[$(tput sgr0)\]" |
View cmake-3.13.3-install.sh
#!/bin/bash | |
# see https://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu | |
# see https://cmake.org/download/ | |
# sudo apt-get remove cmake | |
cd ~/workspace/ | |
sudo apt-get install build-essential |
View getLicenceKey.bat
wmic path SoftwareLicensingService get OA3xOriginalProductKey |
View GitHashCheck.sh
#!/bin/bash | |
#"***************************************************************************************************" | |
# CheckForGitFileChange() bash function. Compare hash of local file to one on GitHub | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2020 gojimmypi | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
View ULX3S_WSL_Toolchain.sh
#!/bin/bash | |
WORKSPACE=~/workspace # put your workspace parent directory here. avoid spaces in path | |
export ULX3S_COM=/dev/ttyS8 # put your device name here | |
# This WSL Ubuntu bash script will update the system, fetch all dependencies, and git clone | |
# all of the libraries for running the @DoctorWkt Blinky for the ecp5 ULX3S Board | |
# including icestorm, nextpnr (or arachne-pnr), yosys | |
# | |
# | |
# A WSL-specific Makefile will also be fetched. (TODO) |
View ForcedAscii.cs
//*********************************************************************************************************************************** | |
// ForcedASCII we'll never allow Unicode that does not match to ASCII | |
// see https://www.cl.cam.ac.uk/~mgk25/ucs/examples/quickbrown.txt for sample text to test | |
//*********************************************************************************************************************************** | |
private string ForcedASCII(string fromString) | |
{ | |
string res = ""; | |
try | |
{ | |
Byte[] bytes; |
View TinyFPGA_WSL_Toolchain.sh
#!/bin/bash | |
WORKSPACE=~/workspace | |
export TinyFPGA_COM=/dev/ttyS8 | |
sudo ls # pause if copy/paste password prompt | |
# This WSL Ubuntu bash script will update the system, fetch all dependencies, and git clone | |
# all of the libraries for creating a picosoc RISC-V on the TinyFPGA with riscv-gnu-toolchain-rv32i toolchain, | |
# including icestorm, nextpnr (or arachne-pnr), yosys | |
# |
View Makefile
PROJ = ulx3s_adda | |
sim: | |
rm -f $(PROJ).vcd | |
iverilog -o $(PROJ).vvp $(PROJ).v $(PROJ)_tb.v | |
vvp $(PROJ).vvp | |
export DISPLAY=:0 | |
## if we are running in WSL, we need a bit of help for GUI XWindows | |
## and sometimes the WSL username is not the same as the Windows username & we need the *windows* user path. | |
## this is the Windows %USER% environment variable when called from makefile: $(shell cmd.exe /c "echo $$USER") |
View myfile.asc
This file has been truncated, but you can view the full file.
.comment arachne-pnr 0.1+325+0 (git sha1 840bdfd, g++ 7.3.0-27ubuntu1~18.04 -O2) | |
.device 8k | |
.io_tile 1 0 | |
000000000000000000 | |
000000000000000000 | |
000000000000000000 | |
000000000000000000 | |
000000000000000000 | |
000000000000000000 |
NewerOlder