mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-03-01 14:22:33 +01:00
Initial commit
This commit is contained in:
commit
db0d57cfcf
14
.reuse/dep5
Normal file
14
.reuse/dep5
Normal file
@ -0,0 +1,14 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: dotfiles
|
||||
Upstream-Contact: Benjamin Grande M. S .<ben.grande.b@gmail.com>
|
||||
Source: https://github.com/ben-grande/dotfiles
|
||||
|
||||
Files: files/git/.config/git/message
|
||||
Copyright: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
License: MIT
|
||||
|
||||
Files: files/sh/.config/less/lesskey-old
|
||||
Copyright: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
# vim: ft=debcopyright
|
235
LICENSES/AGPL-3.0-or-later.txt
Normal file
235
LICENSES/AGPL-3.0-or-later.txt
Normal file
@ -0,0 +1,235 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
|
9
LICENSES/BSD-2-Clause.txt
Normal file
9
LICENSES/BSD-2-Clause.txt
Normal file
@ -0,0 +1,9 @@
|
||||
Copyright (c) <year> <owner>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
99
LICENSES/CC-BY-SA-3.0.txt
Normal file
99
LICENSES/CC-BY-SA-3.0.txt
Normal file
@ -0,0 +1,99 @@
|
||||
Creative Commons Attribution-ShareAlike 3.0 Unported
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
|
||||
|
||||
License
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
|
||||
|
||||
b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License.
|
||||
|
||||
c. "Creative Commons Compatible License" means a license that is listed at http://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License.
|
||||
|
||||
d. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
|
||||
|
||||
e. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
|
||||
|
||||
f. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
|
||||
|
||||
g. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
|
||||
|
||||
h. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
|
||||
|
||||
i. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
|
||||
|
||||
j. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
|
||||
|
||||
k. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
|
||||
|
||||
2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
|
||||
|
||||
a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
|
||||
|
||||
b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
|
||||
|
||||
c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
|
||||
|
||||
d. to Distribute and Publicly Perform Adaptations.
|
||||
|
||||
e. For the avoidance of doubt:
|
||||
|
||||
i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
|
||||
|
||||
ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
|
||||
|
||||
iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
|
||||
|
||||
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
|
||||
|
||||
4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
|
||||
|
||||
a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested.
|
||||
|
||||
b. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License.
|
||||
|
||||
c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
|
||||
|
||||
d. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. Termination
|
||||
|
||||
a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
|
||||
|
||||
b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
|
||||
|
||||
8. Miscellaneous
|
||||
|
||||
a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
|
||||
|
||||
b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
|
||||
|
||||
c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
|
||||
|
||||
d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
|
||||
|
||||
e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
|
||||
|
||||
f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
|
||||
|
||||
Creative Commons Notice
|
||||
|
||||
Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
|
||||
|
||||
Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License.
|
||||
|
||||
Creative Commons may be contacted at http://creativecommons.org/.
|
170
LICENSES/CC-BY-SA-4.0.txt
Normal file
170
LICENSES/CC-BY-SA-4.0.txt
Normal file
@ -0,0 +1,170 @@
|
||||
Creative Commons Attribution-ShareAlike 4.0 International
|
||||
|
||||
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||
|
||||
Using Creative Commons Public Licenses
|
||||
|
||||
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||
|
||||
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
|
||||
|
||||
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described.
|
||||
|
||||
Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
|
||||
|
||||
Creative Commons Attribution-ShareAlike 4.0 International Public License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||
|
||||
Section 1 – Definitions.
|
||||
|
||||
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||
|
||||
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||
|
||||
c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
|
||||
|
||||
d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||
|
||||
e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||
|
||||
f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||
|
||||
g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
|
||||
|
||||
h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||
|
||||
i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||
|
||||
j. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||
|
||||
k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||
|
||||
l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||
|
||||
m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||
|
||||
Section 2 – Scope.
|
||||
|
||||
a. License grant.
|
||||
|
||||
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||
|
||||
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||
|
||||
B. produce, reproduce, and Share Adapted Material.
|
||||
|
||||
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||
|
||||
3. Term. The term of this Public License is specified in Section 6(a).
|
||||
|
||||
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||
|
||||
5. Downstream recipients.
|
||||
|
||||
A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||
|
||||
B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||
|
||||
C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||
|
||||
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
b. Other rights.
|
||||
|
||||
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||
|
||||
2. Patent and trademark rights are not licensed under this Public License.
|
||||
|
||||
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||
|
||||
Section 3 – License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||
|
||||
a. Attribution.
|
||||
|
||||
1. If You Share the Licensed Material (including in modified form), You must:
|
||||
|
||||
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||
|
||||
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||
|
||||
ii. a copyright notice;
|
||||
|
||||
iii. a notice that refers to this Public License;
|
||||
|
||||
iv. a notice that refers to the disclaimer of warranties;
|
||||
|
||||
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||
|
||||
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||
|
||||
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||
|
||||
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||
|
||||
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||
|
||||
b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||
|
||||
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
|
||||
|
||||
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||
|
||||
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||
|
||||
Section 4 – Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||
|
||||
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||
|
||||
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||
|
||||
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||
|
||||
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||
|
||||
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||
|
||||
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||
|
||||
Section 6 – Term and Termination.
|
||||
|
||||
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||
|
||||
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||
|
||||
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||
|
||||
2. upon express reinstatement by the Licensor.
|
||||
|
||||
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||
|
||||
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||
|
||||
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||
|
||||
Section 7 – Other Terms and Conditions.
|
||||
|
||||
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||
|
||||
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||
|
||||
Section 8 – Interpretation.
|
||||
|
||||
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||
|
||||
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||
|
||||
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||
|
||||
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||
|
||||
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||
|
||||
Creative Commons may be contacted at creativecommons.org.
|
117
LICENSES/GPL-2.0-only.txt
Normal file
117
LICENSES/GPL-2.0-only.txt
Normal file
@ -0,0 +1,117 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
|
||||
|
||||
This program 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 2 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
|
232
LICENSES/GPL-3.0-only.txt
Normal file
232
LICENSES/GPL-3.0-only.txt
Normal file
@ -0,0 +1,232 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program 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 the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
232
LICENSES/GPL-3.0-or-later.txt
Normal file
232
LICENSES/GPL-3.0-or-later.txt
Normal file
@ -0,0 +1,232 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program 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 the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
9
LICENSES/MIT.txt
Normal file
9
LICENSES/MIT.txt
Normal file
@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
LICENSES/Vim.txt
Normal file
30
LICENSES/Vim.txt
Normal file
@ -0,0 +1,30 @@
|
||||
VIM LICENSE
|
||||
|
||||
I) There are no restrictions on distributing unmodified copies of Vim except that they must include this license text. You can also distribute unmodified parts of Vim, likewise unrestricted except that they must include this license text. You are also allowed to include executables that you made from the unmodified Vim sources, plus your own usage examples and Vim scripts.
|
||||
|
||||
II) It is allowed to distribute a modified (or extended) version of Vim, including executables and/or source code, when the following four conditions are met:
|
||||
|
||||
1) This license text must be included unmodified.
|
||||
|
||||
2) The modified Vim must be distributed in one of the following five ways:
|
||||
|
||||
a) If you make changes to Vim yourself, you must clearly describe in the distribution how to contact you. When the maintainer asks you (in any way) for a copy of the modified Vim you distributed, you must make your changes, including source code, available to the maintainer without fee. The maintainer reserves the right to include your changes in the official version of Vim. What the maintainer will do with your changes and under what license they will be distributed is negotiable. If there has been no negotiation then this license, or a later version, also applies to your changes. The current maintainer is Bram Moolenaar <Bram@vim.org>. If this changes it will be announced in appropriate places (most likely vim.sf.net, www.vim.org and/or comp.editors). When it is completely impossible to contact the maintainer, the obligation to send him your changes ceases. Once the maintainer has confirmed that he has received your changes they will not have to be sent again.
|
||||
|
||||
b) If you have received a modified Vim that was distributed as mentioned under a) you are allowed to further distribute it unmodified, as mentioned at I). If you make additional changes the text under a) applies to those changes.
|
||||
|
||||
c) Provide all the changes, including source code, with every copy of the modified Vim you distribute. This may be done in the form of a context diff. You can choose what license to use for new code you add. The changes and their license must not restrict others from making their own changes to the official version of Vim.
|
||||
|
||||
d) When you have a modified Vim which includes changes as mentioned under c), you can distribute it without the source code for the changes if the following three conditions are met:
|
||||
- The license that applies to the changes permits you to distribute the changes to the Vim maintainer without fee or restriction, and permits the Vim maintainer to include the changes in the official version of Vim without fee or restriction.
|
||||
- You keep the changes for at least three years after last distributing the corresponding modified Vim. When the maintainer or someone who you distributed the modified Vim to asks you (in any way) for the changes within this period, you must make them available to him.
|
||||
- You clearly describe in the distribution how to contact you. This contact information must remain valid for at least three years after last distributing the corresponding modified Vim, or as long as possible.
|
||||
|
||||
e) When the GNU General Public License (GPL) applies to the changes, you can distribute the modified Vim under the GNU GPL version 2 or any later version.
|
||||
|
||||
3) A message must be added, at least in the output of the ":version" command and in the intro screen, such that the user of the modified Vim is able to see that it was modified. When distributing as mentioned under 2)e) adding the message is only required for as far as this does not conflict with the license used for the changes.
|
||||
|
||||
4) The contact information as required under 2)a) and 2)d) must not be removed or changed, except that the person himself can make corrections.
|
||||
|
||||
III) If you distribute a modified version of Vim, you are encouraged to use the Vim license for your changes and make them available to the maintainer, including the source code. The preferred way to do this is by e-mail or by uploading the files to a server and e-mailing the URL. If the number of changes is small (e.g., a modified Makefile) e-mailing a context diff will do. The e-mail address to be used is <maintainer@vim.org>
|
||||
|
||||
IV) It is not allowed to remove this license from the distribution of the Vim sources, parts of it or from a modified version. You may use this license for previous Vim releases instead of the license that they came with, at your option.
|
114
README.md
Normal file
114
README.md
Normal file
@ -0,0 +1,114 @@
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
-->
|
||||
|
||||
# dotfiles
|
||||
|
||||
Ben Grande's Dotfiles.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Description](#description)
|
||||
* [Installation](#installation)
|
||||
* [Salt](#salt)
|
||||
* [Script](#script)
|
||||
* [Usage](#usage)
|
||||
* [License](#license)
|
||||
|
||||
## Description
|
||||
|
||||
Configuration and scripts targeting:
|
||||
|
||||
- Usability:
|
||||
- Vi keybindings for application movement
|
||||
- Emacs keybindings for command-line editing
|
||||
- XDG Specification to not clutter $HOME
|
||||
- Portability:
|
||||
- POSIX compliant code
|
||||
- Drop-in configuration files
|
||||
- Tested in Qubes OS Dom0, Debian, Fedora
|
||||
- Tasks:
|
||||
- GUI: x11, gtk
|
||||
- SCM: git, tig, git-shell
|
||||
- Keys: gpg, ssh
|
||||
- Networking: curl, urlview, wget, w3m
|
||||
- Productivity: tmux, vim
|
||||
- Shell: sh, bash, zsh, less, dircolors
|
||||
|
||||
## Installation
|
||||
|
||||
### Salt
|
||||
|
||||
The formula was designed to be run in Qubes OS, the normal user name is
|
||||
hardcoded to `user` and its home is hardcoded to `/home/user`.
|
||||
|
||||
Install everything in a qube:
|
||||
```sh
|
||||
qubesctl --skip-dom0 --targets=QUBE state.apply dotfiles.copy-all
|
||||
```
|
||||
|
||||
Install specific files in Dom0:
|
||||
```sh
|
||||
qubesctl state.apply dotfiles.copy-dom0,dotfiles.copy-sh,dotfiles.copy-vim,dotfiles.copy-x11
|
||||
```
|
||||
|
||||
### Script
|
||||
|
||||
You can simply deploy all configurations with:
|
||||
```sh
|
||||
./files/setup.sh
|
||||
```
|
||||
Or target specific ones by specifying the directory name:
|
||||
```sh
|
||||
./files/setup.sh sh bash
|
||||
```
|
||||
Note that some files might depend on other directories, specially `sh` which
|
||||
is a base for `bash` and `zsh` but might also have environment variables for
|
||||
`net` and `vim`. It also adds `$HOME/.local/bin` and
|
||||
`$HOME/.local/bin/$HOSTNAME` to the `$PATH` variable, so if the project has
|
||||
scripts, install the `sh` directory.
|
||||
|
||||
Reload your shell:
|
||||
```sh
|
||||
exec $SHELL
|
||||
```
|
||||
|
||||
Reload you X server:
|
||||
```sh
|
||||
. ~/.config/x11/xprofile
|
||||
```
|
||||
|
||||
You need to logout and login again for some changes to take effect.
|
||||
|
||||
## Usage
|
||||
|
||||
The deployment replaces existing files and that is the goal, to make sure that
|
||||
we have the same configuration of every machine. Support for local
|
||||
configuration is implemented by including a local file per application.
|
||||
|
||||
Supported programs and the expected file names in `$HOME`:
|
||||
|
||||
- **bash**: .bashrc.local
|
||||
- **git**: .gitconfig.local
|
||||
- **sh**: .profile.local, .shrc.local
|
||||
- **ssh**: .ssh/config.d/ (.conf suffix), .ssh/known_hosts.d/ (.host suffix)
|
||||
- **tmux**: .tmux.conf.local
|
||||
- **vim**: .vimrc.local
|
||||
- **x11**: .xprofile.local
|
||||
- **zsh**: .zshrc.local
|
||||
|
||||
## License
|
||||
|
||||
This project is [REUSE-compliant](https://reuse.software). It is difficult to
|
||||
list all licenses and copyrights and keep them up-to-date here.
|
||||
|
||||
The easiest way to get the copyright and license of the project with the reuse
|
||||
tool:
|
||||
```sh
|
||||
reuse spdx
|
||||
```
|
||||
|
||||
You can also check these information manually by checking in the file header,
|
||||
a companion `.license` or in `.reuse/dep5`.
|
52
copy-all.sls
Normal file
52
copy-all.sls
Normal file
@ -0,0 +1,52 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
include:
|
||||
- .copy-git
|
||||
- .copy-gtk
|
||||
- .copy-net
|
||||
- .copy-pgp
|
||||
- .copy-sh
|
||||
- .copy-ssh
|
||||
- .copy-tmux
|
||||
- .copy-vim
|
||||
- .copy-x11
|
||||
|
||||
{#
|
||||
Unfortunately salt.states.file does not keep permissions when using salt-ssh.
|
||||
Best option is 'file.managed mode: keep' or 'file.recurse file_mode: keep'.
|
||||
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.file.html
|
||||
#}
|
||||
{#
|
||||
"{{ slsdotpath }}-absent-dotfiles-client":
|
||||
file.absent:
|
||||
- name: /tmp/dotfiles
|
||||
|
||||
"{{ slsdotpath }}-copy-dotfiles-client":
|
||||
file.recurse:
|
||||
- source: salt://{{ slsdotpath }}/files
|
||||
- name: /tmp/dotfiles
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-apply-dotfiles-client":
|
||||
cmd.run:
|
||||
- name: sh /tmp/dotfiles/setup.sh
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-permission":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-absent-end-dotfiles-client":
|
||||
file.absent:
|
||||
- name: /tmp/dotfiles
|
||||
#}
|
9
copy-all.top
Normal file
9
copy-all.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-all
|
65
copy-git.sls
Normal file
65
copy-git.sls
Normal file
@ -0,0 +1,65 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-git-home":
|
||||
file.recurse:
|
||||
- name: /home/user
|
||||
- source: salt://{{ slsdotpath }}/files/git
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-template-dir-home":
|
||||
file.directory:
|
||||
- name: /home/user/.config/git/template/hooks
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-shell-dir-home":
|
||||
file.directory:
|
||||
- name: /home/user/.config/git/shell
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-bin-dir-home":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-copy-git-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/git
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-template-dir-skel":
|
||||
file.directory:
|
||||
- name: /etc/skel/.config/git/template/hooks
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-shell-dir-skel":
|
||||
file.directory:
|
||||
- name: /home/user/.config/git/shell
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-git-bin-dir-skel":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
9
copy-git.top
Normal file
9
copy-git.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-git
|
23
copy-gtk.sls
Normal file
23
copy-gtk.sls
Normal file
@ -0,0 +1,23 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-gtk-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/gtk/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-copy-gtk-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/gtk/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
9
copy-gtk.top
Normal file
9
copy-gtk.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-gtk
|
25
copy-mutt.sls
Normal file
25
copy-mutt.sls
Normal file
@ -0,0 +1,25 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-mutt-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/mutt/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0755'
|
||||
- user: user
|
||||
- group: user
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-copy-mutt-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/mutt/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0755'
|
||||
- user: root
|
||||
- group: root
|
||||
- makedirs: True
|
9
copy-mutt.top
Normal file
9
copy-mutt.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-mutt
|
27
copy-net.sls
Normal file
27
copy-net.sls
Normal file
@ -0,0 +1,27 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-net-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/net/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
||||
|
||||
"{{ slsdotpath }}-copy-net-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/net/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
9
copy-net.top
Normal file
9
copy-net.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-net
|
23
copy-pgp.sls
Normal file
23
copy-pgp.sls
Normal file
@ -0,0 +1,23 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-pgp-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/pgp/
|
||||
- file_mode: '0600'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-copy-pgp-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel/
|
||||
- source: salt://{{ slsdotpath }}/files/pgp/
|
||||
- file_mode: '0600'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
9
copy-pgp.top
Normal file
9
copy-pgp.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-pgp
|
43
copy-sh.sls
Normal file
43
copy-sh.sls
Normal file
@ -0,0 +1,43 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-sh-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/sh
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-sh-dir-home":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- file_mode: '0755'
|
||||
- dir_mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-copy-sh-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/sh
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-sh-dir-skel":
|
||||
file.directory:
|
||||
- name: /etc/skel/.local/bin
|
||||
- file_mode: '0755'
|
||||
- dir_mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
9
copy-sh.top
Normal file
9
copy-sh.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-sh
|
24
copy-ssh.sls
Normal file
24
copy-ssh.sls
Normal file
@ -0,0 +1,24 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-ssh-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/ssh/
|
||||
- file_mode: '0600'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
- backup: minion
|
||||
|
||||
"{{ slsdotpath }}-copy-ssh-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel/
|
||||
- source: salt://{{ slsdotpath }}/files/ssh/
|
||||
- file_mode: '0600'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
9
copy-ssh.top
Normal file
9
copy-ssh.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-ssh
|
37
copy-tmux.sls
Normal file
37
copy-tmux.sls
Normal file
@ -0,0 +1,37 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-tmux-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/tmux/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-tmux-home":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
||||
|
||||
"{{ slsdotpath }}-copy-tmux-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/tmux/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
"{{ slsdotpath }}-fix-executables-tmux-skel":
|
||||
file.directory:
|
||||
- name: /home/user/.local/bin
|
||||
- mode: '0755'
|
||||
- recurse:
|
||||
- mode
|
9
copy-tmux.top
Normal file
9
copy-tmux.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-tmux
|
23
copy-vim.sls
Normal file
23
copy-vim.sls
Normal file
@ -0,0 +1,23 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-vim-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/vim/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
"{{ slsdotpath }}-copy-vim-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel
|
||||
- source: salt://{{ slsdotpath }}/files/vim/
|
||||
- file_mode: '0644'
|
||||
- dir_mode: '0700'
|
||||
- user: root
|
||||
- group: root
|
9
copy-vim.top
Normal file
9
copy-vim.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-vim
|
27
copy-x11.sls
Normal file
27
copy-x11.sls
Normal file
@ -0,0 +1,27 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-copy-x11-home":
|
||||
file.recurse:
|
||||
- name: /home/user/
|
||||
- source: salt://{{ slsdotpath }}/files/x11
|
||||
- file_mode: '0755'
|
||||
- dir_mode: '0755'
|
||||
- user: user
|
||||
- group: user
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
||||
|
||||
"{{ slsdotpath }}-copy-x11-skel":
|
||||
file.recurse:
|
||||
- name: /etc/skel/
|
||||
- source: salt://{{ slsdotpath }}/files/x11
|
||||
- file_mode: '0755'
|
||||
- dir_mode: '0755'
|
||||
- user: root
|
||||
- group: root
|
||||
- keep_symlinks: True
|
||||
- force_symlinks: True
|
9
copy-x11.top
Normal file
9
copy-x11.top
Normal file
@ -0,0 +1,9 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'*':
|
||||
- dotfiles.copy-x11
|
36
files/dom0/.config/The Qubes Project/qubes-qube-manager.conf
Normal file
36
files/dom0/.config/The Qubes Project/qubes-qube-manager.conf
Normal file
@ -0,0 +1,36 @@
|
||||
# vim: ft=toml
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
[General]
|
||||
window_size=@Size(824 500)
|
||||
|
||||
[columns]
|
||||
Backup=true
|
||||
Default%20DispVM=true
|
||||
Disk%20Usage=true
|
||||
IP=true
|
||||
Internal=false
|
||||
Is%20DVM%20Template=false
|
||||
Label=true
|
||||
Last%20backup=true
|
||||
Name=true
|
||||
NetVM=true
|
||||
State=true
|
||||
Template=true
|
||||
Type=false
|
||||
Virt%20Mode=false
|
||||
|
||||
[show]
|
||||
all=true
|
||||
halted=true
|
||||
network=true
|
||||
running=true
|
||||
standalone=true
|
||||
templates=true
|
||||
|
||||
[view]
|
||||
compactview=true
|
||||
sort_column=3
|
||||
sort_order=0
|
19
files/dom0/.local/bin/dom0/qvm-backup-dom0-provision
Executable file
19
files/dom0/.local/bin/dom0/qvm-backup-dom0-provision
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## qvm-backup only backs up home dir, therefore save other dirs to our home.
|
||||
set -eu
|
||||
|
||||
source_dirs="
|
||||
/etc/qubes/policy.d
|
||||
"
|
||||
|
||||
target_dir="/home/user/backup/$(date +%Y-%m-%d_%H-%M)"
|
||||
|
||||
for dir in ${source_dirs}; do
|
||||
mkdir -p "${target_dir}${dir}"
|
||||
cp -a "${dir}"/* "${target_dir}/${dir}"
|
||||
done
|
57
files/dom0/.local/bin/dom0/qvm-copy-to-dom0
Executable file
57
files/dom0/.local/bin/dom0/qvm-copy-to-dom0
Executable file
@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Copy a file from an DomU to Dom0. Script has to be run in Dom0
|
||||
set -eu
|
||||
|
||||
usage(){
|
||||
echo "usage: ${0##*/} <QUBE> <FILE> <FILE2...>" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
run_qube(){
|
||||
qvm-run -p "${qube}" "${1}"
|
||||
}
|
||||
|
||||
main(){
|
||||
qube_file="${1}"
|
||||
qube_dir="${qube_file%/*}"
|
||||
qube_base="${qube_file##*/}"
|
||||
|
||||
incoming_dir="/home/user/QubesIncoming/${qube}"
|
||||
mkdir -p -- "${incoming_dir}"
|
||||
incoming_file="${incoming_dir}/${qube_base}"
|
||||
incoming_base="${qube_base}"
|
||||
|
||||
if test -e "${incoming_file}"; then
|
||||
echo "Error: destination already exists: ${incoming_file}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! run_qube "test -e ${qube_file}"; then
|
||||
echo "Error: Qube ${qube} does not contain file ${qube_file}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if run_qube "test -d \"${qube_file}\""; then
|
||||
run_qube "tar -cC \"${qube_dir}\" \"${qube_base}\" " \
|
||||
| tar -xC "${incoming_dir}" "${incoming_base}"
|
||||
else
|
||||
run_qube "cat -- \"${qube_file}\"" > "${incoming_file}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
test -n "${2-}" || usage
|
||||
qube="${1}"
|
||||
shift
|
||||
|
||||
while true; do
|
||||
main "${1}"
|
||||
shift
|
||||
test -z "${1-}" || continue
|
||||
break
|
||||
done
|
1
files/dom0/.local/bin/dom0/qvm-file-manager
Symbolic link
1
files/dom0/.local/bin/dom0/qvm-file-manager
Symbolic link
@ -0,0 +1 @@
|
||||
qvm-terminal
|
44
files/dom0/.local/bin/dom0/qvm-ls-class
Executable file
44
files/dom0/.local/bin/dom0/qvm-ls-class
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
case "${1-}" in
|
||||
-A|--admin)
|
||||
q_class="AdminVM"
|
||||
;;
|
||||
-t|--template)
|
||||
q_class="TemplateVM"
|
||||
;;
|
||||
-a|--app)
|
||||
q_class="AppVM"
|
||||
;;
|
||||
-d|--disp)
|
||||
q_class="DispVM"
|
||||
;;
|
||||
-s|--standalone)
|
||||
q_class="StandaloneVM"
|
||||
;;
|
||||
"")
|
||||
true
|
||||
;;
|
||||
*)
|
||||
printf '%s\n' "usage: ${0##*/} [CLASS]
|
||||
-A, --admin
|
||||
-t, --template
|
||||
-a, --app
|
||||
-d, --disp
|
||||
-s, --standalone"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "${q_class-}"; then
|
||||
qvm-ls --no-spinner --raw-list
|
||||
else
|
||||
qvm-ls --no-spinner --raw-data --fields=NAME,CLASS | \
|
||||
awk -v at="${q_class}" -F "|" '$2 ~ at {print $1}'
|
||||
fi
|
26
files/dom0/.local/bin/dom0/qvm-restart
Executable file
26
files/dom0/.local/bin/dom0/qvm-restart
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
test -n "${1:-}" || { echo "Usage: ${0##*/} QUBE [QUBE ...]"; exit 1; }
|
||||
|
||||
vms="${*}"
|
||||
|
||||
## exclude disposables
|
||||
vms_avail=""
|
||||
for vm in ${vms}; do
|
||||
qvm-check "${vm}" >/dev/null 2>&1 && vms_avail="${vms_avail} ${vm}"
|
||||
done
|
||||
|
||||
test -z "${vms_avail}" && exit 0
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
qvm-shutdown --wait --timeout 120 --force ${vms_avail}
|
||||
# shellcheck disable=SC2086
|
||||
qvm-start ${vms_avail}
|
||||
|
||||
exit 0
|
54
files/dom0/.local/bin/dom0/qvm-stats
Executable file
54
files/dom0/.local/bin/dom0/qvm-stats
Executable file
@ -0,0 +1,54 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: 2018 Chris Laprise <https://github.com/tasket>
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
## System stats for Qubes dom0
|
||||
## Credits: https://github.com/tasket/Qubes-scripts
|
||||
set -eu
|
||||
|
||||
delay=5
|
||||
sortcol=3
|
||||
sensor_lines='Package id 0|fan1|CPU'
|
||||
newline='
|
||||
'
|
||||
sumline="--------------------------------------------------------"
|
||||
header="\033[2K\nVM NAME STATE CPU(%) MEM(MB)"
|
||||
|
||||
sensors_stats () {
|
||||
sensors | grep -E "^($sensor_lines)"
|
||||
}
|
||||
|
||||
trap "tput reset" HUP INT QUIT ABRT TERM EXIT
|
||||
|
||||
tput reset
|
||||
sensors_stats
|
||||
echo -e "$header"
|
||||
cpusum=0; memsum=0; table="$sumline"
|
||||
# shellcheck disable=SC2016
|
||||
stdbuf -oL xentop -b -f -d "$delay" | \
|
||||
stdbuf -oL awk '{printf ("%-32s %5s %5d %7d\n", $1,$2,$4,$5/1000) }' | \
|
||||
(
|
||||
read -r ln
|
||||
while true; do
|
||||
if read -r -t 0.1 ln; then
|
||||
table="$table$newline$ln"
|
||||
read -r _ _ cpu mem <<<"$ln"
|
||||
cpusum=$((cpusum+cpu))
|
||||
memsum=$((memsum+mem))
|
||||
else
|
||||
# End of list, print totals, make new page.
|
||||
sort -k $sortcol -n -r <<<"$table"
|
||||
printf '%-32s %5s %5d %7d\033[J\033[H' " " " " "$cpusum" "$memsum"
|
||||
read -r ln
|
||||
cpusum=0; memsum=0
|
||||
table="$sumline"
|
||||
#clear
|
||||
#sensors |grep -E "^($sensor_lines)"
|
||||
sensors_stats
|
||||
echo -e "\033[2K$header\n"
|
||||
fi
|
||||
done
|
||||
)
|
18
files/dom0/.local/bin/dom0/qvm-stats-short
Executable file
18
files/dom0/.local/bin/dom0/qvm-stats-short
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2018 one7two99 <https://github.com/one7two99>
|
||||
# SPDX-FileCopyrightText: 2018 Ivan <https://github.com/taradiddles>
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
## Credits: https://github.com/Qubes-Community/Contents/blame/master/code/monitoring/ls-qubes.sh
|
||||
## Output: 9Q|13.3G -> 9 Qubes running with 13.3GB of total RAM consumption.
|
||||
## The output of this script can be placed in the Xfce top bar, via:
|
||||
## 1) Right Click on bar > Panel > Add new items > Generic Monitor > Add
|
||||
## 2) Right click on the newly added monitor and choose properties.
|
||||
## 3) Add this script to the command field.
|
||||
|
||||
xl list | awk '
|
||||
BEGIN { mem=0; qubes=0; } / [0-9]+ +[0-9]+ +[0-9]+ / { mem+=$3; qubes++; }
|
||||
END { printf("%dQ|%.1fG\n", qubes, mem/1000); }'
|
49
files/dom0/.local/bin/dom0/qvm-terminal
Executable file
49
files/dom0/.local/bin/dom0/qvm-terminal
Executable file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
me="${0##*/}"
|
||||
|
||||
usage(){
|
||||
printf '%s\n' "Usage: ${me} [QVM-RUN_OPTIONS] QUBE
|
||||
Examples:
|
||||
${me} --dispvm=DVM_TEMPLATE
|
||||
${me} -u root QUBE
|
||||
${me} QUBE" >&2
|
||||
exit "${1-"1"}"
|
||||
}
|
||||
|
||||
case "${me}" in
|
||||
*-terminal) service=qubes-run-terminal ;;
|
||||
*-file-manager) service=qubes-open-file-manager ;;
|
||||
*) printf '%s\n' "Invalid script name: ${me}" exit 1 ;;
|
||||
esac
|
||||
|
||||
|
||||
case "${1-}" in
|
||||
-h|--help)
|
||||
usage 1
|
||||
;;
|
||||
"")
|
||||
## Try to run on focused window, if Dom0 is focused, it will prompt you to
|
||||
## select a qube window.
|
||||
id="$(xdotool getwindowfocus)"
|
||||
qube="$(xprop -id "${id}" -notype _QUBES_VMNAME | awk -F '"' '{print $2}')"
|
||||
if test -n "${qube}"; then
|
||||
exec qvm-run --service -- "${qube}" "qubes.StartApp+${service}"
|
||||
fi
|
||||
echo "Select a qube window ..."
|
||||
id="$(xdotool selectwindow)"
|
||||
qube="$(xprop -id "${id}" -notype _QUBES_VMNAME | awk -F '"' '{print $2}')"
|
||||
if test -n "${qube}"; then
|
||||
qvm-run --service -- "${qube}" "qubes.StartApp+${service}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
qvm-run --service "${@}" -- "qubes.StartApp+${service}"
|
||||
;;
|
||||
esac
|
23
files/dom0/.local/bin/dom0/xfce-xkb-global
Executable file
23
files/dom0/.local/bin/dom0/xfce-xkb-global
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Make Xfce keyboard settings be applied globally, not per app or window.
|
||||
## Xfce doesn't let you configure the keyboard properly in one place, it uses
|
||||
## a separate plugin for some tasks.
|
||||
## https://docs.xfce.org/panel-plugins/xfce4-xkb-plugin/start
|
||||
## You can modify the plugin values by:
|
||||
## - editing the "panel" and adding "keyboard layouts" plugin. After adding
|
||||
## the plugin, right click on it and edit its properties. Set "manage
|
||||
## layout" to globally.
|
||||
## - editing the plugin directly in the "settings editor", search for plugin-n,
|
||||
## where "n" is a number we don't know and its value is "kxb", search for
|
||||
## group-policy and set it to "0".
|
||||
## - editing the plugin values via commandline with "xfconf" and set
|
||||
## "group-policy" value to "0".
|
||||
set -eu
|
||||
|
||||
xkb_plugin="$(xfconf-query -v -c xfce4-panel -p /plugins -l | grep xkb)"
|
||||
xfconf-query -c xfce4-panel -p "$xkb_plugin/group-policy" -n -s 0
|
187
files/dom0/.local/share/bash-completion/completions/qvm
Normal file
187
files/dom0/.local/share/bash-completion/completions/qvm
Normal file
@ -0,0 +1,187 @@
|
||||
# bash completion for qvm -*- shell-script -*-
|
||||
## vim: set ft=bash
|
||||
|
||||
## SPDX-FileCopyrightText: 2018 taradiddles
|
||||
##
|
||||
## SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
## Credits:
|
||||
## - credit to haaber for the original PoC !
|
||||
## - https://www.mail-archive.com/qubes-users@googlegroups.com/msg20088.html
|
||||
## - https://github.com/Qubes-Community/Contents/blob/master/code/productivity/qvm-cmds-bash-completion.bash
|
||||
## @taradiddles - apr 2018 - GPL
|
||||
|
||||
|
||||
## COMPLETION FUNCTIONS
|
||||
## ====================
|
||||
## Output the relative position of COMP_CWORD with option words ignored
|
||||
## Note: This logic is flawed when using option arguments (eg. -s blah).
|
||||
## Unfortunately there is no way to solve this except parsing every
|
||||
## known option for a given qvm-* command
|
||||
_get-cword() {
|
||||
local index=0
|
||||
local i
|
||||
for ((i=1; i<=COMP_CWORD; i++)); do
|
||||
[[ ${COMP_WORDS[i]} == -* ]] && continue
|
||||
let index++
|
||||
done
|
||||
echo ${index}
|
||||
}
|
||||
|
||||
# Output the relative position of COMP_CWORD with option words ignored
|
||||
# Note: This logic is flawed when using option arguments (eg. -s blah).
|
||||
# Unfortunately there is no way to solve this except parsing every
|
||||
# known option for a given qvm-* command
|
||||
_get-first-word() {
|
||||
local i
|
||||
for ((i=1; i<=COMP_CWORD; i++)); do
|
||||
[[ ${COMP_WORDS[i]} == -* ]] && continue
|
||||
echo ${COMP_WORDS[i]}
|
||||
return 0
|
||||
done
|
||||
echo ""
|
||||
}
|
||||
|
||||
_complete-vms() {
|
||||
local vms
|
||||
local state="${1}"
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "${state}" in
|
||||
runtrans)
|
||||
vms="$(qvm-ls --no-spinner --raw-data --fields=NAME,STATE |
|
||||
grep -i "|\(running$\|transient$\)" | cut -d "|" -f1)"
|
||||
;;
|
||||
running|halted|paused)
|
||||
vms="$(qvm-ls --no-spinner --raw-list "--${state}")"
|
||||
;;
|
||||
"")
|
||||
vms="$(qvm-ls --no-spinner --raw-list)"
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W "${vms}" -- "${cur}") )
|
||||
return 0
|
||||
}
|
||||
|
||||
_complete-filenames() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
COMPREPLY=( $(compgen -f -- "$cur") )
|
||||
return 0
|
||||
}
|
||||
|
||||
_complete-vmprops() {
|
||||
local vm="${1}"
|
||||
local property="${2}"
|
||||
local props
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
if qvm-check "${vm}" > /dev/null 2>&1; then
|
||||
case "${property}" in
|
||||
prefs)
|
||||
props=$(qvm-prefs "${vm}" | cut -f1 -d " ")
|
||||
;;
|
||||
features)
|
||||
props=$(qvm-features "${vm}" | cut -f1 -d " ")
|
||||
;;
|
||||
tags)
|
||||
props=$(qvm-tags "${vm}" | cut -f1 -d " ")
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
COMPREPLY=( $(compgen -W "${props}" -- "${cur}") )
|
||||
}
|
||||
|
||||
|
||||
|
||||
## WRAPPERS and COMPLETE functions
|
||||
## ===============================
|
||||
##----- args: vm(all) -----
|
||||
_qvm-vms-all-all() {
|
||||
_complete-vms ""
|
||||
}
|
||||
complete -F _qvm-vms-all-all qvm-backup
|
||||
complete -F _qvm-vms-all-all qvm-ls
|
||||
|
||||
|
||||
#----- arg1: vm(all) -----
|
||||
_qvm-vms-all() {
|
||||
[ $(_get-cword ${COMP_CWORD}) = 1 ] && _complete-vms ""
|
||||
}
|
||||
complete -F _qvm-vms-all qvm-check
|
||||
complete -F _qvm-vms-all qvm-clone
|
||||
complete -F _qvm-vms-all qvm-firewall
|
||||
complete -F _qvm-vms-all qvm-remove
|
||||
complete -F _qvm-vms-all qvm-run
|
||||
complete -F _qvm-vms-all qvm-service
|
||||
complete -F _qvm-vms-all qvm-start-gui
|
||||
complete -F _qvm-vms-all qvm-usb
|
||||
complete -F _qvm-vms-all qvm-terminal # ~/.config/sh/shrc alias
|
||||
|
||||
|
||||
#----- arg1: vm(halted) -----
|
||||
_qvm-vms-halted() {
|
||||
[ $(_get-cword ${COMP_CWORD}) = 1 ] && _complete-vms "halted"
|
||||
}
|
||||
complete -F _qvm-vms-halted qvm-start
|
||||
|
||||
|
||||
#----- arg1: vm(paused) -----
|
||||
_qvm-vms-paused() {
|
||||
[ $(_get-cword ${COMP_CWORD}) = 1 ] && _complete-vms "paused"
|
||||
}
|
||||
complete -F _qvm-vms-paused qvm-unpause
|
||||
|
||||
|
||||
#----- arg1: vm(running) -----
|
||||
_qvm-vms-running() {
|
||||
[ $(_get-cword ${COMP_CWORD}) = 1 ] && _complete-vms "running"
|
||||
}
|
||||
complete -F _qvm-vms-running qvm-pause
|
||||
complete -F _qvm-vms-running qvm-shutdown
|
||||
|
||||
|
||||
#----- arg1: vm(running|transient) -----
|
||||
_qvm-vms-runtrans() {
|
||||
[ $(_get-cword ${COMP_CWORD}) = 1 ] && _complete-vms "runtrans"
|
||||
}
|
||||
complete -F _qvm-vms-runtrans qvm-kill
|
||||
|
||||
|
||||
#----- arg1: vm(all) ; arg(>=2): filenames -----
|
||||
_qvm-vms-all-filenames() {
|
||||
if [ "$(_get-cword ${COMP_CWORD})" -eq 1 ]; then
|
||||
_complete-vms ""
|
||||
else
|
||||
_complete-filenames
|
||||
fi
|
||||
}
|
||||
complete -F _qvm-vms-all-filenames qvm-copy-to-vm
|
||||
complete -F _qvm-vms-all-filenames qvm-move-to-vm
|
||||
|
||||
|
||||
#----- arg1: vm(all) ; arg2: vm preferences -----
|
||||
_qvm-vms-all-vmprefs() {
|
||||
case "$(_get-cword ${COMP_CWORD})" in
|
||||
1) _complete-vms "" ;;
|
||||
2) _complete-vmprops "$(_get-first-word)" "prefs";;
|
||||
esac
|
||||
}
|
||||
complete -F _qvm-vms-all-vmprefs qvm-prefs
|
||||
|
||||
|
||||
#----- arg1: vm(all) ; arg2: vm features -----
|
||||
_qvm-vms-all-vmfeatures() {
|
||||
case "$(_get-cword ${COMP_CWORD})" in
|
||||
1) _complete-vms "" ;;
|
||||
2) _complete-vmprops "$(_get-first-word)" "features";;
|
||||
esac
|
||||
}
|
||||
complete -F _qvm-vms-all-vmfeatures qvm-features
|
||||
|
||||
|
||||
#----- arg1: vm(all) ; arg2: vm tags -----
|
||||
_qvm-vms-all-vmtags() {
|
||||
case "$(_get-cword ${COMP_CWORD})" in
|
||||
1) _complete-vms "" ;;
|
||||
2) _complete-vmprops "$(_get-first-word)" "tags";;
|
||||
esac
|
||||
}
|
||||
complete -F _qvm-vms-all-vmtags qvm-tags
|
165
files/git/.config/git/config
Normal file
165
files/git/.config/git/config
Normal file
@ -0,0 +1,165 @@
|
||||
; Global Git Config
|
||||
; vim: ft=gitconfig
|
||||
|
||||
; SPDX-FileCopyrightText: 2010 - 2017 Tim Pope <https://tpo.pe>
|
||||
; SPDX-FileCopyrightText: 2016 The Qubes OS Project <https://www.qubes-os.org>
|
||||
; SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
[alias]
|
||||
; https://git.wiki.kernel.org/index.php/Aliases
|
||||
; https://github.com/schacon/gitscm/tree/master
|
||||
; Abbreviations
|
||||
co = checkout
|
||||
br = branch
|
||||
sw = switch
|
||||
st = status
|
||||
df = diff
|
||||
dc = diff --cached
|
||||
in = init
|
||||
inb = init --bare
|
||||
ci = commit
|
||||
cir = "!sh -c 'file=\"$(git rev-parse --git-dir)/COMMIT_EDITMSG\"; if test -s \"$file\"; then git commit -eF \"$file\" \"$@\"; else git commit \"$@\"; fi'" -
|
||||
lg = !sh -c 'git log --color \"$@\"|fmt -s -w 79|less -FRSX' _
|
||||
lgg = log --graph --pretty='format:%C(yellow)%h%C(reset) %C(magenta)%G?%C(reset) -%C(red)%d%C(reset) %C(reset)%s %C(green)(%cs)%C(reset) %C(blue)%aN%C(reset)'
|
||||
lfi = ls-files --exclude-standard -s -o -i
|
||||
lfu = ls-files --exclude-standard -o
|
||||
lfs = ls-files --exclude-standard -s -d -m
|
||||
gu = rev-parse --abbrev-ref --symbolic-full-name @{upstream}
|
||||
r = remote
|
||||
rl = remote -v
|
||||
ra = remote add
|
||||
rh = remote set-head
|
||||
rs = remote set-url
|
||||
rg = remote get-url
|
||||
ru = remote update
|
||||
rp = remote prune
|
||||
rnm = remote rename
|
||||
rmv = remote remove
|
||||
cf = config --file "$HOME/.gitconfig.local"
|
||||
; Helpers
|
||||
aliases = "!sh -c 'if test -n \"$1\"; then git config --get alias.$1; else git config --get-regexp \"alias.*\" | colrm 1 6 | sed \"s/[ ]/ = /\"; fi'" -
|
||||
; Patch with subject prefix containing repository name and output
|
||||
; directory has the child directories the repository and branch name.
|
||||
fp = "!sh -c '\
|
||||
git rev-parse --show-toplevel 2>&1 >/dev/null || return; \
|
||||
repo=\"$(basename $(git rev-parse --show-toplevel) | \
|
||||
sed s/^qubes-//)\"; \
|
||||
outdir=\"$(git config format.outputDirectory)\"; \
|
||||
ref=\"$(git symbolic-ref --short HEAD)\"; \
|
||||
git format-patch \
|
||||
--output-directory \"${outdir%*/}/${repo}/${ref}\" \
|
||||
--subject-prefix=\"PATCH ${repo}\" \"${@}\" \
|
||||
--diff-algorithm=histogram \
|
||||
'" -
|
||||
last = log -1 HEAD
|
||||
unstage = reset HEAD --
|
||||
undo = reset --soft HEAD^
|
||||
changes = diff --name-status -r
|
||||
diffstat = diff --stat -r
|
||||
who = shortlog -s --
|
||||
; whois <author name/e-mail>
|
||||
whois = log -i -1 --pretty='format:%an <%ae>' --author
|
||||
; whatis <commit name>
|
||||
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
|
||||
; See what commits have been created by the last command, eg: git pull
|
||||
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
|
||||
; List commits with the same the abbreviated hash.
|
||||
abbr = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:\"%H %ci %an %s%n\" $commit; done' -"
|
||||
; Solve merge conflicts
|
||||
edit-unmerged = "!f() { git diff --name-status --diff-filter=U | cut -f2 ; }; vim $(f)"
|
||||
add-unmerged = "!f() { git diff --name-status --diff-filter=U | cut -f2 ; }; git add $(f)"
|
||||
; List tips of branches that are not in the first arg.
|
||||
; git tips origin/master ^origin/alternate | git oneline
|
||||
oneline ="!_() { $(test $# -eq 0 && echo xargs -L1) git log --no-walk --decorate --oneline \"$@\"; }; _"
|
||||
tips = "!_() { t=$(git rev-list --no-merges --max-count=1 \"$@\"); if test -n \"$t\"; then echo $t; _ \"$@\" ^$t; fi; }; _"
|
||||
; Submodules.
|
||||
sub-update-recurse = !sh -c 'git checkout $1 && git submodule update --recursive'
|
||||
; Signed tags and commits
|
||||
stag = "!sh -c '\
|
||||
commit_id=\"$(git rev-parse --verify HEAD)\"; \
|
||||
tag_name=\"signed_tag_for_$(echo $commit_id | head -c 8)\"; \
|
||||
git tag -s \"$tag_name\" -m \"Tag for commit $commit_id\"; \
|
||||
echo \"$tag_name\"'"
|
||||
ptag = !git push $(git config branch.$(git branch --show-current).remote) $(git describe)
|
||||
vtag = !git verify-tag -v $(git describe)
|
||||
vheadcommit = !git verify-commit -v $(git rev-parse HEAD)
|
||||
vheadtag = !git verify-tag -v $(git tag --points-at=HEAD)
|
||||
[blame]
|
||||
coloring = repeatedLines
|
||||
[branch]
|
||||
autoSetupMerge = always
|
||||
autoSetupRebase = never
|
||||
[color]
|
||||
ui = auto
|
||||
diff = auto
|
||||
status = auto
|
||||
branch = auto
|
||||
interactive = auto
|
||||
grep = auto
|
||||
[commit]
|
||||
gpgSign = true
|
||||
verbose = true
|
||||
template = ~/.config/git/message
|
||||
[core]
|
||||
excludesFile = ~/.config/git/ignore
|
||||
pager = git-pager
|
||||
[delta]
|
||||
navigate = true
|
||||
light = false
|
||||
[diff]
|
||||
algorithm = histogram
|
||||
colorMoved = default
|
||||
[diff "image"]
|
||||
textConv = identify
|
||||
[format]
|
||||
coverLetter = auto
|
||||
coverFromDescription = auto
|
||||
thread = shallow
|
||||
signOff = true
|
||||
signatureFile = ~/.signature
|
||||
outputDirectory = /tmp/patch
|
||||
[gpg]
|
||||
program = gpgw
|
||||
minTrustLevel = fully
|
||||
[grep]
|
||||
extendedRegexp = true
|
||||
lineNumber = true
|
||||
[init]
|
||||
defaultbranch = main
|
||||
templatedir = ~/.config/git/template
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[mailinfo]
|
||||
scissors = true
|
||||
[merge]
|
||||
verifySignatures = true
|
||||
tool = vimdiff
|
||||
conflictStyle = diff3
|
||||
summary = true
|
||||
[pull]
|
||||
; Rebase does not verify signatures. Does not prevent manual rebase.
|
||||
rebase = false
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
default = upstream
|
||||
gpgSign = if-asked
|
||||
[rebase]
|
||||
autoSquash = true
|
||||
[sendemail]
|
||||
annotate = true
|
||||
multiEdit = true
|
||||
confirm = always
|
||||
thread = shallow
|
||||
chainReplyTo = true
|
||||
xmailer = false
|
||||
[tag]
|
||||
forceSignAnnotated = true
|
||||
gpgSign = true
|
||||
[user]
|
||||
hideTimezone = true
|
||||
[includeIf "gitdir:~/**/qubes-*/**"]
|
||||
path = ~/.config/git/config.d/qubes-devel
|
||||
[include]
|
||||
path = ~/.gitconfig.local
|
10
files/git/.config/git/config.d/qubes-devel
Normal file
10
files/git/.config/git/config.d/qubes-devel
Normal file
@ -0,0 +1,10 @@
|
||||
; SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
;
|
||||
; SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[format]
|
||||
to = qubes-devel@googlegroups.com
|
||||
[sendemail]
|
||||
to = qubes-devel@googlegroups.com
|
||||
|
||||
; vim: ft=gitconfig
|
26
files/git/.config/git/ignore
Normal file
26
files/git/.config/git/ignore
Normal file
@ -0,0 +1,26 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# Vim
|
||||
.*.sw?
|
||||
.*.tmp
|
||||
*~
|
||||
.#*
|
||||
[#]*#
|
||||
Session.vim
|
||||
/tags
|
||||
/doc/tags
|
||||
|
||||
## Debian build artifacts
|
||||
**/debhelper-build-stamp
|
||||
**/debian/files
|
||||
**/debian/*.debhelper*
|
||||
debian/*.postinst.debhelper
|
||||
debian/*.postrm.debhelper
|
||||
debian/*.preinst.debhelper
|
||||
debian/*.prerm.debhelper
|
||||
debian/*.substvars
|
||||
*-build-deps_*.deb
|
||||
*-build-deps_*.buildinfo
|
||||
*-build-deps_*.changes
|
3
files/git/.config/git/message
Normal file
3
files/git/.config/git/message
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
# Title: 50c, summary, imperative, start uppercase, end without period
|
||||
# Body: 72c, explain 'what' and 'why' vs. 'how', include task ID
|
10
files/git/.config/git/sample/gitconfig.local.sample
Normal file
10
files/git/.config/git/sample/gitconfig.local.sample
Normal file
@ -0,0 +1,10 @@
|
||||
; ~/.gitconfig.local
|
||||
; vim: ft=gitconfig
|
||||
; SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
;
|
||||
; SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[user]
|
||||
email = your-mail@your-provider.domain
|
||||
name = Your Name
|
||||
signingKey = 0x012345678ABC
|
49
files/git/.config/git/shell/.git-shell-lib
Executable file
49
files/git/.config/git/shell/.git-shell-lib
Executable file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
## Guarantee commands are run from $HOME
|
||||
cd
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
base="src"
|
||||
|
||||
## Regex: can contain "A-Za-z0-9_.-" but must not start or end with "_.-".
|
||||
# shellcheck disable=SC2034
|
||||
regex="^[A-Za-z0-9]+([A-Za-z0-9_.-]+[A-Za-z0-9]+)?$"
|
||||
|
||||
fail_invalid_name(){
|
||||
echo "Error: invalid value for key: $1" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
test_name(){
|
||||
key="$1"
|
||||
value="$2"
|
||||
if ! (echo "$value" | grep -E -q "${regex}"); then
|
||||
fail_invalid_name "$key"
|
||||
fi
|
||||
}
|
||||
|
||||
clean_repo_name(){
|
||||
case "${repo-}" in
|
||||
*.git) repo="";;
|
||||
*) repo="$repo.git";;
|
||||
esac
|
||||
}
|
||||
|
||||
is_bare(){
|
||||
repo="$1"
|
||||
if ! test -d "$repo"; then
|
||||
echo "Repository doesn't exist: $repo" >&2
|
||||
return 1
|
||||
fi
|
||||
if ! test "$(git -C "$repo" rev-parse --is-bare-repository)" = "true"; then
|
||||
echo "Repository is not bare: $repo" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
13
files/git/.config/git/shell/.no-interactive-login.sample
Executable file
13
files/git/.config/git/shell/.no-interactive-login.sample
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
echo "Hello there. You've successfully authenticated, but interactive
|
||||
shell access is not available. You have access to these repositories:" >&2
|
||||
"${0%/*}"/list >&2
|
||||
|
||||
exit 128
|
41
files/git/.config/git/shell/description
Executable file
41
files/git/.config/git/shell/description
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "${0%/*}"/.git-shell-lib
|
||||
|
||||
usage(){
|
||||
# shellcheck disable=2154
|
||||
echo "usage: ${0##*/} SECTION REPOSITORY [DESCRIPTION]
|
||||
note: prints the current description if none description is specified.:w
|
||||
regex: $regex" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
test -n "${2-}" || usage
|
||||
section="$1"
|
||||
test_name section "$section"
|
||||
repo="$2"
|
||||
test_name repo "$repo"
|
||||
clean_repo_name
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
is_bare "$base/$section/$repo"
|
||||
|
||||
description_file="$base/$section/$repo/description"
|
||||
|
||||
if test -z "${3-}"; then
|
||||
test -f "$description_file" || touch "$description_file"
|
||||
cat "$description_file"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
description="$(echo "$3" | cut -c 1-80)"
|
||||
test_name description "$description"
|
||||
|
||||
echo "$description" | tee "$description_file"
|
18
files/git/.config/git/shell/help
Executable file
18
files/git/.config/git/shell/help
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Credits: git/contrib/git-shell-commands/help
|
||||
|
||||
set -eu
|
||||
|
||||
printf "Available commands:\n"
|
||||
for f in "${0%/*}"/*; do
|
||||
test "${f##*/}" != "help" || continue
|
||||
test -f "$f" || continue
|
||||
test -x "$f" || continue
|
||||
usage="$("$f" --help 2>&1 | head -1 | sed "s/[Uu]sage: //")"
|
||||
printf ' %-15s\t\t%s\n' "${f##*/}" "${usage}"
|
||||
done
|
36
files/git/.config/git/shell/init
Executable file
36
files/git/.config/git/shell/init
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "${0%/*}"/.git-shell-lib
|
||||
|
||||
usage(){
|
||||
# shellcheck disable=2154
|
||||
echo "usage: ${0##*/} SECTION REPOSITORY [BRANCH]
|
||||
regex: $regex" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
test -n "${2-}" || usage
|
||||
section="$1"
|
||||
test_name section "$section"
|
||||
repo="$2"
|
||||
test_name repo "$repo"
|
||||
clean_repo_name
|
||||
branch=""
|
||||
test -n "${3-}" && branch="$3"
|
||||
|
||||
if test -n "${branch}"; then
|
||||
test_name branch "$branch"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
git init \
|
||||
--bare \
|
||||
${branch:+--initial-branch $branch} \
|
||||
-- "$base/$section/$repo"
|
47
files/git/.config/git/shell/list
Executable file
47
files/git/.config/git/shell/list
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2010 Greg Brockman <https://gregbrockman.com>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
## Credits: git/contrib/git-shell-commands/list
|
||||
|
||||
set -eu
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "${0%/*}"/.git-shell-lib
|
||||
|
||||
usage(){
|
||||
# shellcheck disable=2154
|
||||
echo "usage: ${0##*/} [SECTION]
|
||||
regex: $regex" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
section=""
|
||||
case "${1-}" in
|
||||
-h|--help) usage;;
|
||||
"") ;;
|
||||
*) section="$1"; test_name section "$section";;
|
||||
esac
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if ! test -d "$base/$section"; then
|
||||
echo "Section doesn't exist: $section" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
print_bare='
|
||||
test "$(git -C "$1" rev-parse --is-bare-repository)" = true && printf "%s\n" "${1}"
|
||||
'
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if test -n "$section"; then
|
||||
find "$base/$section" -maxdepth 1 -type d -name "*.git" \
|
||||
-exec sh -c "$print_bare" -- {} \; -prune 2>/dev/null || true
|
||||
else
|
||||
find "$base" -maxdepth 2 -type d -name "*.git" \
|
||||
-exec sh -c "$print_bare" -- {} \; -prune 2>/dev/null || true
|
||||
fi
|
16
files/git/.config/git/template/config
Normal file
16
files/git/.config/git/template/config
Normal file
@ -0,0 +1,16 @@
|
||||
; vim: ft=gitconfig
|
||||
; SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
;
|
||||
; SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[branch "main"]
|
||||
merge = refs/heads/main
|
||||
rebase = true
|
||||
remote = origin
|
||||
[core]
|
||||
bare = false
|
||||
fileMode = true
|
||||
logAllRefUpdates = true
|
||||
repositoryFormatVersion = 0
|
||||
[init]
|
||||
defaultBranch = main
|
204
files/git/.config/git/template/hooks/pre-receive.sample
Executable file
204
files/git/.config/git/template/hooks/pre-receive.sample
Executable file
@ -0,0 +1,204 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Force signature verification for everything that can be signed.
|
||||
## - signed pushes (if the server is configured to receive it);
|
||||
## - signed commits, unsigned commit can be validated by a signed tag pointing
|
||||
## to the commit;
|
||||
## - signed tags.
|
||||
##
|
||||
## Enable signed pushes client side:
|
||||
## [push]
|
||||
## gpgSign = if-asked
|
||||
##
|
||||
## Enable signed pushes server side:
|
||||
## [receive]
|
||||
## advertisePushOptions = true
|
||||
## certNonceSeed = "<random-string>"
|
||||
##
|
||||
## You may only want a set of keys to be able to sign the push and they might
|
||||
## different from the keys that are able to sign commit and tags.
|
||||
## Unfortunately git does not allow setting a different gpg home for this, you
|
||||
## have to point GIT_PUSH_CERT_PGPHOMEDIR to the desired keyring. It is
|
||||
## analogous to setting a GNUPGHOME but will take precedence over GNUPGHOME.
|
||||
##
|
||||
# shellcheck disable=SC2317
|
||||
set -eu
|
||||
|
||||
command -v git >/dev/null || exit 1
|
||||
|
||||
obj_rejected=""
|
||||
zero="$(git hash-object --stdin </dev/null | tr "0-9a-f" "0")"
|
||||
tmpdir="$(mktemp -d "${TMPDIR:-/tmp}/XXXXXX")"
|
||||
trap 'rm -f "$tmpdir"' HUP INT QUIT ABRT TERM EXIT
|
||||
|
||||
require_signed_push(){
|
||||
if test -z "${GIT_PUSH_CERT-}"; then
|
||||
echo "Pushes must be signed but client didn't sign it." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
check_signed_push
|
||||
}
|
||||
|
||||
check_signed_push(){
|
||||
if test -n "${GIT_PUSH_CERT_PGPHOMEDIR-}"; then
|
||||
check_signed_push_keyring
|
||||
return 0
|
||||
fi
|
||||
|
||||
if test "${GIT_PUSH_CERT_STATUS}" = "G"; then
|
||||
true "Certificate verification succeeded with key: ${GIT_PUSH_CERT_KEY}"
|
||||
else
|
||||
echo "Certificate verification failed with status: ${GIT_PUSH_CERT_STATUS}" >&2
|
||||
echo "Certificate key: ${GIT_PUSH_CERT_KEY}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test "${GIT_PUSH_CERT_NONCE_STATUS}" = "OK"; then
|
||||
true "Certificate nonce verification succeeded with nonce: ${GIT_PUSH_CERT_NONCE}"
|
||||
else
|
||||
echo "Certificate nonce verification failed with status: ${GIT_PUSH_CERT_NONCE_STATUS}" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
check_signed_push_keyring(){
|
||||
true "Using keyring to verify push certificate: ${GIT_PUSH_CERT_PGPHOMEDIR}"
|
||||
|
||||
gpg="$(git config --get gpg.program || echo "gpg")"
|
||||
cert="$(git cat-file blob "${GIT_PUSH_CERT}")"
|
||||
begin_sig="-----BEGIN PGP SIGNATURE-----"
|
||||
|
||||
cert_msg="$tmpdir"/cert.msg
|
||||
cert_sig="$tmpdir"/cert.sig
|
||||
|
||||
in_sig=0
|
||||
echo "$cert" | while read -r line; do
|
||||
if test "$in_sig" = "1" || test "$line" = "$begin_sig"; then
|
||||
in_sig=1
|
||||
echo "$line" | tee -a "$cert_sig"
|
||||
elif test "$line" != "$begin_sig"; then
|
||||
echo "$line" | tee -a "$cert_msg"
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
gpg_out="$("$gpg" --status-fd=1 --no-default-keyring \
|
||||
--homedir "${GIT_PUSH_CERT_PGPHOMEDIR}" \
|
||||
--verify "$cert_sig" "$cert_msg" 2>&1)"
|
||||
gpg_ec="$?"
|
||||
gpg_sig="$(echo "$gpg_out" | awk '/ GOODSIG /{print $3}')"
|
||||
if test "$gpg_ec" = "0"; then
|
||||
true "Certificate verification succeeded with key: $gpg_sig"
|
||||
else
|
||||
echo "Certificate verification failed. Verification output:" >&2
|
||||
echo "$gpg_out" >&2
|
||||
fi
|
||||
rm -rf "$tmpdir"
|
||||
|
||||
if test "${GIT_PUSH_CERT_NONCE_STATUS}" = "OK"; then
|
||||
true "Certificate nonce verification succeeded with nonce: ${GIT_PUSH_CERT_NONCE}"
|
||||
else
|
||||
echo "Certificate nonce verification failed with status: ${GIT_PUSH_CERT_NONCE_STATUS}" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
## Force signed pushes if receive.certNonceSeed is set.
|
||||
if git config --get receive.certNonceSeed >/dev/null 2>&1; then
|
||||
require_signed_push
|
||||
fi
|
||||
|
||||
while read -r oldrev newrev ref; do
|
||||
true "$oldrev $newrev $ref"
|
||||
test "$newrev" = "$zero" && continue
|
||||
|
||||
if test "$oldrev" = "$zero"; then
|
||||
objects="$(git rev-list "$newrev")"
|
||||
else
|
||||
objects="$(git rev-list "$oldrev..$newrev")"
|
||||
fi
|
||||
|
||||
obj_type="$(git cat-file -t "$newrev")"
|
||||
if test "$obj_type" = "tag"; then
|
||||
if git verify-tag "$newrev" >/dev/null 2>&1; then
|
||||
true "Tag verification succeeded for tag: $newrev"
|
||||
else
|
||||
obj_rejected="${obj_rejected-} $newrev "
|
||||
continue
|
||||
fi
|
||||
commit_tag="$(git rev-list -n1 "$newrev")"
|
||||
obj_rejected="$(echo "$obj_rejected" | sed "s/ $commit_tag //")"
|
||||
echo "Commit verification done by tag: $commit_tag $newrev" >&2
|
||||
continue
|
||||
fi
|
||||
|
||||
for obj in $objects; do
|
||||
|
||||
if git verify-commit "$obj" >/dev/null 2>&1; then
|
||||
true "Commit verification succeeded commit: $obj"
|
||||
continue
|
||||
else
|
||||
echo "No valid signature in commit: $obj" >&2
|
||||
obj_rejected="${obj_rejected-} $obj "
|
||||
fi
|
||||
|
||||
done
|
||||
done
|
||||
|
||||
test -n "$obj_rejected" || exit 0
|
||||
|
||||
obj_rejected="$(echo "$obj_rejected" | tr -s " " | sed -e "s/^ //" -e "s/ $//")"
|
||||
echo "Couldn't verify objects: $obj_rejected" >&2
|
||||
exit 1
|
||||
|
||||
## Force signed pushes if receive.certNonceSeed is set.
|
||||
if git config --get receive.certNonceSeed >/dev/null 2>&1; then
|
||||
require_signed_push
|
||||
fi
|
||||
|
||||
while read -r oldrev newrev ref; do
|
||||
true "$oldrev $newrev $ref"
|
||||
test "$newrev" = "$zero" && continue
|
||||
|
||||
if test "$oldrev" = "$zero"; then
|
||||
objects="$(git rev-list "$newrev")"
|
||||
else
|
||||
objects="$(git rev-list "$oldrev..$newrev")"
|
||||
fi
|
||||
|
||||
obj_type="$(git cat-file -t "$newrev")"
|
||||
if test "$obj_type" = "tag"; then
|
||||
if git verify-tag "$newrev" >/dev/null 2>&1; then
|
||||
true "Tag verification succeeded for tag: $newrev"
|
||||
else
|
||||
obj_rejected="${obj_rejected-} $newrev "
|
||||
continue
|
||||
fi
|
||||
commit_tag="$(git rev-list -n1 "$newrev")"
|
||||
obj_rejected="$(echo "$obj_rejected" | sed "s/ $commit_tag //")"
|
||||
echo "Commit verification done by tag: $commit_tag $newrev" >&2
|
||||
continue
|
||||
fi
|
||||
|
||||
for obj in $objects; do
|
||||
if git verify-commit "$obj" >/dev/null 2>&1; then
|
||||
true "Commit verification succeeded commit: $obj"
|
||||
continue
|
||||
else
|
||||
echo "No valid signature in commit: $obj" >&2
|
||||
obj_rejected="${obj_rejected-} $obj "
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
test -n "$obj_rejected" || exit 0
|
||||
|
||||
obj_rejected="$(echo "$obj_rejected" | tr -s " " | sed -e "s/^ //" -e "s/ $//")"
|
||||
echo "Couldn't verify objects: $obj_rejected" >&2
|
||||
exit 1
|
39
files/git/.config/git/template/hooks/prepare-commit-msg
Executable file
39
files/git/.config/git/template/hooks/prepare-commit-msg
Executable file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Removes the default message "Please enter the commit message".
|
||||
## Changes empty line between the commit.template and commit.status or
|
||||
## commit.verbose line to be a commented line.
|
||||
## Fix the init.template comment in case core.commentChar is set.
|
||||
set -eu
|
||||
|
||||
file="$1"
|
||||
#commit_source="$2"
|
||||
#sha1="$3"
|
||||
|
||||
char="$(git config --get core.commentChar || echo "#")"
|
||||
template="$(git config --get commit.template | sed "s|^~/|$HOME/|")"
|
||||
|
||||
if test "$char" = "auto"; then
|
||||
## Try to skip the init.template comment char by getting the last match, as
|
||||
## the template will be placed at the beginning of the file.
|
||||
char="$(grep -E "^(#|;|@|!|$|%|^|&|\\||:) " "$file" | cut -c 1 | tail -n 1)"
|
||||
fi
|
||||
|
||||
## Remove the default instructional message and its following empty line.
|
||||
sed -i'' \
|
||||
-e "/^. Please enter the commit message for your changes. Lines starting$/d" \
|
||||
-e "/^. with '.' will be ignored, and an empty message aborts the commit.$/ {
|
||||
N; d; }" \
|
||||
"$file"
|
||||
|
||||
## Replace init.template comment char to the core.commentChar line per line.
|
||||
if test -f "$template"; then
|
||||
while read -r line; do
|
||||
mod_line="$(echo "$line" | sed "s/^. /${char} /")"
|
||||
sed -i'' "s/^${line}$/${mod_line}/" "$file"
|
||||
done < "$template"
|
||||
fi
|
75
files/git/.config/tig/config
Normal file
75
files/git/.config/tig/config
Normal file
@ -0,0 +1,75 @@
|
||||
# SPDX-FileCopyrightText: 2020 Jonas Fonseca <jonas.fonseca@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Credits: https://github.com/jonas/tig/blob/master/contrib/vim.tigrc
|
||||
|
||||
bind generic h scroll-left
|
||||
bind generic j move-down
|
||||
bind generic k move-up
|
||||
bind generic l scroll-right
|
||||
|
||||
bind generic g none
|
||||
bind generic gg move-first-line
|
||||
bind generic gj next
|
||||
bind generic gk previous
|
||||
bind generic gp parent
|
||||
bind generic gP back
|
||||
bind generic gn view-next
|
||||
|
||||
bind main G move-last-line
|
||||
bind generic G move-last-line
|
||||
|
||||
bind generic <C-f> move-page-down
|
||||
bind generic <C-b> move-page-up
|
||||
|
||||
bind generic v none
|
||||
bind generic vm view-main
|
||||
bind generic vd view-diff
|
||||
bind generic vl view-log
|
||||
bind generic vt view-tree
|
||||
bind generic vb view-blob
|
||||
bind generic vx view-blame
|
||||
bind generic vr view-refs
|
||||
bind generic vs view-status
|
||||
bind generic vu view-stage
|
||||
bind generic vy view-stash
|
||||
bind generic vg view-grep
|
||||
bind generic vp view-pager
|
||||
bind generic vh view-help
|
||||
|
||||
bind generic o none
|
||||
bind generic oo :toggle sort-order
|
||||
bind generic os :toggle sort-field
|
||||
bind generic on :toggle line-number
|
||||
bind generic od :toggle date
|
||||
bind generic oa :toggle author
|
||||
bind generic og :toggle line-graphics
|
||||
bind generic of :toggle file-name
|
||||
bind generic op :toggle ignore-space
|
||||
bind generic oi :toggle id
|
||||
bind generic ot :toggle commit-title-overflow
|
||||
bind generic oF :toggle file-filter
|
||||
bind generic or :toggle commit-title-refs
|
||||
|
||||
bind generic @ none
|
||||
bind generic @j :/^@@
|
||||
bind generic @k :?^@@
|
||||
bind generic @- :toggle diff-context -1
|
||||
bind generic @+ :toggle diff-context +1
|
||||
|
||||
bind status u none
|
||||
bind stage u none
|
||||
bind generic uu status-update
|
||||
bind generic ur status-revert
|
||||
bind generic um status-merge
|
||||
bind generic ul stage-update-line
|
||||
# bind generic up stage-update-parte
|
||||
bind generic us stage-split-chunk
|
||||
|
||||
bind generic c none
|
||||
bind generic cc !git commit
|
||||
bind generic ca !?@git commit --amend --no-edit
|
||||
|
||||
bind generic K view-help
|
||||
bind generic <C-w><C-w> view-next
|
47
files/git/.local/bin/git-client-setup
Executable file
47
files/git/.local/bin/git-client-setup
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Setup git client on new machine on a local/separate git configuration.
|
||||
set -eu
|
||||
|
||||
gitconfig_file="$HOME/.gitconfig.local"
|
||||
signature_file="$HOME/.signature"
|
||||
vim_modeline="vim: ft=gitconfig"
|
||||
|
||||
usage(){
|
||||
printf '%s\n' "usage: ${0##*/} USER EMAIL SIGNINGKEY" >&2
|
||||
}
|
||||
|
||||
if ! command -v git >/dev/null; then
|
||||
printf '%s\n' "Missing dependency: git" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "${3-}"; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
user="$1"
|
||||
email="$2"
|
||||
signingkey="$3"
|
||||
|
||||
set_git_config(){
|
||||
git config --file "$gitconfig_file" "$1" "$2"
|
||||
}
|
||||
|
||||
set_git_config user.name "$user"
|
||||
set_git_config user.email "$email"
|
||||
set_git_config user.signingKey "$signingkey"
|
||||
|
||||
if test -s "$signature_file"; then
|
||||
set_git_config format.signatureFile "$signature_file"
|
||||
else
|
||||
set_git_config format.signature "$user"
|
||||
fi
|
||||
|
||||
grep -E "^;*\s+(vim:.*(\s+|:)|vim:(\s*))(ft|filetype)=gitconfig((\s+|:).*|$)" \
|
||||
-q "$gitconfig_file" || sed -i'' "1i; $vim_modeline" "$gitconfig_file"
|
13
files/git/.local/bin/git-pager
Executable file
13
files/git/.local/bin/git-pager
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
if command -v delta >/dev/null; then
|
||||
exec delta "$@"
|
||||
else
|
||||
exec less -RS "$@"
|
||||
fi
|
45
files/git/.local/bin/git-server-setup
Executable file
45
files/git/.local/bin/git-server-setup
Executable file
@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Setup git server.
|
||||
set -eu
|
||||
|
||||
if ! test "$(id -u)" = "0"; then
|
||||
echo "This program requires root." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v git >/dev/null; then
|
||||
printf '%s\n' "Missing dependency: git" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v git-shell >/dev/null; then
|
||||
printf '%s\n' "Missing dependency: git-shell" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git_user="git"
|
||||
git_home="/var/git"
|
||||
git_shell="$(command -v git-shell)"
|
||||
|
||||
useradd -m "$git_user" -d "$git_home" -s "$git_shell"
|
||||
mkdir -p "$git_home/src"
|
||||
|
||||
mkdir -p "$git_home/.ssh"
|
||||
chmod 0700 "$git_home/.ssh"
|
||||
touch "$git_home/.ssh/authorized_keys"
|
||||
chmod 0600 "$git_home/.ssh/authorized_keys"
|
||||
|
||||
mkdir -p "$git_home/git-shell-commands"
|
||||
cp -r "$git_home/.config/git/shell"/* "$git_home/git-shell-commands"
|
||||
chmod -R 0755 "$git_home/git-shell-commands"
|
||||
|
||||
git config --system receive.updateServerInfo true
|
||||
git config --system receive.advertisePushOptions true
|
||||
nonce="$(head /dev/urandom | LC_ALL=C tr -dc 'A-Za-z0-9!#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 256)"
|
||||
git config --system receive.certNonceSeed "$nonce"
|
||||
|
||||
chown -R "$git_user":"$git_user" "$git_home"
|
19
files/gtk/.config/gtk-2.0/gtkrc-2.0
Normal file
19
files/gtk/.config/gtk-2.0/gtkrc-2.0
Normal file
@ -0,0 +1,19 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
gtk-theme-name=Adwaita-Dark
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name="Sans 10"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_TEXT
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-cursor-theme-name=Adwaita
|
20
files/gtk/.config/gtk-3.0/settings.ini
Normal file
20
files/gtk/.config/gtk-3.0/settings.ini
Normal file
@ -0,0 +1,20 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[Settings]
|
||||
gtk-theme-name=Adwaita-Dark
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name=Sans 10
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_TEXT
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-cursor-theme-name=Adwaita
|
16
files/gtk/.config/gtk-4.0/settings.ini
Normal file
16
files/gtk/.config/gtk-4.0/settings.ini
Normal file
@ -0,0 +1,16 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[Settings]
|
||||
gtk-theme-name=Adwaita-Dark
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name=Sans 10
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-cursor-theme-name=Adwaita
|
1
files/gtk/.gtkrc-2.0
Symbolic link
1
files/gtk/.gtkrc-2.0
Symbolic link
@ -0,0 +1 @@
|
||||
.config/gtk-2.0/gtkrc-2.0
|
86
files/mutt/.config/mutt/conf.d/bindings.muttrc
Normal file
86
files/mutt/.config/mutt/conf.d/bindings.muttrc
Normal file
@ -0,0 +1,86 @@
|
||||
# SPDX-FileCopyrightText: 2019-2023 Luke Smith <luke@lukesmith.xyz>
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/LukeSmithxyz/mutt-wizard/blob/master/share/mutt-wizard.muttrc
|
||||
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index \Cf noop
|
||||
bind index,pager M noop
|
||||
bind index,pager C noop
|
||||
|
||||
## General Vi rebindings
|
||||
bind index gg first-entry
|
||||
bind index j next-entry
|
||||
bind index k previous-entry
|
||||
bind attach <return> view-mailcap
|
||||
bind attach l view-mailcap
|
||||
bind editor <space> noop
|
||||
bind index G last-entry
|
||||
bind pager,attach h exit
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
bind pager l view-attachments
|
||||
bind index D delete-message
|
||||
bind index U undelete-message
|
||||
bind index L limit
|
||||
bind index h noop
|
||||
bind index l display-message
|
||||
bind index,query <space> tag-entry
|
||||
#bind browser h goto-parent
|
||||
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
||||
#bind index,pager H view-raw-message # neomutt only
|
||||
bind browser l select-entry
|
||||
bind browser gg top-page
|
||||
bind browser G bottom-page
|
||||
bind pager gg top
|
||||
bind pager G bottom
|
||||
bind index,pager,browser d half-down
|
||||
bind index,pager,browser u half-up
|
||||
bind index,pager S sync-mailbox
|
||||
bind index,pager R group-reply
|
||||
bind index,pager W group-chat-reply
|
||||
bind index \031 previous-undeleted # Mouse wheel
|
||||
bind index \005 next-undeleted # Mouse wheel
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
bind editor <Tab> complete-query
|
||||
|
||||
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
|
||||
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
|
||||
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
|
||||
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
|
||||
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
|
||||
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
|
||||
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
|
||||
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
|
||||
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
|
||||
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
|
||||
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
|
||||
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
|
||||
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
||||
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
||||
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
|
||||
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
|
||||
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
|
||||
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
|
||||
|
||||
## NotMuch
|
||||
## https://man.archlinux.org/man/notmuch-mutt.1.en#INTEGRATION_WITH_MUTT
|
||||
macro index <F8> \
|
||||
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
||||
<shell-escape>notmuch-mutt -r --prompt search<enter>\
|
||||
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
|
||||
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
||||
"notmuch: search mail"
|
||||
|
||||
macro index <F9> \
|
||||
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
||||
<pipe-message>/usr/bin/notmuch-mutt -r thread<enter> \
|
||||
<change-folder-readonly>/home/user/.cache/notmuch/mutt/results<enter> \
|
||||
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
||||
"notmuch: reconstruct thread"
|
||||
|
||||
## vim: ft=muttrc
|
116
files/mutt/.config/mutt/conf.d/colors.muttrc
Normal file
116
files/mutt/.config/mutt/conf.d/colors.muttrc
Normal file
@ -0,0 +1,116 @@
|
||||
# SPDX-FileCopyrightText: 2019-2023 Luke Smith <luke@lukesmith.xyz>
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/LukeSmithxyz/mutt-wizard/blob/master/share/mutt-wizard.muttrc
|
||||
|
||||
color body green default "\`[^\`]*\`" # Green text between ` and `
|
||||
color body brightblue default "^# \.*" # Headings as bold blue
|
||||
color body brightcyan default "^## \.*" # Subheadings as bold cyan
|
||||
color body brightgreen default "^### \.*" # Subsubheadings as bold green
|
||||
color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
|
||||
color body brightcyan default "[;:][-o][)/(|]" # emoticons
|
||||
color body brightcyan default "[;:][)(|]" # emoticons
|
||||
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
|
||||
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
|
||||
color body red default "(BAD signature)"
|
||||
color body cyan default "(Good signature)"
|
||||
color body brightblack default "^gpg: Good signature .*"
|
||||
color body brightyellow default "^gpg: "
|
||||
color body brightyellow red "^gpg: BAD signature from.*"
|
||||
mono body bold "^gpg: Good signature"
|
||||
mono body bold "^gpg: BAD signature from.*"
|
||||
|
||||
## /usr/share/doc/mutt/examples/colors.angdraug
|
||||
## This color scheme aims to highlight as much useful information as
|
||||
## possible without spoiling user's visual experience by irritating
|
||||
## contrasts. Optimized for dark or transparent background.
|
||||
## --Dmitry Borodaenko <angdraug@mail.ru>
|
||||
|
||||
## Override defaults, make transparency work
|
||||
color normal white default
|
||||
color attachment green default
|
||||
color hdrdefault cyan default
|
||||
color indicator black cyan
|
||||
color markers brightred default
|
||||
color quoted green default
|
||||
color status brightwhite blue
|
||||
color tilde brightblue default
|
||||
color tree red default
|
||||
|
||||
## Paint different quote levels
|
||||
color quoted green default
|
||||
color quoted1 cyan default
|
||||
color quoted2 yellow default
|
||||
color quoted3 red default
|
||||
|
||||
color body brightblue default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # email
|
||||
color body brightblue default "(http|ftp)://[\-\.\,/+=&%~_:?\#a-zA-Z0-9]+" # URL
|
||||
color body brightgreen default "(^| |[-.[:alnum:]]+:+)~?\(/[-_.'[:alnum:]]+\)+/?" # Unix file path
|
||||
color body brightgreen default "(^| +)[[:alpha:]]:[-_.[:alnum:]\]+" # DOS file path
|
||||
color body brightmagenta default "(^|[ '\"]+)\\$[[:alpha:]][-_[:alpha:]]+" # variable
|
||||
color body brightred default "(^| )[*_]+[-&[:alnum:]]+[*_]( |$)" # bold/underline
|
||||
color body yellow default "(^| )[;:8ö][-^o]?[)>(|/\\]+" # smiley
|
||||
color body red default "[!?]{3,}" # exclamation
|
||||
color body green default "^ *[-+*o] +" # list item
|
||||
|
||||
## Date formats
|
||||
color body cyan default "[0-9]{1,2}:[0-9]{2}(:[0-9]{2})?( ?(AM|PM|am|pm))?( +[+-][0-9]{4})?"
|
||||
color body cyan default "(\(19|20\)?[0-9]{2}/[01]?[0-9]/[0123]?[0-9]|[0123]?[0-9][/.][01]?[0-9][/.]\(19|20\)?[0-9]{2})(( at)? +[0-9]{1,2}:[0-9]{2}(:[0-9]{2})?( ?(AM|PM|am|pm))?( +[+-][0-9]{4})?)?"
|
||||
color body cyan default "((Sun(day)?|Mon(day)?|Tue(sday)?|Wed(nesday)?|Thu(sday)?|Fri(day)?|Sat(urday)?),? +)?(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|June?|July?|Aug(ust)?|Sep(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?)[ .]+[0-9]{1,2}(st|nd|rd|th)?,?( +(19|20)[0-9]{2}(,?( at)? [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?( ?(AM|PM|am|pm))?( +[+-][0-9]{4})?)?)?"
|
||||
color body cyan default "((Sun(day)?|Mon(day)?|Tue(sday)?|Wed(nesday)?|Thu(sday)?|Fri(day)?|Sat(urday)?),? +)?[0-9]{1,2}(st|nd|rd|th)?[ .]+(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|June?|July?|Aug(ust)?|Sep(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?),?( +(19|20)?[0-9]{2})?(( at)? [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?( ?(AM|PM|am|pm))?( +[+-][0-9]{4})?)?"
|
||||
|
||||
color header brightgreen default ^From:
|
||||
color header brightcyan default ^To:
|
||||
color header brightcyan default ^Reply-To:
|
||||
color header brightcyan default ^Cc:
|
||||
color header brightblue default ^Subject:
|
||||
|
||||
color header brightcyan default "^newsgroups: "
|
||||
color header yellow default "^Delivered-To: "
|
||||
color header green default "^sender: "
|
||||
color header green default "^organi[sz]ation: "
|
||||
color header green default "x-editor: "
|
||||
color header green default "(x-mailer|user-agent): "
|
||||
color header green default "X-Operating-System: "
|
||||
color header green default "X-MimeOLE: "
|
||||
color header green default "X-Accept-Language: "
|
||||
color header red default "^message:"
|
||||
color header red default "^in-reply-to: "
|
||||
color header red default "^references: "
|
||||
color header cyan default "^followup-to: "
|
||||
color header cyan default "^mail-followup-to: "
|
||||
color header cyan default "^reply-to: "
|
||||
color header magenta default "MIME-Version: "
|
||||
color header magenta default "Content-Type: "
|
||||
color header magenta default "Content-Transfer-Encoding: "
|
||||
color header magenta default "Content-Disposition: "
|
||||
color header magenta default "Content-Encoding: "
|
||||
color header magenta default "Content-Language: "
|
||||
|
||||
## Personal colors
|
||||
color index brightwhite default '~A' # all
|
||||
color index red default '~D' # deleted
|
||||
color index brightred default '~F' # flagged
|
||||
color index green default '~N' # new
|
||||
color index yellow default '~T' # tagged
|
||||
color index green default '~U' # unread
|
||||
color index blue default '~V' # crypt verified
|
||||
|
||||
## Threads
|
||||
#color index brightyellow default "~h 'References: +<.+>'"
|
||||
#color index yellow default "~h 'References: +<.+> +<.+>'"
|
||||
#color index brightred default "~h 'References: +<.+> +<.+> +<.+>'"
|
||||
#color index red default "~h 'References: +<.+> +<.+> +<.+> +<.+>'"
|
||||
#color index blue default "~h 'References: +<.+> +<.+> +<.+> +<.+> +<.+>'"
|
||||
#color index green default "~h 'References: +<.+> +<.+> +<.+> +<.+> +<.+> +<.+>'"
|
||||
|
||||
## spam
|
||||
color index magenta default "\(Resent-\)?Message-Id: <>"
|
||||
color index magenta default "\(Resent-\)?Message-Id: '<.* .*>'"
|
||||
color index magenta default "\(Resent-\)?Message-Id: localhost"
|
||||
color index magenta default "! \(Resent-\)?Message-Id: @"
|
||||
color index magenta default '~C Undisclosed.*Recipients'
|
||||
|
||||
## vim: ft=muttrc
|
54
files/mutt/.config/mutt/conf.d/mailbox.muttrc
Normal file
54
files/mutt/.config/mutt/conf.d/mailbox.muttrc
Normal file
@ -0,0 +1,54 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Misc
|
||||
set mbox_type = Maildir
|
||||
set quit = ask-yes
|
||||
set sleep_time = 0
|
||||
set wait_key = no
|
||||
set nobeep
|
||||
set sort_alias = alias
|
||||
set followup_to = yes
|
||||
set honor_followup_to = yes
|
||||
|
||||
## Reading
|
||||
set mark_old = no
|
||||
set date_format = "%y-%m-%d %T"
|
||||
set index_format = "%4C %Z %D %-8.8n %-12.12L (%4l) %s"
|
||||
set sort = "reverse-threads"
|
||||
set sort_aux = "last-date-received"
|
||||
set content_type = "text/plain"
|
||||
set charset = "utf-8"
|
||||
set pager_index_lines = 5
|
||||
set my_editor = "vim -c 'setf mail' "
|
||||
set editor = "$my_editor "
|
||||
|
||||
## Composing
|
||||
## Option 'use_envelope_from' does not work reliably, force Message-ID format.
|
||||
## To remove hostname message.
|
||||
set message_id_format = "<%z@%r%r>"
|
||||
set fast_reply = yes
|
||||
set edit_headers = yes
|
||||
set copy = yes
|
||||
set send_charset = "utf-8"
|
||||
set abort_nosubject = ask-yes
|
||||
set sig_dashes = yes
|
||||
set signature = "~/.signature"
|
||||
set alias_file = "~/.muttrc-aliases.local"
|
||||
set fcc_attach
|
||||
set reverse_name
|
||||
set include
|
||||
set mime_forward = no
|
||||
set forward_format = "Fwd: %s"
|
||||
set forward_quote
|
||||
|
||||
## Cache
|
||||
set mbox = "~/.cache/mutt/archived"
|
||||
set record = "~/.cache/mutt/sent"
|
||||
set postponed = "~/.cache/mutt/postponed"
|
||||
set header_cache = "~/.cache/mutt/headers"
|
||||
set message_cachedir = "~/.cache/mutt/messages"
|
||||
set certificate_file = "~/.cache/mutt/certificates"
|
||||
|
||||
## vim: ft=muttrc
|
41
files/mutt/.config/mutt/conf.d/pgp.muttrc
Normal file
41
files/mutt/.config/mutt/conf.d/pgp.muttrc
Normal file
@ -0,0 +1,41 @@
|
||||
# SPDX-FileCopyrightText: 2020 Wojtek Porczyk <https://woju.eu>
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/Qubes-Community/Contents/blob/master/docs/configuration/mutt.md
|
||||
|
||||
## Hooks
|
||||
send-hook "~A" "set pgp_autoinline=no"
|
||||
send-hook "~t @invisiblethingslab\\.com" "set pgp_autoinline=yes crypt_autoencrypt=yes"
|
||||
send-hook "~t @googlegroups\\.com" "set pgp_autoinline=yes crypt_autoencrypt=no"
|
||||
send-hook "~t $from" "set pgp_autoinline=yes"
|
||||
|
||||
## General Encryption and Signature
|
||||
set crypt_autopgp = yes # Use PGP for encryption
|
||||
set crypt_autoencrypt = no # Encryption is user preference
|
||||
set crypt_autosign = yes # Sign all messages
|
||||
set crypt_replyencrypt = yes # Encrypt replies to encrypted messages
|
||||
set crypt_replysignencrypted = yes # Sign replies to encrypted messages
|
||||
set crypt_verify_sig = yes # Verify the opened message signature
|
||||
set crypt_use_gpgme = no # GPGME interferes with split-gpg
|
||||
|
||||
## PGP
|
||||
set pgp_autoinline = no # Inline is user preference
|
||||
set pgp_use_gpg_agent = yes # Avoid prompting for a passphrase
|
||||
set pgp_timeout = 600 # Seconds to linger passphrase in mememory
|
||||
set pgp_good_sign = "^\\[GNUPG:\\] GOODSIG"
|
||||
set pgp_list_pubring_command = "qubes-gpg-client-wrapper --no-verbose --batch --quiet --with-colons --list-keys %r"
|
||||
set pgp_list_secring_command = "qubes-gpg-client-wrapper --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
|
||||
set pgp_decode_command = "qubes-gpg-client-wrapper -d --status-fd=2 --batch %f"
|
||||
set pgp_decrypt_command = "$pgp_decode_command"
|
||||
set pgp_verify_command = "qubes-gpg-client-wrapper --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
|
||||
set pgp_sign_command = "qubes-gpg-client-wrapper --batch --armor --detach-sign --textmode %?a?-u %a? %f"
|
||||
set pgp_clearsign_command = "qubes-gpg-client-wrapper --batch --armor --textmode --clearsign %?a?-u %a? %f"
|
||||
set pgp_encrypt_only_command = "/usr/lib/mutt/pgpewrap qubes-gpg-client-wrapper --batch --textmode --armor --always-trust %?a?--encrypt-to %a? --encrypt -- -r %r -- %f | sed -e '2iCharset: UTF-8'"
|
||||
set pgp_encrypt_sign_command = "/usr/lib/mutt/pgpewrap qubes-gpg-client-wrapper --batch --textmode --armor --always-trust %?a?--encrypt-to %a? --encrypt --sign %?a?-u %a? -- -r %r -- %f | sed -e '2iCharset: UTF-8'"
|
||||
set pgp_import_command = "qubes-gpg-import-key %f; gpg --no-verbose --import %f"
|
||||
set pgp_export_command = "qubes-gpg-client-wrapper --no-verbose --export --armor %r"
|
||||
set pgp_verify_key_command = "gpg --no-verbose --batch --fingerprint --check-sigs %r"
|
||||
|
||||
## vim: ft=muttrc
|
36
files/mutt/.config/mutt/conf.d/server.muttrc
Normal file
36
files/mutt/.config/mutt/conf.d/server.muttrc
Normal file
@ -0,0 +1,36 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## IMAP
|
||||
set folder = "imaps://imap.$my_server"
|
||||
set spoolfile = "+INBOX"
|
||||
set imap_user = "$my_user"
|
||||
set imap_pass = "$my_pass"
|
||||
set imap_check_subscribed
|
||||
set mail_check = 120
|
||||
|
||||
## POP3
|
||||
set pop_host = "pops://pop.$my_server"
|
||||
set pop_user = "$my_user"
|
||||
set pop_pass = "$my_pass"
|
||||
set pop_checkinterval = 120
|
||||
set pop_delete = ask-no
|
||||
set pop_last = yes
|
||||
|
||||
## SMTP
|
||||
set smtp_url = "smtps://$my_user@smtp.$my_server"
|
||||
## GMail duplicates sent mails if the 'record' option is set.
|
||||
#set record = "+Sent"
|
||||
unset record
|
||||
set smtp_pass = "$my_pass"
|
||||
set realname = "$my_name"
|
||||
set from = "$my_user@$my_server"
|
||||
set use_from = yes
|
||||
set ssl_starttls = yes
|
||||
set ssl_force_tls = yes
|
||||
|
||||
## Alias
|
||||
alias me $realname <$from>
|
||||
|
||||
## vim: ft=muttrc
|
15
files/mutt/.config/mutt/muttrc
Normal file
15
files/mutt/.config/mutt/muttrc
Normal file
@ -0,0 +1,15 @@
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Source configuration
|
||||
cd ~/.config/mutt
|
||||
source ~/.muttrc-credentials.local
|
||||
source conf.d/server.muttrc
|
||||
source conf.d/mailbox.muttrc
|
||||
source conf.d/pgp.muttrc
|
||||
source conf.d/bindings.muttrc
|
||||
source conf.d/colors.muttrc
|
||||
source ~/.muttrc-aliases.local
|
||||
source ~/.muttrc.local
|
||||
## vim: ft=muttrc
|
5
files/net/.config/curl/.curlrc
Normal file
5
files/net/.config/curl/.curlrc
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
show-error
|
5
files/net/.config/curl/curlrc
Normal file
5
files/net/.config/curl/curlrc
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
show-error
|
11
files/net/.config/sh/profile.d/net.sh
Executable file
11
files/net/.config/sh/profile.d/net.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
: "${XDG_CONFIG_HOME:=$HOME/.config}"
|
||||
|
||||
CURL_HOME="$XDG_CONFIG_HOME/curl"
|
||||
WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
export CURL_HOME WGETRC
|
6
files/net/.config/urlview/urlview
Normal file
6
files/net/.config/urlview/urlview
Normal file
@ -0,0 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
REGEXP \b(((https?|ftp|gopher)|mailto):(//)?[^ <>"\t]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t]*[^] .,;\t\n\r<">\):]
|
||||
COMMAND urlopener
|
5
files/net/.config/wget/wgetrc
Normal file
5
files/net/.config/wget/wgetrc
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
hsts-file=~/.cache/wget-hsts
|
1
files/net/.urlview
Symbolic link
1
files/net/.urlview
Symbolic link
@ -0,0 +1 @@
|
||||
.config/urlview/urlview
|
256
files/net/.w3m/keymap
Normal file
256
files/net/.w3m/keymap
Normal file
@ -0,0 +1,256 @@
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
## w3m vim-like keymap file
|
||||
## Credits: https://github.com/sansna/keymap.w3m/blob/master/keymap.w3m
|
||||
|
||||
########## invalidate defaults ##########
|
||||
keymap K NULL
|
||||
keymap J NULL
|
||||
keymap SPC NULL
|
||||
keymap - NULL
|
||||
keymap + NULL
|
||||
keymap C-v NULL
|
||||
keymap ESC-v NULL
|
||||
keymap C-f NULL
|
||||
keymap C-b NULL
|
||||
keymap C-n NULL
|
||||
keymap C-p NULL
|
||||
keymap < NULL
|
||||
keymap > NULL
|
||||
keymap . NULL
|
||||
keymap , NULL
|
||||
keymap ^ NULL
|
||||
keymap C-a NULL
|
||||
keymap W NULL
|
||||
keymap ^[[6~ NULL
|
||||
keymap ^[[5~ NULL
|
||||
keymap g NULL
|
||||
keymap ^[[1~ NULL
|
||||
keymap ^[[4~ NULL
|
||||
keymap ESC-< NULL
|
||||
keymap ESC-> NULL
|
||||
keymap [ NULL
|
||||
keymap ] NULL
|
||||
keymap ^[[Z NULL
|
||||
keymap ESC-m NULL
|
||||
keymap ( NULL
|
||||
keymap ) NULL
|
||||
keymap C-j NULL
|
||||
keymap C-m NULL
|
||||
keymap ESC-C-j NULL
|
||||
keymap ESC-C-m NULL
|
||||
keymap ESC-w NULL
|
||||
keymap ESC-W NULL
|
||||
keymap C-s NULL
|
||||
keymap = NULL
|
||||
keymap ESC-l NULL
|
||||
keymap U NULL
|
||||
keymap V NULL
|
||||
keymap v NULL
|
||||
keymap R NULL
|
||||
keymap ESC-s NULL
|
||||
keymap : NULL
|
||||
keymap C-q NULL
|
||||
keymap T NULL
|
||||
keymap } NULL
|
||||
keymap { NULL
|
||||
keymap ESC-a NULL
|
||||
keymap ESC-b NULL
|
||||
keymap c NULL
|
||||
keymap ESC-: NULL
|
||||
keymap C-h NULL
|
||||
keymap q NULL
|
||||
keymap Q NULL
|
||||
keymap C-w NULL
|
||||
keymap C-d NULL
|
||||
keymap C-u NULL
|
||||
keymap RIGHT NULL
|
||||
keymap l NULL
|
||||
keymap LEFT NULL
|
||||
keymap h NULL
|
||||
keymap j NULL
|
||||
keymap DOWN NULL
|
||||
keymap k NULL
|
||||
keymap UP NULL
|
||||
keymap C-e NULL
|
||||
keymap C-y NULL
|
||||
keymap 0 NULL
|
||||
keymap $ NULL
|
||||
keymap Z NULL
|
||||
keymap z NULL
|
||||
keymap ESC-g NULL
|
||||
keymap gg NULL
|
||||
keymap G NULL
|
||||
keymap w NULL
|
||||
keymap b NULL
|
||||
keymap C-n NULL
|
||||
keymap C-p NULL
|
||||
keymap ESC-TAB NULL
|
||||
keymap f NULL
|
||||
keymap C-o NULL
|
||||
keymap TAB NULL
|
||||
keymap C-j NULL
|
||||
keymap C-] NULL
|
||||
keymap I NULL
|
||||
keymap ESC-I NULL
|
||||
keymap ESC-C-j NULL
|
||||
keymap y NULL
|
||||
keymap u NULL
|
||||
keymap i NULL
|
||||
keymap gC-g NULL
|
||||
keymap C-g NULL
|
||||
keymap ";" NULL
|
||||
keymap M NULL
|
||||
keymap ESC-M NULL
|
||||
keymap F NULL
|
||||
keymap ESC-u NULL
|
||||
keymap t NULL
|
||||
keymap @ NULL
|
||||
keymap "#" NULL
|
||||
keymap | NULL
|
||||
keymap B NULL
|
||||
keymap L NULL
|
||||
keymap H NULL
|
||||
keymap s NULL
|
||||
keymap gf NULL
|
||||
keymap S NULL
|
||||
keymap E NULL
|
||||
keymap ESC-e NULL
|
||||
keymap C-r NULL
|
||||
keymap r NULL
|
||||
keymap C-l NULL
|
||||
keymap C-t NULL
|
||||
keymap d NULL
|
||||
keymap gt NULL
|
||||
keymap gT NULL
|
||||
keymap ESC-t NULL
|
||||
keymap C-wL NULL
|
||||
keymap C-wH NULL
|
||||
keymap a NULL
|
||||
keymap n NULL
|
||||
keymap N NULL
|
||||
keymap / NULL
|
||||
keymap ? NULL
|
||||
keymap C-@ NULL
|
||||
keymap ESC-n NULL
|
||||
keymap ESC-p NULL
|
||||
keymap \" NULL
|
||||
keymap ^[[2~ NULL
|
||||
keymap ^[[28~ NULL
|
||||
keymap ^[[E NULL
|
||||
keymap ^[[L NULL
|
||||
keymap o NULL
|
||||
keymap C-k NULL
|
||||
keymap D NULL
|
||||
keymap m NULL
|
||||
keymap ESC-c NULL
|
||||
keymap ESC-o NULL
|
||||
keymap ESC-k NULL
|
||||
keymap \\ NULL
|
||||
keymap ! NULL
|
||||
keymap C-z NULL
|
||||
keymap ZZ NULL
|
||||
keymap ZQ NULL
|
||||
|
||||
|
||||
########## command ##########
|
||||
keymap :: COMMAND
|
||||
keymap :H HELP
|
||||
keymap :O OPTIONS
|
||||
keymap :d DOWNLOAD_LIST
|
||||
|
||||
########## history navigation ##########
|
||||
keymap L NEXT
|
||||
keymap H PREV
|
||||
keymap :p SELECT_MENU
|
||||
keymap :h HISTORY
|
||||
|
||||
########## scrolling ##########
|
||||
keymap C-e UP
|
||||
keymap C-y DOWN
|
||||
keymap gg BEGIN
|
||||
keymap G END
|
||||
keymap C-f NEXT_PAGE
|
||||
keymap C-d NEXT_PAGE
|
||||
keymap d NEXT_PAGE
|
||||
keymap C-b PREV_PAGE
|
||||
keymap C-u PREV_PAGE
|
||||
keymap u PREV_PAGE
|
||||
keymap zz CENTER_V
|
||||
########## cursor ##########
|
||||
#keymap l MOVE_RIGHT
|
||||
keymap l NEXT_TAB
|
||||
#keymap h MOVE_LEFT
|
||||
keymap h PREV_TAB
|
||||
#keymap j MOVE_DOWN1
|
||||
keymap j UP
|
||||
#keymap k MOVE_UP1
|
||||
keymap k DOWN
|
||||
keymap RIGHT MOVE_RIGHT
|
||||
keymap LEFT MOVE_LEFT
|
||||
keymap DOWN MOVE_DOWN1
|
||||
keymap UP MOVE_UP1
|
||||
keymap 0 LINE_BEGIN
|
||||
keymap $ LINE_END
|
||||
keymap w NEXT_WORD
|
||||
keymap b PREV_WORD
|
||||
########## cursor history ##########
|
||||
keymap C-i REDO
|
||||
keymap C-o UNDO
|
||||
########## navigation ##########
|
||||
keymap f MOVE_LIST_MENU
|
||||
keymap F LIST_MENU
|
||||
keymap C-n NEXT_LINK
|
||||
keymap C-p PREV_LINK
|
||||
keymap :l PEEK_LINK
|
||||
|
||||
# reload
|
||||
keymap r RELOAD
|
||||
keymap C-r RELOAD
|
||||
|
||||
# save/load
|
||||
keymap :w SAVE
|
||||
keymap :W PRINT
|
||||
keymap :o GOTO
|
||||
keymap :e LOAD
|
||||
|
||||
# jump
|
||||
keymap ESC-C-j SUBMIT
|
||||
keymap C-] TAB_LINK
|
||||
keymap C-j GOTO_LINK
|
||||
|
||||
########## info ##########
|
||||
keymap y PEEK
|
||||
keymap gC-g INFO
|
||||
keymap C-g LINE_INFO
|
||||
keymap gf VIEW
|
||||
|
||||
########## search ##########
|
||||
keymap / ISEARCH
|
||||
keymap ? ISEARCH_BACK
|
||||
keymap n SEARCH_NEXT
|
||||
keymap N SEARCH_PREV
|
||||
|
||||
########## bookmarks ##########
|
||||
keymap a ADD_BOOKMARK
|
||||
keymap :b VIEW_BOOKMARK
|
||||
|
||||
########## tab ##########
|
||||
keymap x CLOSE_TAB
|
||||
keymap gh GOTO http://www.google.com/en
|
||||
keymap gH TAB_GOTO http://www.google.com/en
|
||||
keymap C-t NEW_TAB
|
||||
keymap gt NEXT_TAB
|
||||
keymap gT PREV_TAB
|
||||
keymap C-wL TAB_RIGHT
|
||||
keymap C-wH TAB_LEFT
|
||||
keymap t TAB_GOTO
|
||||
keymap T TAB_MENU
|
||||
|
||||
########## quit ##########
|
||||
keymap ZZ EXIT
|
||||
keymap C-Q EXIT
|
||||
keymap ZQ QUIT
|
||||
keymap :q QUIT
|
23
files/pgp/.gnupg/gpg.conf
Normal file
23
files/pgp/.gnupg/gpg.conf
Normal file
@ -0,0 +1,23 @@
|
||||
## SPDX-FileCopyrightText: 2012 - 2013 Jacob Appelbaum <jacob@torproject.org>
|
||||
## SPDX-FileCopyrightText: 2012 - 2013 Sukhbir Singh <sukhbir@torproject.org>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
## Credits: https://github.com/ioerror/torbirdy/blob/master/gpg.conf
|
||||
|
||||
## Algo
|
||||
personal-digest-preferences SHA512
|
||||
cert-digest-algo SHA512
|
||||
default-preference-list SHA512 SHA384 SHA256 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
|
||||
|
||||
## Show
|
||||
display-charset utf-8
|
||||
keyid-format long
|
||||
list-options show-uid-validity
|
||||
no-comments
|
||||
verify-options show-uid-validity
|
||||
with-fingerprint
|
||||
with-subkey-fingerprint
|
||||
|
||||
## vim: ft=gpg
|
38
files/qvm-copy-dotfiles
Executable file
38
files/qvm-copy-dotfiles
Executable file
@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
##
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
##
|
||||
## Benefits of this method:
|
||||
## - faster than salt, no need for a dispvm.
|
||||
## - preserve permisions, salt-ssh doesnt.
|
||||
## Disadvantages:
|
||||
## - files need be copied to dom0 preserving permissions or setting again.
|
||||
##
|
||||
## Commands to run:
|
||||
## sudo ./qvm-copy-dotfiles QUBE
|
||||
set -eu
|
||||
|
||||
test -n "${1:-}" || { echo "usage: ${0##*/} QUBE"; exit 1; }
|
||||
test "$(id -u)" = "0" || { echo "Program requires root."; exit 1; }
|
||||
|
||||
vm="$1"
|
||||
qvm-check "$vm" >/dev/null 2>&1 || { echo "VM doesn't exist: '$vm'"; exit 1; }
|
||||
test -f ./setup.sh || { echo "File doesn't exist: './setup.sh'"; exit 1; }
|
||||
|
||||
if test "$vm" = "dom0"; then
|
||||
sh ./dotfiles/setup.sh
|
||||
sudo -u user mkdir -pv /home/user/.cache
|
||||
tmpdir="$(sudo -u user mktemp -d /home/user/.cache/XXXXXX)"
|
||||
trap 'rm -rf -- "$tmpdir"' EXIT INT HUP QUIT ABRT
|
||||
cp -r ./dotfiles "$tmpdir"
|
||||
chown -R user:user "$tmpdir"
|
||||
sudo -u user "$tmpdir/dotfiles/setup.sh"
|
||||
exit
|
||||
fi
|
||||
|
||||
qvm-run -q "$vm" -- "rm -rf ~/QubesIncoming/dom0/files"
|
||||
qvm-copy-to-vm "$vm" ../files
|
||||
qvm-run -q "$vm" -- "sh ~/QubesIncoming/dom0/files/setup.sh"
|
||||
qvm-run -q "$vm" -- "rm -rf ~/QubesIncoming/dom0/files"
|
45
files/setup.sh
Executable file
45
files/setup.sh
Executable file
@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
prg="$0"
|
||||
if ! test -e "$prg"; then
|
||||
case "$prg" in
|
||||
(*/*) exit 1;;
|
||||
(*) prg=$(command -v -- "$prg") || exit;;
|
||||
esac
|
||||
fi
|
||||
dir="$(cd -P -- "$(dirname -- "$prg")" && pwd -P)" || exit 1
|
||||
prg="$dir/$(basename -- "$prg")" || exit 1
|
||||
cd -- "$dir" || exit 1
|
||||
|
||||
usage(){
|
||||
printf '%s\n' "Usage: ${0##*/} [-h|--help] DIR [DIR2...]"
|
||||
printf '%s\n' "Example: ${0##*/} # deploy all"
|
||||
printf '%s\n' "Example: ${0##*/} sh vim ... # deploy specific dirs"
|
||||
}
|
||||
|
||||
case "${1-}" in
|
||||
-h|--help) usage; exit 1;;
|
||||
""|--all) args="$(find . -maxdepth 1 -type d)";;
|
||||
*) args="${*}";;
|
||||
esac
|
||||
|
||||
for dir in $args; do
|
||||
case "${dir##*/}" in "."|"..") continue;; esac
|
||||
dir="${dir%*/}"
|
||||
test -f "$dir" && continue
|
||||
if ! test -d "$dir"; then
|
||||
printf '%s\n' "Directory doesn't exist: '$dir'." >&2
|
||||
exit 1
|
||||
fi
|
||||
for file in "$dir"/.*; do
|
||||
test -e "$file" || continue
|
||||
case "${file##*/}" in "."|"..") continue;; esac
|
||||
cp -rv "$file" "$HOME"
|
||||
done
|
||||
done
|
1
files/sh/.bash_env
Symbolic link
1
files/sh/.bash_env
Symbolic link
@ -0,0 +1 @@
|
||||
.config/bash/bash_env
|
1
files/sh/.bash_logout
Symbolic link
1
files/sh/.bash_logout
Symbolic link
@ -0,0 +1 @@
|
||||
.config/bash/bash_logout
|
1
files/sh/.bash_profile
Symbolic link
1
files/sh/.bash_profile
Symbolic link
@ -0,0 +1 @@
|
||||
.config/bash/bash_profile
|
1
files/sh/.bashrc
Symbolic link
1
files/sh/.bashrc
Symbolic link
@ -0,0 +1 @@
|
||||
.config/bash/bashrc
|
15
files/sh/.config/bash/bash_env
Normal file
15
files/sh/.config/bash/bash_env
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
|
||||
if test -z "$ENV" && test -n "$PATH"; then
|
||||
case $- in
|
||||
*l*) ;;
|
||||
*) . "$HOME/.bash_profile" >/dev/null ;;
|
||||
esac
|
||||
fi
|
9
files/sh/.config/bash/bash_logout
Normal file
9
files/sh/.config/bash/bash_logout
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
test "0${SHLVL-}" -le 1 && test -z "${SSH_TTY-}" &&
|
||||
test "${TERM-}" = linux && clear
|
10
files/sh/.config/bash/bash_profile
Normal file
10
files/sh/.config/bash/bash_profile
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# shellcheck disable=SC1090,1091
|
||||
|
||||
. "$HOME/.profile"
|
||||
case $- in *i*) . "$HOME/.bashrc";; esac
|
118
files/sh/.config/bash/bashrc
Normal file
118
files/sh/.config/bash/bashrc
Normal file
@ -0,0 +1,118 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## {{{ Requirements
|
||||
## If not running interactively, return.
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
## Source default files.
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
source "$HOME/.profile"
|
||||
# shellcheck disable=SC1090
|
||||
source "$ENV"
|
||||
## }}}
|
||||
## {{{ Options
|
||||
HISTCONTROL=ignoredups
|
||||
shopt -s autocd
|
||||
shopt -s direxpand
|
||||
shopt -s cdspell
|
||||
shopt -s dirspell
|
||||
shopt -s histappend
|
||||
shopt -s checkwinsize
|
||||
shopt -s extglob
|
||||
shopt -s globstar
|
||||
## }}}
|
||||
## {{{ Alias
|
||||
alias reload="exec bash"
|
||||
## }}}
|
||||
## {{{ Prompt
|
||||
if test -z "${debian_chroot:-}" && test -r /etc/debian_chroot; then
|
||||
debian_chroot="$(cat /etc/debian_chroot)"
|
||||
fi
|
||||
|
||||
_reset_line() {
|
||||
case "${TERM-}" in
|
||||
""|dumb|linux*|vt100*|vt220*) return;;
|
||||
esac
|
||||
## Credit: Can't find the source, posted on StackExchange or alike.
|
||||
## Does not work well on Bash 5.0 and older.
|
||||
test "$(echo "${BASH_VERSION%.*}" | tr -d ".")" -lt 51 && return
|
||||
|
||||
local termios cur_y
|
||||
## Ask the terminal for any pending (line buffered) input.
|
||||
termios=$(stty --save) && stty -icanon && stty "$termios"
|
||||
## On pending input, assume it's been echoed and we're not in first column.
|
||||
## Otherwise ask the terminal for current column and read it from input.
|
||||
if read -t 0 || {
|
||||
IFS='[;' read -s -r -d'R' -p$'\033[6n' _ _ cur_y && [[ $cur_y != 1 ]]
|
||||
}
|
||||
then
|
||||
## Print line ending char with reversed video and end with newline.
|
||||
if test "${color_prompt-}" = "yes"; then
|
||||
printf '%b' "\033[41m\033[0m\033[7m%\033[m\n\r"
|
||||
else
|
||||
printf '%b' "%\n\r"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
_print_ec(){
|
||||
test "${_ec_ps1}" = "0" && return
|
||||
if test "${color_prompt:-}" = "yes"; then
|
||||
printf %s"(\001\033[31m\002${_ec_ps1}\001\033[0m\002)"
|
||||
else
|
||||
printf '%s' "(${_ec_ps1})"
|
||||
fi
|
||||
}
|
||||
|
||||
_save_ec() { _ec_ps1=$?; }
|
||||
PROMPT_COMMAND=(_save_ec)
|
||||
newline=$'\n'
|
||||
|
||||
if test "${color_prompt:-}" = "yes"; then
|
||||
# shellcheck disable=SC2154
|
||||
PS1="\$(_reset_line)\[\033[35m\][\[${reset_color}\]${debian_chroot:+($debian_chroot)}\[${usercolor}\]\u@\h \[${dircolor}\]\w\[${reset_color}\]\$(_git_prompt_info)\[\033[35m\]]\[${reset_color}\]${newline-}\$(_print_ec)${ps1_symbol} "
|
||||
else
|
||||
PS1="\$(_reset_line)[${debian_chroot:+($debian_chroot)}\u@\h:\w\$(_git_prompt_info)]${newline-}\$(_print_ec)${ps1_symbol} "
|
||||
fi
|
||||
|
||||
case "${TERM-}" in
|
||||
screen*|xterm*|rxvt*)
|
||||
## Set window title
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${TERM-}" in
|
||||
""|dumb|linux*|vt100*|vt220*)
|
||||
PS0=""
|
||||
;;
|
||||
*)
|
||||
## Reset cursor to steady block after command input and before execution.
|
||||
# shellcheck disable=SC2034
|
||||
PS0="\e[2 q\2"
|
||||
;;
|
||||
esac
|
||||
if ! shopt -oq posix; then
|
||||
source_readable /usr/share/bash-completion/bash_completion
|
||||
fi
|
||||
|
||||
unset newline ps1_symbol
|
||||
## }}}
|
||||
## {{{ Plugins
|
||||
! has zoxide || eval "$(zoxide init bash)"
|
||||
! has gitlint || eval "$(_GITLINT_COMPLETE=bash_source gitlint)"
|
||||
|
||||
source_readable /usr/share/doc/fzf/examples/key-bindings.bash
|
||||
source_readable /usr/share/doc/fzf/examples/completion.bash
|
||||
## }}}
|
||||
## {{{ End
|
||||
## Source local bash configuration.
|
||||
source_readable "$HOME/.bashrc.local"
|
||||
## }}}
|
162
files/sh/.config/bash/inputrc
Normal file
162
files/sh/.config/bash/inputrc
Normal file
@ -0,0 +1,162 @@
|
||||
# inputrc
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
$include /etc/inputrc
|
||||
|
||||
## Options
|
||||
set bell-style none
|
||||
set enable-bracketed-paste on
|
||||
set show-all-if-ambiguous on
|
||||
set colored-stats on
|
||||
set visible-stats on
|
||||
set mark-symlinked-directories on
|
||||
set colored-completion-prefix on
|
||||
set menu-complete-display-prefix on
|
||||
set skip-completed-text
|
||||
set editing-mode emacs
|
||||
set show-mode-in-prompt on
|
||||
|
||||
$if term=linux
|
||||
set emacs-mode-string "\1\e[?0c\2"
|
||||
set vi-ins-mode-string "\1\e[?0c\2"
|
||||
set vi-cmd-mode-string "\1\e[?8c\2"
|
||||
$else
|
||||
set emacs-mode-string "\1\e[5 q\2"
|
||||
set vi-ins-mode-string "\1\e[5 q\2"
|
||||
set vi-cmd-mode-string "\1\e[2 q\2"
|
||||
$endif
|
||||
|
||||
$if term=''
|
||||
set enable-bracketed-paste off
|
||||
set show-mode-in-prompt off
|
||||
set colored-stats off
|
||||
set colored-completion-prefix off
|
||||
$endif
|
||||
$if term=dumb
|
||||
set enable-bracketed-paste off
|
||||
set show-mode-in-prompt off
|
||||
set colored-stats off
|
||||
set colored-completion-prefix off
|
||||
$endif
|
||||
$if term=vt100
|
||||
set enable-bracketed-paste off
|
||||
set show-mode-in-prompt off
|
||||
set colored-stats off
|
||||
set colored-completion-prefix off
|
||||
$endif
|
||||
$if term=vt220
|
||||
set enable-bracketed-paste off
|
||||
set show-mode-in-prompt off
|
||||
set colored-stats off
|
||||
set colored-completion-prefix off
|
||||
$endif
|
||||
|
||||
## Mode
|
||||
$if mode=emacs
|
||||
|
||||
set keymap emacs-ctlx
|
||||
v: vi-editing-mode
|
||||
Control-v: "\C-xv\e"
|
||||
Esc: "\C-xv\e"
|
||||
set keymap emacs
|
||||
|
||||
$else
|
||||
|
||||
set keymap vi-insert
|
||||
Control-a: beginning-of-line
|
||||
Control-b: backward-char
|
||||
Control-d: delete-char
|
||||
Control-e: end-of-line
|
||||
Control-f: forward-char
|
||||
Control-j: accept-line
|
||||
Control-k: kill-line
|
||||
Control-l: clear-screen
|
||||
Control-m: accept-line
|
||||
Control-n: next-history
|
||||
Control-p: previous-history
|
||||
Control-r: reverse-search-history
|
||||
Control-s: forward-search-history
|
||||
Control-t: transpose-chars
|
||||
Control-u: unix-line-discard
|
||||
Control-v: quoted-insert
|
||||
Control-w: backward-kill-word
|
||||
Control-y: yank
|
||||
Control-[: vi-movement-mode
|
||||
Control-_: undo
|
||||
Control-?: backward-delete-char
|
||||
Space: self-insert
|
||||
|
||||
set keymap vi-command
|
||||
Control-d: vi-eof-maybe
|
||||
Control-h: backward-char
|
||||
Control-j: accept-line
|
||||
Control-k: kill-line
|
||||
Control-l: clear-screen
|
||||
Control-m: accept-line
|
||||
Control-n: next-history
|
||||
Control-p: previous-history
|
||||
Control-q: quoted-insert
|
||||
Control-r: vi-redo
|
||||
Control-t: transpose-chars
|
||||
Control-u: unix-line-discard
|
||||
Control-v: quoted-insert
|
||||
Control-w: backward-kill-word
|
||||
Control-y: yank
|
||||
Control-u: vi-undo
|
||||
Control-?: backward-delete-char
|
||||
Space: forward-char
|
||||
$endif
|
||||
|
||||
## Application
|
||||
$if Bash
|
||||
Control-w: backward-kill-word
|
||||
$endif
|
||||
|
||||
|
||||
## Home
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[H": beginning-of-line
|
||||
"\eOH": beginning-of-line
|
||||
|
||||
## End
|
||||
"\e[4~": end-of-line
|
||||
"\e[F": end-of-line
|
||||
"\eOF": end-of-line
|
||||
|
||||
## Delete
|
||||
"\e[3~": delete-char
|
||||
"\e[P": delete-char
|
||||
"\eOP": delete-char
|
||||
|
||||
## Insert
|
||||
"\e[2~": quoted-insert
|
||||
"\e[L": quoted-insert
|
||||
|
||||
## PgUp
|
||||
"\e[5~": beginning-of-history
|
||||
"\e[I": beginning-of-history
|
||||
|
||||
## PgDown
|
||||
"\e[6~": end-of-history
|
||||
"\e[G": end-of-history
|
||||
|
||||
## Ctrl+RighArrow
|
||||
"\e[1;5C": forward-word
|
||||
"\e[5C": forward-word
|
||||
"\e\e[C": forward-word
|
||||
|
||||
## Ctrl+LeftArrow
|
||||
"\e[1;5D": backward-word
|
||||
"\e[5D": backward-word
|
||||
"\e\e[D": backward-word
|
||||
|
||||
## Terminal
|
||||
$if term=rxvt
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[8~": end-of-line
|
||||
"\eOc": forward-word
|
||||
"\eOd": backward-word
|
||||
$endif
|
174
files/sh/.config/dircolors/dircolors
Normal file
174
files/sh/.config/dircolors/dircolors
Normal file
@ -0,0 +1,174 @@
|
||||
# dircolors
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# Credits: https://github.com/tpope/dotfiles/blob/master/.dir_colors
|
||||
# vim: set ft=dircolors
|
||||
|
||||
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
||||
# slackware version of dircolors) are recognized but ignored.
|
||||
# Below are TERM entries, which can be a glob patterns, to match
|
||||
# against the TERM environment variable to determine if it is colorizable.
|
||||
TERM Eterm
|
||||
TERM ansi
|
||||
TERM *color*
|
||||
TERM con[0-9]*x[0-9]*
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM gnome
|
||||
TERM hurd
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt*
|
||||
TERM screen*
|
||||
TERM st
|
||||
TERM terminator
|
||||
TERM tmux*
|
||||
TERM vt100
|
||||
TERM xterm*
|
||||
|
||||
# Below are the color init strings for the basic file types.
|
||||
# One can use codes for 256 or more colors supported by modern terminals.
|
||||
# The default color codes use the capabilities of an 8 color terminal
|
||||
# with some additional attributes as per the following codes:
|
||||
# Attribute codes:
|
||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||
# Text color codes:
|
||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
||||
# Background color codes:
|
||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
||||
#NORMAL 00 # no color code at all
|
||||
#FILE 00 # regular file: use no color at all
|
||||
#RESET 0 # reset to "normal" color
|
||||
DIR 01;34 # directory
|
||||
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
||||
# numerical value, the color is as for the file pointed to.)
|
||||
# MULTIHARDLINK 00 # regular file with more than one link
|
||||
FIFO 33 # pipe
|
||||
SOCK 01;35 # socket
|
||||
# DOOR 01;44 # door
|
||||
BLK 00;35 # block device driver
|
||||
CHR 01;33 # character device driver
|
||||
ORPHAN 00;41 # symlink to nonexistent file
|
||||
MISSING 00;45 # said nonexistent file
|
||||
|
||||
SETUID 37;41 # file that is setuid (u+s)
|
||||
SETGID 30;43 # file that is setgid (g+s)
|
||||
#CAPABILITY 30;41 # file with capability
|
||||
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
|
||||
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
|
||||
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
|
||||
# This is for files with execute permission:
|
||||
EXEC 01;32
|
||||
|
||||
# List any file extensions like '.gz' or '.tar' that you would like ls
|
||||
# to colorize below. Put the extension, a space, and the color init string.
|
||||
# (and any comments you want to add after a '#')
|
||||
# If you use DOS-style suffixes, you may want to uncomment the following:
|
||||
.cmd 00;32
|
||||
.exe 00;32
|
||||
.com 00;32
|
||||
.btm 00;32
|
||||
.bat 00;32
|
||||
# Or if you want to colorize scripts even if they do not have the
|
||||
# executable bit actually set.
|
||||
#.sh 01;32
|
||||
#.csh 01;32
|
||||
|
||||
# archives or compressed (bright red)
|
||||
.tar 01;31
|
||||
.tgz 01;31
|
||||
.arc 01;31
|
||||
.arj 01;31
|
||||
.taz 01;31
|
||||
.lha 01;31
|
||||
.lz4 01;31
|
||||
.lzh 01;31
|
||||
.lzma 01;31
|
||||
.tlz 01;31
|
||||
.txz 01;31
|
||||
.tzo 01;31
|
||||
.t7z 01;31
|
||||
.zip 01;31
|
||||
.ZIP 01;31
|
||||
.z 01;31
|
||||
.Z 01;31
|
||||
.dz 01;31
|
||||
.gz 01;31
|
||||
.lrz 01;31
|
||||
.lz 01;31
|
||||
.lzo 01;31
|
||||
.xz 01;31
|
||||
.zst 01;31
|
||||
.tzst 01;31
|
||||
.bz2 01;31
|
||||
.bz 01;31
|
||||
.tbz 01;31
|
||||
.tbz2 01;31
|
||||
.tz 01;31
|
||||
.deb 01;31
|
||||
.rpm 01;31
|
||||
.jar 01;31
|
||||
.war 01;31
|
||||
.ear 01;31
|
||||
.sar 01;31
|
||||
.rar 01;31
|
||||
.alz 01;31
|
||||
.ace 01;31
|
||||
.zoo 01;31
|
||||
.cpio 01;31
|
||||
.7z 01;31
|
||||
.rz 01;31
|
||||
.cab 01;31
|
||||
.wim 01;31
|
||||
.swm 01;31
|
||||
.dwm 01;31
|
||||
.esd 01;31
|
||||
|
||||
# backup and temporary files
|
||||
*~ 01;30
|
||||
*- 01;30
|
||||
.old 01;30
|
||||
.OLD 01;30
|
||||
.bak 01;30
|
||||
.BAK 01;30
|
||||
.back 01;30
|
||||
.dpkg-old 01;30
|
||||
.swp 01;30
|
||||
.swo 01;30
|
||||
.aux 01;30
|
||||
.bbl 01;30
|
||||
.glo 01;30
|
||||
.gls 01;30
|
||||
.ind 01;30
|
||||
.idx 01;30
|
||||
.blg 01;30
|
||||
|
||||
# system libraries, etc.
|
||||
.so 00;33
|
||||
.o 00;33
|
||||
.a 00;33
|
||||
.dll 00;33
|
||||
.rbc 00;33
|
||||
.pyc 00;33
|
||||
.class 00;33
|
||||
|
||||
# patches
|
||||
.diff 00;31
|
||||
.patch 00;31
|
||||
|
||||
# misc.
|
||||
.dpkg-dist 01;37
|
||||
*core 01;37
|
||||
.lnk 01;36
|
||||
.url 01;36
|
20
files/sh/.config/less/lessfilter
Executable file
20
files/sh/.config/less/lessfilter
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/tpope/dotfiles/blob/master/.lessfilter
|
||||
|
||||
set -eu
|
||||
|
||||
if test -d "$1"; then
|
||||
exec ls -lF "$1"
|
||||
else
|
||||
case $1 in
|
||||
*.json) command -v jq >/dev/null && exec jq -C . "$1";;
|
||||
esac
|
||||
fi
|
||||
|
||||
exit 1
|
21
files/sh/.config/less/lesskey
Normal file
21
files/sh/.config/less/lesskey
Normal file
@ -0,0 +1,21 @@
|
||||
## SPDX-FileCopyrightText: 2013 - 2016 Tim Pope <https://tpo.pe>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/tpope/dotfiles/blob/master/.lesskey
|
||||
#command
|
||||
h left-scroll
|
||||
l right-scroll
|
||||
i toggle-option i
|
||||
\b back-screen
|
||||
^H back-screen
|
||||
^? back-screen
|
||||
\\ quit
|
||||
#line-edit
|
||||
^A home
|
||||
^B left
|
||||
^E end
|
||||
^F right
|
||||
^N down
|
||||
^P up
|
||||
\ef word-right
|
BIN
files/sh/.config/less/lesskey-old
Normal file
BIN
files/sh/.config/less/lesskey-old
Normal file
Binary file not shown.
135
files/sh/.config/sh/profile
Normal file
135
files/sh/.config/sh/profile
Normal file
@ -0,0 +1,135 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Not so invasive because it only assigns a value if it is empty.
|
||||
: "${HOME:=$(cd ~ && pwd)}"
|
||||
: "${USER:=$(id -un || printf %s "${HOME##*/}")}"
|
||||
: "${UID:=$(id -u || awk -F':' -v user="$USER" '/^user:/{print $3}' /etc/passwd)}"
|
||||
: "${HOSTNAME:=$(hostname)}"
|
||||
export HOME USER UID HOSTNAME
|
||||
|
||||
## Set XDG_*_HOME variables.
|
||||
XDG_CONFIG_HOME="$HOME/.config"
|
||||
XDG_CACHE_HOME="$HOME/.cache"
|
||||
XDG_DATA_HOME="$HOME/.local/share"
|
||||
XDG_STATE_HOME="$HOME/.local/state"
|
||||
export XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DATA_HOME XDG_STATE_HOME
|
||||
mkdir -p "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
|
||||
## Set XDG_*_DIR variables.
|
||||
eval "$(grep "^[ ]*XDG_[A-Z].*_DIR=" "$XDG_CONFIG_HOME/user-dirs.dirs" |
|
||||
sed "s/^/export /")"
|
||||
|
||||
## Set directory to be used for coding.
|
||||
CODEDIR="$HOME/src"
|
||||
export CODEDIR
|
||||
|
||||
## Set shell configuration directories.
|
||||
SHDIR="$XDG_CONFIG_HOME/sh"
|
||||
BASHDIR="$XDG_CONFIG_HOME/bash"
|
||||
ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
export SHDIR BASHDIR ZDOTDIR
|
||||
|
||||
## Set general variables.
|
||||
PATH="$HOME/bin:$HOME/.local/bin/$HOSTNAME:$HOME/.local/bin"
|
||||
PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
PATH="$PATH:/usr/local/games:/usr/games"
|
||||
# INFOPATH="/usr/local/share/info:/usr/local/info:/usr/share/info:/usr/info"
|
||||
# MANPATH="/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/man"
|
||||
ENV="$SHDIR/shrc"
|
||||
BASH_ENV="$BASHDIR/bash_env"
|
||||
TMPDIR="/tmp"
|
||||
LANG="en_US.UTF-8"
|
||||
LANGUAGE="${LANG%.*}"
|
||||
LC_ALL="$LANG"
|
||||
GNUPGHOME="$HOME/.gnupg"
|
||||
export PATH INFOPATH MANPATH ENV TMPDIR LANG LANGUAGE LC_ALL GNUPGHOME
|
||||
|
||||
## Set interactive shell variables.
|
||||
HISTSIZE=10000
|
||||
EDITOR="$(has -s vim vim.tiny vi)"
|
||||
test -n "$EDITOR" && VISUAL="$EDITOR"
|
||||
TERMINAL="x-terminal-emulator"
|
||||
BROWSER="chromium"
|
||||
PAGER="less"
|
||||
LESS="FRq#10"
|
||||
GPG_TTY="$(tty)"
|
||||
BLOCKSIZE="K"
|
||||
RSYNC_RSH="ssh -ax"
|
||||
SYSTEMD_PAGER=""
|
||||
if test -s /rw/config/gpg-split-domain; then
|
||||
QUBES_GPG_DOMAIN="$(cat /rw/config/gpg-split-domain)"
|
||||
else
|
||||
QUBES_GPG_DOMAIN="@default"
|
||||
fi
|
||||
export HISTSIZE EDITOR VISUAL TERMINAL BROWSER PAGER LESS GPG_TTY BLOCKSIZE
|
||||
export RSYNC_RSH SYSTEMD_PAGER QUBES_GPG_DOMAIN
|
||||
|
||||
if has fd; then
|
||||
FZF_DEFAULT_COMMAND='fd --type=f --hidden --exclude=.git'
|
||||
elif has fdind; then
|
||||
FZF_DEFAULT_COMMAND='fdfind --type=f --hidden --exclude=.git'
|
||||
fi
|
||||
FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
||||
FZF_TMUX=1
|
||||
export FZF_DEFAULT_COMMAND FZF_DEFAULT_OPTS FZF_TMUX
|
||||
|
||||
## 'vim.tiny' and 'vi' fails if VIMINIT is set to our vimrc.
|
||||
if has vim; then
|
||||
if test -f "$XDG_CONFIG_HOME/vim/vimrc"; then
|
||||
# shellcheck disable=SC2016,SC2089
|
||||
VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | so $MYVIMRC'
|
||||
# shellcheck disable=SC2090
|
||||
export VIMINIT
|
||||
fi
|
||||
fi
|
||||
|
||||
## XDG_CONFIG_HOME: user-specific configuration files
|
||||
GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
||||
KDEHOME="$XDG_CONFIG_HOME/kde"
|
||||
#KDEROOTHOME="/root/.config/kde"
|
||||
INPUTRC="$BASHDIR/inputrc"
|
||||
if has less; then
|
||||
if test "$(less -V | head -1 | cut -d " " -f2)" -ge 590; then
|
||||
LESSKEY="$XDG_CONFIG_HOME/less/lesskey"
|
||||
else
|
||||
LESSKEY="$XDG_CONFIG_HOME/less/lesskey-old"
|
||||
fi
|
||||
fi
|
||||
export GTK2_RC_FILES KDEHOME KDEROOTHOME INPUTRC
|
||||
export LESSKEY
|
||||
|
||||
## XDG_DATA_HOME: user-specific data files
|
||||
RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||
CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||
GOPATH="$XDG_DATA_HOME/go"
|
||||
WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
|
||||
ELECTRUMDIR="$XDG_DATA_HOME/electrum"
|
||||
TERMINFO="$XDG_DATA_HOME/terminfo"
|
||||
export RUSTUP_HOME CARGO_HOME GOPATH WORKON_HOME ELECTRUMDIR TERMINFO
|
||||
|
||||
## XDG_STATE_HOME: user-specific state files, persists application restarts
|
||||
LESSHISTFILE="$XDG_STATE_HOME/history-less"
|
||||
HISTFILE="$XDG_STATE_HOME/history-shell"
|
||||
export LESSHISTFILE HISTFILE
|
||||
|
||||
## XDG_CACHE_HOME: user-specific non-essential data files
|
||||
GOCACHE="$XDG_CACHE_HOME/go-build"
|
||||
GOMODCACHE="$XDG_CACHE_HOME/go/mod"
|
||||
export GOCACHE GOMODCACHE
|
||||
|
||||
## Start agents
|
||||
if test -z "${SSH_AUTH_SOCK-}" && has ssh-agent; then
|
||||
eval "$(ssh-agent -s)" >/dev/null
|
||||
fi
|
||||
|
||||
for f in "$XDG_CONFIG_HOME/sh/profile.d"/*.sh; do
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
! test -r "$f" || . "$f"
|
||||
done
|
||||
|
||||
## Source local profile.
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
! test -r "$HOME/.profile.local" || . "$HOME/.profile.local"
|
318
files/sh/.config/sh/shrc
Normal file
318
files/sh/.config/sh/shrc
Normal file
@ -0,0 +1,318 @@
|
||||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
## Credits: https://github.com/tpope/dotfiles/blob/master/.shrc
|
||||
|
||||
## {{{ Requirements
|
||||
## If not running interactively, return.
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
## Source profile.
|
||||
# shellcheck disable=SC1091
|
||||
. "$HOME/.profile"
|
||||
## }}}
|
||||
## {{{ Options
|
||||
stty -ixon
|
||||
set -o noclobber
|
||||
set -o notify
|
||||
## Vi-mode does not work on Debian Bullseye with Dash 5.11 (2020).
|
||||
## Debian Boowkworm has Dash >5.11 (2021) with adds libedit to the shell.
|
||||
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561663
|
||||
#set -o vi
|
||||
#stty quit undef
|
||||
stty werase undef
|
||||
## }}}
|
||||
## {{{ Alias
|
||||
## Standard commands.
|
||||
test -n "$VISUAL" && alias vi='$VISUAL'
|
||||
alias du="du -h"
|
||||
alias df="df -h"
|
||||
alias cp="cp -i"
|
||||
alias mv="mv -i"
|
||||
alias ls="ls -hF --group-directories-first --color=auto"
|
||||
if has lsblk; then
|
||||
_lsblk_options="NAME,FSTYPE,LABEL,SIZE,FSAVAIL,FSUSE%,MOUNTPOINT"
|
||||
alias lsblk='lsblk -o $_lsblk_options'
|
||||
alias lsblku='lsblk -o $_lsblk_options,UUID,PARTUUID'
|
||||
fi
|
||||
if ! grep --color 2>&1 | grep -q "unrecognized option"; then
|
||||
alias grep="grep --exclude='.*.swp' --exclude='*~' --color=auto"
|
||||
fi
|
||||
alias fgrep="grep -F"
|
||||
alias egrep="grep -E"
|
||||
alias diff="diff --color=auto"
|
||||
has dir && alias dir="dir --color=auto"
|
||||
has vdir && alias vdir="vdir --color=auto"
|
||||
alias ip="ip -color=auto"
|
||||
has highlight && alias highlight="highlight --out-format=ansi"
|
||||
has pygmentize && alias pygmentize="pygmentize -f terminal"
|
||||
|
||||
## Helpers.
|
||||
alias reload='. $ENV' r="reload"
|
||||
alias reload-xprofile='. $XDG_CONFIG_HOME/x11/xprofile' rx="reload-xprofile"
|
||||
cd_up(){
|
||||
# SPDX-FileCopyrightText: 2014 Grigory K <https://stackoverflow.com/users/2937875/grigory-k>
|
||||
# SPDX-License-Identifier: CC-BY-SA-3.0
|
||||
# Credits: https://stackoverflow.com/a/26134858
|
||||
case "${1-}" in
|
||||
[1-9]) cd "$(printf "%0.0s../" $(seq 1 "$1"))" || return;;
|
||||
"") cd .. || return;;
|
||||
*) cd "$(pwd | sed -r "s|(.*/$1[^/]*/).*|\1|")" || return
|
||||
esac
|
||||
}
|
||||
alias up="cd_up"
|
||||
## POSIX cd does not allow '--' and other shells breaks when not using it.
|
||||
alias -- -="cd -" 2>/dev/null || true
|
||||
test -n "$EDITOR" && alias e='$EDITOR'
|
||||
test -n "$VISUAL" && alias v='$VISUAL'
|
||||
alias j="jobs"
|
||||
alias h="history"
|
||||
alias l="ls -CF"
|
||||
alias ll="ls -Fl"
|
||||
alias la="ls -Fa"
|
||||
alias lla="ls -Fla"
|
||||
alias laa='ls -Fd .* 2>/dev/null'
|
||||
alias llaa='ls -Fdl .* 2>/dev/null'
|
||||
alias lr='ls -R'
|
||||
alias lx='ll -BX'
|
||||
alias lz='ll -rS'
|
||||
alias lt='ll -rt'
|
||||
alias lm='la | more'
|
||||
alias now="date +%a\ %Y-%m-%d\ %T"
|
||||
alias mkd="mkdir -pv"
|
||||
mkcd(){ mkd "$1" && cd "$1" || return; }
|
||||
|
||||
## Non-standard programs.
|
||||
has info && alias info="info --vi-keys"
|
||||
has htop && alias top="htop"
|
||||
has yt-dlp && alias yt="yt-dlp --add-metadata -ic"
|
||||
has fdfind && alias fd="fdfind"
|
||||
has lynx && alias lynx="lynx -vikeys"
|
||||
has qubesctl && alias qubesctl="sudo qubesctl --show-output" qctl="qubesctl"
|
||||
has gpg && alias gpgs="gpg --show-keys"
|
||||
has gpg2 && alias gpg="gpg2"
|
||||
if has qubes-gpg-client-wrapper; then
|
||||
alias qubes-gpg="qubes-gpg-client-wrapper"
|
||||
alias qgpg="qubes-gpg"
|
||||
fi
|
||||
## {{{ Tmux
|
||||
has tmux && {
|
||||
alias t="tmux"
|
||||
alias td="t detach"
|
||||
alias tls="t list-sessions" tl="tls"
|
||||
alias tlw="t list-windows"
|
||||
alias tlp="t list-panes"
|
||||
alias tcl="clear && t clear-history" # clear buffer cus memory
|
||||
tcla(){
|
||||
## Clear all the panes of the current session.
|
||||
for _t_pane in $(tmux list-panes -s -F '#{pane_id}'); do
|
||||
tmux clear-history -t "$_t_pane"
|
||||
done
|
||||
}
|
||||
}
|
||||
## }}}
|
||||
## {{{ Mutt
|
||||
if has mutt; then
|
||||
alias m="mutt"
|
||||
alias mp="mutt -e 'unset signature' -e 'set pgp_autoinline=yes crypt_autosign=yes' -H"
|
||||
fi
|
||||
## }}}
|
||||
## {{{ Git
|
||||
if has git; then
|
||||
alias g="git"
|
||||
alias gcd='cd "$(git rev-parse --show-toplevel)"'
|
||||
## Use git aliases with 'g' prefix.
|
||||
g_alias="$(git config --get-regexp 'alias.*' | sed 's/^alias\.//;s/ .*//')"
|
||||
for key in $(printf '%s\n' "${g_alias}"); do
|
||||
# shellcheck disable=SC2139,SC2140
|
||||
alias "g$key"="git $key"
|
||||
done
|
||||
unset g_alias
|
||||
fi
|
||||
## }}}
|
||||
## }}}
|
||||
## {{{ Prompt
|
||||
## Set ability to color terminal.
|
||||
# shellcheck disable=2034
|
||||
case "${TERM-}" in
|
||||
iterm|*-truecolor)
|
||||
export COLORTERM=truecolor; color_prompt=yes
|
||||
;;
|
||||
*-color|*-256color|linux*)
|
||||
color_prompt=yes
|
||||
;;
|
||||
""|dumb|vt100*|vt220*)
|
||||
color_prompt=no
|
||||
;;
|
||||
*)
|
||||
color_prompt=no
|
||||
;;
|
||||
esac
|
||||
|
||||
## Colorise "ls" output.
|
||||
if test "${color_prompt-}" = "yes"; then
|
||||
if has dircolors; then
|
||||
## Use dircolors if available.
|
||||
if test -r "$XDG_CONFIG_HOME/dircolors/dircolors"; then
|
||||
eval "$(dircolors -b "$XDG_CONFIG_HOME/dircolors/dircolors")"
|
||||
else
|
||||
eval "$(dircolors -b)"
|
||||
fi
|
||||
## Fix bold on some terminals.
|
||||
case "${TERM-}" in
|
||||
xterm*|screen*)
|
||||
LS_COLORS="$(echo "$LS_COLORS" | sed -e 's/01;3/00;9/g')"
|
||||
;;
|
||||
esac
|
||||
export LS_COLORS
|
||||
else
|
||||
## BSD
|
||||
CLICOLOR=1 CLICOLOR_FORCE=1 LSCOLORS=ExGxFxdxCxfxDxxbadacad
|
||||
export CLICOLOR CLICOLOR_FORCE LSCOLORS
|
||||
fi
|
||||
|
||||
## Set gcc colors.
|
||||
GCC_COLORS="error=00;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01"
|
||||
export GCC_COLORS
|
||||
|
||||
## Colors for programs that uses less such as 'man'.
|
||||
GROFF_NO_SGR=1
|
||||
LESS_TERMCAP_mb="$(tput bold; tput setaf 2)" # begin blink
|
||||
LESS_TERMCAP_md="$(tput bold; tput setaf 6)" # begin bold
|
||||
LESS_TERMCAP_me="$(tput sgr0)" # reset bold/blink
|
||||
LESS_TERMCAP_so="$(tput bold; tput setaf 7; tput setab 4)" # begin reverse video
|
||||
LESS_TERMCAP_se="$(tput rmso; tput sgr0)" # reset reverse video
|
||||
LESS_TERMCAP_us="$(tput smul; tput bold; tput setaf 2)" # begin underline
|
||||
LESS_TERMCAP_ue="$(tput rmul; tput sgr0)" # reset underline
|
||||
LESS_TERMCAP_mr="$(tput rev)" # revert
|
||||
LESS_TERMCAP_mh="$(tput dim)" # dimerize
|
||||
export GROFF_NO_SGR
|
||||
export LESS_TERMCAP_mb LESS_TERMCAP_md LESS_TERMCAP_me
|
||||
export LESS_TERMCAP_so LESS_TERMCAP_se LESS_TERMCAP_us
|
||||
export LESS_TERMCAP_ue LESS_TERMCAP_mr LESS_TERMCAP_mh
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC3028
|
||||
_get_prompt_time(){
|
||||
test -n "${SECONDS:-}" || return
|
||||
# shellcheck disable=SC2154
|
||||
_ptime="$((SECONDS-_saved_prompt_time))"
|
||||
printf "%02d:%02d:%02d" \
|
||||
"$((_ptime/3600))" "$(((_ptime%3600)/60))" "$((_ptime%60))"
|
||||
}
|
||||
|
||||
_git_prompt_info(){
|
||||
has git || return
|
||||
ref="$(git symbolic-ref HEAD 2>/dev/null | cut -d '/' -f3)"
|
||||
test "${ref-}" || ref="$(git describe --tags --exact-match HEAD 2>/dev/null)"
|
||||
test "${ref-}" || ref="$(git rev-parse HEAD 2>/dev/null | head -c 7)"
|
||||
test "${ref-}" || return
|
||||
# shellcheck disable=2039,3003
|
||||
case "${TERM-}" in
|
||||
*-256color|xterm-kitty) branchcolor=$'\e[38;5;31m' ;;
|
||||
*-88color|rxvt-unicode) branchcolor=$'\e[38;5;22m' ;;
|
||||
*) branchcolor=$'\e[00;94m' ;;
|
||||
esac
|
||||
if test -n "${ZSH_VERSION-}"; then
|
||||
# shellcheck disable=2016
|
||||
if test "$color_prompt" = "yes"; then
|
||||
print -Pn '(%%{$branchcolor%%}%20>...>$ref%<<%%{\e[00m%%})'
|
||||
else
|
||||
print -Pn '(%20>...>$ref%<<)'
|
||||
fi
|
||||
else
|
||||
if test "$color_prompt" = "yes"; then
|
||||
printf '%s' "($branchcolor$ref$reset_color)"
|
||||
else
|
||||
printf '%s' "($ref)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
reset_color="$(printf '%b' '\e[00m')"
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
## Use echotc Co? Only available by default for zsh, not bash.
|
||||
case "${TERM-}" in
|
||||
*-256color|xterm-kitty)
|
||||
usercolor="$(printf '%b' "\e[38;5;184m")"
|
||||
dircolor="$(printf '%b' "\e[38;5;27m")"
|
||||
;;
|
||||
*-88color|rxvt-unicode)
|
||||
usercolor="$(printf '%b' "\e[38;5;56m")"
|
||||
dircolor="$(printf '%b' "\e[38;5;23m")"
|
||||
;;
|
||||
*)
|
||||
usercolor="$(printf '%b' "\e[00;93m")"
|
||||
dircolor="$(printf '%b' "\e[01;34m")"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${ZSH_VERSION-}" in
|
||||
"") ps1_symbol="$";;
|
||||
*) ps1_symbol="%%";;
|
||||
esac
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
if test "$(id -u)" = "0"; then
|
||||
usercolor="$(printf '%b' "\e[00;97m")"
|
||||
ps1_symbol="#"
|
||||
fi
|
||||
|
||||
## Do not colorize this prompt, Sh fails to count the correct number of
|
||||
## characters on the prompt leading to problems.
|
||||
if test "${color_prompt-}" = "yes"; then
|
||||
PS1="[${usercolor}$(id -un) $(hostname -s)${reset_color}]${ps1_symbol} "
|
||||
else
|
||||
PS1="$(id -un)@$(hostname -s)${ps1_symbol} "
|
||||
fi
|
||||
## }}}
|
||||
## {{{ External Functions
|
||||
|
||||
## Source file if it is readable.
|
||||
## Usage: source_readable FILE
|
||||
source_readable(){
|
||||
for _file in "$@"; do
|
||||
# shellcheck disable=SC1090
|
||||
! test -r "${_file}" || . "${_file}"
|
||||
done
|
||||
}
|
||||
|
||||
_fzf_comprun() {
|
||||
_fzf_command="$1"
|
||||
shift
|
||||
|
||||
case "$_fzf_command" in
|
||||
cd) if has tree; then
|
||||
fzf --preview 'tree -C {} | head -200' "$@"
|
||||
else
|
||||
fzf "$@"
|
||||
fi
|
||||
;;
|
||||
export|unset)
|
||||
fzf --preview "eval 'echo \$'{}" "$@"
|
||||
;;
|
||||
ssh)
|
||||
if has dig; then
|
||||
fzf --preview 'dig {}' "$@"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
fzf --preview 'test -d {} || cat {}' "$@"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
## }}}
|
||||
## {{{ End
|
||||
## Source local shell configuration file.
|
||||
source_readable "$HOME/.shrc.local"
|
||||
## }}}
|
19
files/sh/.config/user-dirs.dirs
Normal file
19
files/sh/.config/user-dirs.dirs
Normal file
@ -0,0 +1,19 @@
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DESKTOP_DIR="$HOME/"
|
||||
XDG_DOWNLOAD_DIR="$HOME/"
|
||||
XDG_TEMPLATES_DIR="$HOME/"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/"
|
||||
XDG_MUSIC_DIR="$HOME/"
|
||||
XDG_PICTURES_DIR="$HOME/"
|
||||
XDG_VIDEOS_DIR="$HOME/"
|
5
files/sh/.config/user-dirs.locale
Normal file
5
files/sh/.config/user-dirs.locale
Normal file
@ -0,0 +1,5 @@
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
en_US
|
9
files/sh/.config/zsh/.zlogout
Normal file
9
files/sh/.config/zsh/.zlogout
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
test "0${SHLVL-}" -le 1 && test -z "${SSH_TTY-}" &&
|
||||
test "${TERM-}" = linux && clear
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user