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
pacmd list-sinks | grep -oPz "index: \K\d+(?=\n^\tname: <`pactl stat | grep -oP "Default Sink: \K.+"`>)" |
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/python | |
# Toggles headset connection | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
# change this to your device name | |
device_to_connect = "BlueBuds X" | |
dbus_loop = DBusGMainLoop() |
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
# Doxyfile 1.8.8 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project. | |
# | |
# All text after a double hash (##) is considered a comment and is placed in | |
# front of the TAG it is preceding. | |
# | |
# All text after a single hash (#) is considered a comment and will be ignored. | |
# The format is: |
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/python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright © 2015 Hasan Yavuz Özderya | |
# | |
# This file is part of ecad-3d-model-generator. | |
# | |
# ecad-3d-model-generator is free software: you can redistribute it | |
# and/or modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation, either version 3 of |
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
;; 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
<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
#!/usr/bin/python | |
# | |
# Example of exporting a cadquery object to STEP using FreeCAD | |
# | |
# `FreeCAD` python module doesn't allow working with colors. For this | |
# we need the `FreeCADGui` module and to be able to access to objects | |
# `ViewObject` property. We are going to initialize FreeCADGui like | |
# usual, but instead of actually showing the window we will hide | |
# it. Note that We won't ever start the main loop at all. | |
# |
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 |
OlderNewer