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
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** | |
* Qwt Widget Library | |
* Copyright (C) 1997 Josef Wilgen | |
* Copyright (C) 2002 Uwe Rathmann | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the Qwt License, Version 1.0 | |
*****************************************************************************/ | |
// vim: expandtab |
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
# place in : /usr/share/X11/xorg.conf.d/ | |
Section "InputClass" | |
Identifier "Marble Mouse" | |
MatchProduct "Logitech USB Trackball" | |
Option "EmulateWheel" "true" | |
Option "EmulateWheelButton" "9" | |
Option "XAxisMapping" "6 7" | |
Option "YAxisMapping" "4 5" | |
Option "Emulate3Buttons" "true" | |
EndSection |
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
<function name="new" | |
c:identifier="goo_canvas_rect_new" | |
introspectable="0"> | |
<doc xml:space="preserve">Creates a new rectangle item. | |
<!--PARAMETERS--> | |
Here's an example showing how to create a rectangle at (100,100) with a | |
width of 200 and a height of 100. |
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
;; open this file in sudo | |
(defun sudo-this () | |
"Open currently visited file as sudo!" | |
(interactive) | |
(if buffer-file-name | |
(let ((to-close (current-buffer))) | |
(find-file (s-concat "/sudo:root@localhost:" buffer-file-name)) | |
(kill-buffer to-close)) | |
(message "No file!"))) |
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
# -*- coding: utf-8 -*- | |
# | |
# This script will re-annotate board companents according to their x,y | |
# positions and back-annotate those changes to schematic files. | |
# | |
# Make sure you have backups of all your files! | |
# | |
# Forked from https://github.com/cculpepper/kicad-python/blob/master/examples/pcbannotate.py | |
# | |
# You should run the script from inside pcbnew script console. After |
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
# save this file in /etc/udev/rules.d/ | |
SUBSYSTEM=="usb", ATTRS{idProduct}=="ff0b", ATTRS{idVendor}=="04d8", GROUP = "plugdev" |
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
import cadquery as cq | |
from Helpers import show | |
BS = cq.selectors.BoxSelector | |
# PARAMETERS | |
mount_holes = True | |
# mold size | |
mw = 40 | |
mh = 13 |
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
# replace the EXTENSION_UUID with your extension/applet/desklet name | |
# replace the APPLET with other types if you are not working with an applet | |
dbus-send --session --dest=org.Cinnamon.LookingGlass --type=method_call /org/Cinnamon/LookingGlass org.Cinnamon.LookingGlass.ReloadExtension string:'EXTENSION_UUID' string:'APPLET' |
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
// ==UserScript== | |
// @name unfix-all-the-toolbars | |
// @description Removes "position: fixed" style from elements, unfixing "toolbars" and the such. | |
// @namespace https://hasanyavuz.ozderya.net | |
// @include * | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
NewerOlder