An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
# This is free and unencumbered software released into the public domain. | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# In jurisdictions that recognize copyright laws, the author or authors | |
# of this software dedicate any and all copyright interest in the | |
# software to the public domain. We make this dedication for the benefit |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
# Config for GNU GRand Unified Bootloader (GRUB) (2) | |
# /boot/grub/grub.cfg | |
# or | |
# /boot/grub2/grub.cfg | |
# This grub.cfg file was created by Lance http://www.pendrivelinux.com | |
# Suggested Entries and the suggestor, if available, will also be noted. | |
# and then improved by Pysis. |
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "helio-workstation"; | |
version = "e5b39bf9efa66d75d93b82c9bdc8abbeb509cd6b"; | |
src = fetchFromGitHub { | |
owner = "helio-fm"; | |
repo = "helio-workstation"; | |
rev = "${version}"; |
with import {}; | |
stdenv.mkDerivation rec { | |
name = "carla-${version}"; | |
version = "1.9.12"; | |
src = fetchFromGitHub { | |
owner = "falkTX"; | |
repo = "Carla"; | |
rev = "v${version}"; |
First at all, falsehoods programmers believe about musical tuning:
#!/usr/bin/env bash | |
statefile=~/.config/nixpkgs/declarative | |
action="$1" | |
package="$2" | |
mkdir -p $(dirname "$statefile") | |
touch "$statefile" | |
function update { | |
envExpr=~/.config/nixpkgs/declarative-env.nix |
explainshell.com is a web app for intelligently
displaying man
page help text for a given command line.
This is helpful and convenient ... and anyone working from the command-line is going to want a CLI variant for obvious reasons.
There's been a number of requests for a CLI on explainshell's issue list.
In liue of a thin-client that queries a currently non-existing RESTful API
#!/bin/bash | |
# | |
# Copyright 2016-2017 Martin Goellnitz | |
# | |
# update gitlab api | |
# https://gist.github.com/dubiouscript/5553dce89497ffd9805dd0de16503e8d | |
# -dscript- | |
# | |
# 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 |