This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sed -f | |
# | |
# Ĉi tiu verko estas markita per "CC0 1.0" (t.e. publika havaĵo). | |
# https://eo.wikipedia.org/wiki/Krea_Komunaĵo | |
# | |
# La skripto tradukas la literojn de la norma Esperanto en la literojn | |
# de la cirila alfabeto, pli malpli laŭ la tradicia transliterumo: | |
# https://eo.wikipedia.org/wiki/Transliterumo_de_Esperanto | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: public | |
jobs: | |
make-private: | |
runs-on: ubuntu-latest | |
steps: | |
- run: gh repo edit ${{ github.repository }} --visibility private --accept-visibility-change-consequences | |
env: | |
GH_TOKEN: ${{ secrets.KEEP_REPO_PRIVATE }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Xml.XPath; | |
using Microsoft.OpenApi.Models; | |
namespace Swashbuckle.AspNetCore.SwaggerGen; | |
// This is a slightly modified version of the built-in XmlCommentsSchemaFilter. | |
// Currently our only modifications are that we append the contents of the <remarks> section to the description for each schema item. | |
public class CustomXmlCommentsSchemaFilter : ISchemaFilter | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Caching npm packages | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
paster() { | |
while read email; do | |
[ -z "$email" ] || echo "$1" "$email" | |
done | |
} | |
grouper() { | |
IFS="<" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets | |
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target> | |
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" /> | |
<Target Name="BeforeBuild" /> | |
<Target Name="AfterBuild" /> | |
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target> | |
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" /> | |
<Target Name="BeforeRebuild" /> | |
<Target Name="AfterRebuild" /> | |
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" /> |
Ever needed a tutorial or just download non copyrighted material from YouTube to watch or listen offline?
YouTube-dl is a command-line tool which is open source and can be used to download videos from YouTube, Facebook, and other popular sites, see the full list here.
NOTE: Keep in mind some media contains copyrighted material.
I usually host a projects GitHub pages (docs/
) and build service configration files (e.g. .travis.yml
or .appveyor.yml
) together with the projects source in the master branch. When creating a release, github creates a zip and a tar archive (the so called zipball and tarball), which can also be created these links:
https://api.github.com/repos/:user/:project/tarball
https://api.github.com/repos/:user/:project/zipball
or for a specific release:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone entire site. | |
wget --content-disposition --execute robots=off --recursive --no-parent --continue --no-clobber http://example.com | |
# Remove query string from a static resource. | |
for i in `find $1 -type f -name "*\?*"`; do mv $i `echo $i | cut -d? -f1`; done |
NewerOlder