Skip to content

Instantly share code, notes, and snippets.

View ildus's full-sized avatar

Ildus Kurbangaliev ildus

View GitHub Profile
@ildus
ildus / drm_info
Created December 3, 2023 17:55
outputs
Node: /dev/dri/card0
├───Driver: apple (Apple display controller DRM driver) version 1.0.0 (20221106)
│ ├───DRM_CLIENT_CAP_STEREO_3D supported
│ ├───DRM_CLIENT_CAP_UNIVERSAL_PLANES supported
│ ├───DRM_CLIENT_CAP_ATOMIC supported
│ ├───DRM_CLIENT_CAP_ASPECT_RATIO supported
│ ├───DRM_CLIENT_CAP_WRITEBACK_CONNECTORS supported
│ ├───DRM_CAP_DUMB_BUFFER = 1
│ ├───DRM_CAP_VBLANK_HIGH_CRTC = 1
│ ├───DRM_CAP_DUMB_PREFERRED_DEPTH = 0
@ildus
ildus / run_tb.do
Created April 29, 2021 13:37 — forked from esynr3z/run_tb.do
Tcl script to run Modelsim simulation. Use "vsim -do run_tb.do" to start.
# Simply change the project settings in this section
# for each new project. There should be no need to
# modify the rest of the script.
set tb_name tb_top
set library_file_list [list \
work [list \
../../src/rtl/top.v \
../../src/tb/$tb_name.v] \
set $mod Mod1
font pango:monospace 8
hide_edge_borders both
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
focus_follows_mouse no
# kill focused window
@ildus
ildus / dropbox_screenshots
Created May 8, 2017 07:47
script to copy screenshot to dropbox and get a link
#!/usr/bin/env bash
DOPDIR='/images'
ACCESS_TOKEN='<token>'
# generate random name
matrix='abcdefghijklmnopqrstuvwxyz'
length=20
while [ "${n:=1}" -le "$length" ]
do
@ildus
ildus / .vimrc
Created March 6, 2017 08:36
psql, gdb and vim intergration
function! MakeGdbBreak()
let path = "break ".expand('%').":".line(".")
call writefile([path], "/tmp/gdb_breaks")
echo "Created ".path
endfunction
command! -bar GDBreak call MakeGdbBreak()
nnoremap <leader>b :GDBreak<cr>
diff --git a/PKGBUILD b/PKGBUILD
index 6b2a552..a6840bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# if you want 32 bit, 1.2.10 was the last version supported
pkgname=saleae-logic
-pkgver=1.2.11
+pkgver=1.2.12
../gcc-4.9.2/configure \
--target=$LFS_TGT \
--prefix=/tools \
--with-sysroot=$LFS \
--with-newlib \
--without-headers \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--disable-nls \
--disable-shared \
for file in \
$(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
cp -uv $file{,.orig}
sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
-e 's@/usr@/tools@g' $file.orig > $file
echo '
#undef STANDARD_STARTFILE_PREFIX_1
#undef STANDARD_STARTFILE_PREFIX_2
#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
#!/bin/bash
# Simple script to list version numbers of critical development tools
export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> `readlink -f /bin/sh`"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -h /usr/bin/yacc ]; then
echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
elif [ -x /usr/bin/yacc ]; then