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
sudo nsenter --net=$(docker inspect --format='{{.NetworkSettings.SandboxKey}}' $(docker ps | awk '/the-container-name/ {print $1}')) tshark -i eth0 -n -w /tmp/capture.pcap |
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
#!/usr/bin/python3 | |
import datetime | |
import re | |
import requests | |
import urllib | |
MAX_AGE_DAYS = 30 | |
HOST = 'http://localhost:5601' | |
ir = requests.get(urllib.parse.urljoin(HOST, '/api/index_management/indices')) |
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
# /etc/apt/preferences.d/testing | |
# Only allow explicit installs of packages from testing | |
Package: * | |
Pin: release a=testing | |
Pin-Priority: -10 | |
# Allow all other packages | |
Package: * | |
Pin: release o=Debian | |
Pin-Priority: 800 |
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
Loading Linux 5.13.0-trunk-arm64 ... | |
Loading initial ramdisk ... | |
[ 2.055188] fsl_mc_dpio dpio.15: unknown SoC version | |
[ 2.064490] fsl_mc_dpio dpio.14: unknown SoC version | |
[ 2.073471] fsl_mc_dpio dpio.13: unknown SoC version | |
[ 2.082147] fsl_mc_dpio dpio.12: unknown SoC version | |
[ 2.090918] fsl_mc_dpio dpio.11: unknown SoC version | |
[ 2.099422] fsl_mc_dpio dpio.10: unknown SoC version | |
[ 2.107945] fsl_mc_dpio dpio.9: unknown SoC version |
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
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# --------- CUT HERE --------- | |
# Default to management VRF if available | |
[ -z "${VRF}" ] && sudo -n change-vrf "mgmt" "$$" 2>/dev/null && export VRF="mgmt" | |
# --------- CUT HERE --------- |
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
# Convert a 24-bit BMP to EDK2 style BMP | |
# Something like 400x400 is probably the largest realistic image to use | |
# 300x300 looks pretty neat. | |
convert ~/KamelLogo.bmp -compress None -type Palette BMP3:./edk2/MdeModulePkg/Logo/Logo.bmp |
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
# 32-bit build by me: https://github.com/bluecmd/tools/blob/master/openocd-32bit-ulx3s.zip | |
# This is for 64-bit | |
# BUG: Ends up depending on msys anyway: https://github.com/libusb/libusb/issues/829 | |
# Note: We use MSYS for the shell to compile an MinGW64 target. | |
# That way the resulting binary will not rely on MSYS. | |
# Make sure the FTDI drivers are installed for the virtual COM port. | |
# As of this writing I am using "CDM v2.12.28 WHQL Certified" |
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
diff -ur orig/magic-8.3.61/graphics/grTk1.c magic-8.3.61/graphics/grTk1.c | |
--- orig/magic-8.3.61/graphics/grTk1.c 2020-05-24 09:00:08.000000000 +0200 | |
+++ magic-8.3.61/graphics/grTk1.c 2020-10-02 13:02:37.152809300 +0200 | |
@@ -1441,7 +1441,7 @@ | |
else | |
GrTkInstalledCMap = FALSE; | |
- Tcl_EvalEx(consoleinterp, "catch repaintconsole", 20, 0); | |
+ //Tcl_EvalEx(consoleinterp, "catch repaintconsole", 20, 0); | |
} |
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
+----------------------------------------------------------------------------------------------------+ | |
; Fitter Resource Usage Summary ; | |
+------------------------------------------------------------------+-------------------------+-------+ | |
; Resource ; Usage ; % ; | |
+------------------------------------------------------------------+-------------------------+-------+ | |
; Logic utilization (ALMs needed / total ALMs on device) ; 233,293 / 234,720 ; 99 % ; | |
; ALMs needed [=A-B+C] ; 233,293 ; ; | |
; [A] ALMs used in final placement [=a+b+c+d] ; 232,725 / 234,720 ; 99 % ; | |
; [a] ALMs used for LUT logic and registers ; 119,886 ; ; | |
; [b] ALMs used for LUT logic ; 38,783 ; |
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
TOPLEVEL_LANG = verilog | |
VERILOG_SOURCES = $(shell pwd)/test.v | |
TOPLEVEL = thing | |
MODULE = test | |
SIM ?= verilator | |
include $(shell cocotb-config --makefiles)/Makefile.sim |