Copyright 2015 Barry Allard
cmake_minimum_required(VERSION 3.5) | |
project(_hello) | |
# Find python and Boost - both are required dependencies | |
find_package(PythonLibs REQUIRED) | |
find_package(PythonInterp REQUIRED) | |
find_package(PythonExtensions REQUIRED) | |
find_package(Cython REQUIRED) | |
find_package(ZLIB REQUIRED) |
# ASL | |
pkgname=coinasl | |
pkgver=1.4.1 | |
pkgrel=1 | |
pkgdesc="COIN-OR autotools harness to build AMPL Solver Library" | |
arch=('i686' 'x86_64') | |
url="https://github.com/coin-or-tools/ThirdParty-ASL/" | |
#license=('') | |
groups=('coin-or') |
Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
# Ignore all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### |
#!/usr/bin/env bash | |
######################################################################### | |
## Title: reposync.sh | |
## Description: Syncs multiple git repositories in ~/tools/ based on the | |
## ~/.repolist file. Put each repo URL in there. | |
## Author: Andrew Lamarra | |
## Created: 01/23/2019 | |
## Dependencies: bash (v4.0+), git | |
######################################################################### |
Install
Pylint
from Install. If you have anaconda already installed usepip install -U pylint
to update thePylint
so thatpyreverse
is added to the scripts folder.You need to install Graphviz as the pyreverse generates the UML diagrams in dot format and needs the dot.exe provided by Graphviz. Once Graphviz is installed make sure the bin folder is added to the
PATH
variable so that pyreverse can find it at run time. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." (ReferenceNow add the path of python modules for which you want to generate the documentation to PYTHONPATH.
Use pyreverse -S <modulename> to generate dot files in the current folder
Usage:
FROM manimcommunity/manim:v0.3.0 | |
COPY --chown=manimuser:manimuser . /manim |