git clone --recursive https://github.com/sipeed/kflash_gui.git
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
/* | |
* Returning the "data" part of a http response | |
* with Node.js using "Promise" | |
* | |
* Based on example code in the Node.js Documentation: | |
* https://nodejs.org/api/http.html#httpgetoptions-callback | |
*/ | |
const http = require('node:http'); |
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
# Seen first here: https://gist.github.com/nhasbun/71918796044b7ba89d6662133495f754 | |
# | |
# | |
# Working with Altera Quartus II (Q2) and do proper versioning is not that easy | |
# but if you follow some rules it can be accomplished. :) | |
# This file should be placed into the main directory where the .qpf file is | |
# found. Generally Q2 throws all entities and so on in the main directory, but | |
# you can place all stuff also in separate folders. This approach is followed | |
# here. So when you create a new design create one or more folders where your | |
# entities will be located and put a .gitignore in there that overrides the |
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
# send suricata logs to ntopng with syslog-ng | |
# | |
# this is just one part of the puzzle... | |
# - suricata needs to be configured (extra eve log) in one yaml.conf | |
# - ntop in a few places, plus knowing where to look to see that it works... | |
# - once configured: | |
# - select the syslog interface. | |
# - click flows | |
# - select status drop-down and click external alert to see what suricata is reporting |
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
#include <stdio.h> | |
#include <math.h> | |
/*********** | |
* Calculate and print note names, octaves and frequency for MIDI notes | |
* | |
* gcc -lm -o midi_note_list midi_note_list.c | |
* | |
* UNLICENCE (see end) | |
* |
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
; src/Marlin_main.cpp has a list in the comments... | |
PRUSA FAN ; returns fan speeds... | |
M861 ! ; restore pinda table from Eprom | |
M861 ? ; query pinda table | |
M860 S35 ; wait until PINDA is 35C ( dependings on if temp is increasing or decreasing) | |
; should check if R is supported |
(loop for key being each hash-key of *a-hash-table*
using (hash-value value)
collect (list key value))
via https://groups.google.com/forum/#!topic/comp.lang.lisp/SCliOgrcC4M
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
# Check USB... this worked well for my Lenovo Twist, I think... | |
# | |
https://askubuntu.com/questions/144932/why-does-my-laptop-resume-immediately-after-suspend | |
Basically. | |
# find USB PCI interfaces | |
lspci |grep -i usb |
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
du -sch .[!.]* * |sort -h | |
https://askubuntu.com/questions/356902/why-doesnt-this-show-the-hidden-files-folders |
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
# connect a galaxy role to a git repo example | |
# | |
cd roles.galaxy jorti.fail2ban | |
git remote add -f remote [email protected]:mkgin/ansible-fail2ban.git | |
# Create template for role Rolename | |
# and comment out the galaxy info tag | |
# so the new role is not listed with ones that were installed from galaxy |
NewerOlder