Skip to content

Instantly share code, notes, and snippets.

@attie
attie / winkde.ahk
Last active August 28, 2024 12:55
Usability improvements for moving and resizing windows, on Windows with AutoHotKey
; Win+LeftClick allows you to move a window from anywhere
; be careful, not all windows should be dragged (e.g: start menu)
#LButton::
MouseGetPos,KDE_X1,KDE_Y1,KDE_id
WinGet,KDE_Win,MinMax,ahk_id %KDE_id%
if KDE_Win
return
WinGetPos,KDE_WinX1,KDE_WinY1,,,ahk_id %KDE_id%
loop {
GetKeyState,KDE_Button,LButton,P
@attie
attie / stackexchange-img-blank.js
Last active May 6, 2024 12:37
Make image links open in a new tab
// ==UserScript==
// @name Make image links open in a new tab
// @namespace http://attie.co.uk/
// @source https://gist.github.com/attie/6ee3fa3dea286452070ed6249de98d70
// @version 2024-05-06
// @description Some links should just open in a new tab...
// @author Attie Grande <[email protected]>
// @match https://*.stackexchange.com/*
// @match https://stackoverflow.com/*
// @match https://superuser.com/*
@attie
attie / gmail-drive-button.js
Last active September 12, 2024 21:44
Hide "Add to Drive" button for Gmail attachments
// ==UserScript==
// @name Hide annoying buttons on Gmail attachments
// @namespace http://attie.co.uk/
// @source https://gist.github.com/attie/9594a7fc4537137cfa068a3cc53d5ce5
// @version 2024-04-30
// @description Just get rid of the annoying buttons - https://chaos.social/@attie/112360057673910473
// @author Attie Grande <[email protected]>
// @match https://mail.google.com/mail/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
import logging
import asyncio
from aramanth import *
from ....support.endpoint import *
from ....gateware.pads import *
from ....gateware.pll import *
from ... import *
class VideoIkea2WireSubtarget(Elaboratable):

Keybase proof

I hereby claim:

  • I am attie on github.
  • I am attie (https://keybase.io/attie) on keybase.
  • I have a public key ASCqW8sJURyxuw7dswIzwzCq7VVlfhU8k2ic2aBWyABEzgo

To claim this, I am signing this object:

@attie
attie / README.md
Last active August 12, 2020 10:05
Get Started with OrangeCrab r0.2

Orange Crab

Reference

Get Toolchain

# https://github.com/open-tool-forge/fpga-toolchain/releases
@attie
attie / README.md
Created August 11, 2020 20:37
Get Started with OrangeCrap r0.2

Reference

Get Toolchain

# https://github.com/open-tool-forge/fpga-toolchain/releases

read os &lt;&lt;&lt; "linux"
### 11:26:27 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
$ python3.8 -m venv venv
### 11:26:31 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
$ . venv/bin/activate
### 11:26:37 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
venv:$ pip3 install 'nmigen-yosys>=0.9.post4248.*'
Collecting nmigen-yosys>=0.9.post4248.*
Downloading https://files.pythonhosted.org/packages/13/22/f7deea3304bfac4c3b8288548049536f48de1467d3111975a637ec2eb92c/nmigen_yosys-0.9.post4248.dev7-py3-none-any.whl (460kB)
|████████████████████████████████| 460kB 2.7MB/s
Collecting wasmtime~=0.16.0 (from nmigen-yosys>=0.9.post4248.*)
### 11:26:27 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
$ python3.8 -m venv venv
### 11:26:31 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
$ . venv/bin/activate
### 11:26:37 attie@perdy:~/proj/nmigen [0] ### {1,/home/attie}
venv:$ pip3 install 'nmigen-yosys>=0.9.post4248.*'
Collecting nmigen-yosys>=0.9.post4248.*
Downloading https://files.pythonhosted.org/packages/13/22/f7deea3304bfac4c3b8288548049536f48de1467d3111975a637ec2eb92c/nmigen_yosys-0.9.post4248.dev7-py3-none-any.whl (460kB)
|████████████████████████████████| 460kB 2.7MB/s
Collecting wasmtime~=0.16.0 (from nmigen-yosys>=0.9.post4248.*)
@attie
attie / Makefile
Last active February 4, 2020 21:56
Yocto Out-of-Tree Kernel Module Issues
obj-m := hello.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install