github
Syntax Highlighting Combine diff and xxx
The old post you refer to is “Syntax Highlighted Diffs”, Dec. 2014 However, nothing in the current GFM (GitHub Flavored Markdown) suggests this particular combination (of diff and syntax highlighting) is currently supported.
How to get specific github notifications like pull requests or assigned issues?
Update Nov. 2020: you now have “Custom notification controls” This week we are giving you more control over the types of content that you are notified about on GitHub: Watching a repository can often be a double-edged sword. You want to stay up to date with a project, but if you have a specific interest … Read more
Github – link to function in source
AFAIK, no, but you can link to a certain revision of the file, and thus, you can know for sure that line will always point at the start of the function. The URL looks like /{user}/{repo}/blob/{hash}/{file}#L{line} To get it, click “Commits”, select the last commit, click “Browse code”, and find your file and line as … Read more
How to release a build artifact asset on GitHub with a script?
Update 2022: The official GitHub CLI comes with gh release upload Upload asset files to a GitHub Release. You can create the release first with gh release create Upload all tarballs in a directory as release assets $ gh release create v1.2.3 ./dist/*.tgz Upload a release asset with a display label $ gh release create … Read more
x509: certificate signed by unknown authority – both with docker and with github
As mentioned in crypto/x509/root_unix.go, Go (which is what Docker uses) will check CA certificates in “/etc/ssl/certs/ca-certificates.crt”, // Debian/Ubuntu/Gentoo etc. “/etc/pki/tls/certs/ca-bundle.crt”, // Fedora/RHEL “/etc/ssl/ca-bundle.pem”, // OpenSUSE “/etc/ssl/cert.pem”, // OpenBSD “/usr/local/share/certs/ca-root-nss.crt”, // FreeBSD/DragonFly “/etc/pki/tls/cacert.pem”, // OpenELEC “/etc/certs/ca-certificates.crt”, // Solaris 11.2+ Make sure those files are available and not corrupted. There can be also sporadic issue with the … Read more
Github shows name instead of a linked username in commits
Does your friend have the e-mail address he is using for his commits correctly set up as an alias in GitHub? Otherwise, how is GitHub to know who he is? Git itself only records the full name and the e-mail address and obviously not the GitHub username, since you can use Git perfectly fine without … Read more
Connect an issue with a commit after the commit
In your issue on GitHub, just write a comment with the commit hash. For instance: Fixed with commit 61d949320fc0bf1a8dba09b3845bddcd153b1a64 GitHub will recognize it as a SHA and link to the right commit page.
GitHub GraphQL equivalent of the contents API
After some digging, found it: query { repository(name: “repoName”, owner: “repoOwner”) { object(expression: “branch:path/to/file”) { … on Blob { text } } } } The argument passed to expression on the object field is actually a git revision expression suitable for rev-parse, so I guess you can have fun with it to do advanced querying. … Read more
NPM: Missing dist and src directories when trying to install directly from a github url
What worked for me was: commiting /dist to gh running npm install {username}/{repo}.git instead of manually adding the record to package.json