Skip to content

Instantly share code, notes, and snippets.

View seanpk's full-sized avatar

Sean Kennedy seanpk

View GitHub Profile
@seanpk
seanpk / Restricting_Computer_Use_on_Linux.md
Last active August 8, 2018 23:12
Restricting Computer Use on Linux

Restricting Computer Use on Linux

For time of day

Original Source... the key points and edits are abstracted below.

Preventing sign-in by any user but me between 10 PM and 8 AM

Add the lines below to the end of each listed file.

@seanpk
seanpk / keybindings.json
Last active May 18, 2017 02:24
Tab-less VS Code (as it was intended)
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+tab",
"command": "workbench.action.openPreviousEditorFromHistory"
},
{
"key": "ctrl+tab",
"command": "workbench.action.quickOpenNavigateNext",
"when": "inQuickOpen"
@seanpk
seanpk / redoc-breaker.json
Created February 1, 2017 13:10
OpenAPI spec that does not render in ReDoc
{
"swagger": "2.0",
"info": {
"version": "undefined",
"title": "BlueOak server support for special responses",
"description": "Expose the X to the network for use by clients built on Y\n"
},
"basePath": "/api/foo",
"produces": ["application/json"],
"paths": {
@seanpk
seanpk / git-log-commit-diff
Last active February 24, 2016 15:43
compare the commits between a local branch and it's remote
#!/bin/sh
current=`git rev-parse --abbrev-ref HEAD`
remotes=`git remote`
if [ -z "$1" ] ; then
echo "USAGE: git-log-commit-diff <branch>"
echo " compares the commits between the current branch and <branch>"
echo " - if <branch> is one of your 'remotes' your local branch will"
echo " be compared against its remote version"
exit 1
@seanpk
seanpk / QueryAddress.json
Last active February 17, 2016 22:03
Code snippets referenced from the pointsource.com blog: 3 Best Practices for API Development with Swagger (Open API)
{
"name": "address",
"in": "query",
"required": false,
"type": "string",
"description": "A string representing the address to be geocoded and used in a query.\nThis string should consist of a combination of components such as:\nstreet address, city, state, and zip code.\n\n**Examples**:\n\n1. `address=123 main st, fl`\n2. `address=33133`\n3. `address=401 Channelside Dr, Tampa, FL 33602`\n"
}
@seanpk
seanpk / vscode.desktop
Created May 4, 2015 13:24
linux .desktop file for Visual Studio Code
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/home/sean/Development/vscode/Code %F
Name=VSCode
Comment=Cross-platform Editor from Microsoft
Icon=/home/sean/Development/vscode/resources/app/vso.png
@seanpk
seanpk / firefoxde.desktop
Last active August 6, 2019 12:13
linux .desktop file for Firefox Developer Edition
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/home/sean/Development/firefox/firefox %U
Name=Firefox Developer Edition
Comment=The COOL Browser from Mozilla
Icon=/home/sean/Development/firefox/browser/icons/mozicon128.png