This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Write to file</title> | |
</head> | |
<body> | |
<?php | |
if (isset($_POST['userdata'])) { | |
$userdata = trim($_POST['userdata']); |
This file contains 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
syntax enable | |
filetype plugin on "netrw packaged w/ vim core | |
set backspace=indent,eol,start | |
set number "Line numbers | |
" set relativenumber "Show line # relative to current line | |
set mouse=a "Use mouse to scroll | |
set exrc "execute vimrc within pwd | |
set clipboard=unnamed "share clipboard with X sessions | |
set autoindent "Automatically indent new lines |
This file contains 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
#include "windspeed.h" | |
/** | |
* Interrupt Service Routine to run when a hall effect sensor triggers a rising interrupt | |
*/ | |
void windspeed_isr(void) | |
{ | |
windspeed_revs++; | |
} |
This file contains 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/bash | |
KEYFILES=~/.ssh/*.pub #All public key files in git/.ssh | |
AUTHFILE=~/.ssh/authorized_keys #File to store authorized keys | |
echo 'Building authorized keys file' | |
# Clear current authorized keys file | |
if [ -e $AUTHFILE ]; then |
This file contains 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/bash | |
# Paste at Pastebin.com using command line (browsers are slow, right?) | |
# coder : Anil Dewani | |
# date : Novemeber 7, 2010 | |
#help function | |
howto() | |
{ | |
echo "\ | |
Pastebin.com Bash Script \ |
This file contains 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/bash | |
## | |
## Skeleton Script that does nothing useful. This is the script that I copy | |
## when I make other scripts. | |
## | |
## Usage: _PROG_ [OPTIONS] | |
## | |
## Options: | |
## -h --help Display help message and exit | |
## |
This file contains 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/bash | |
set -e # Stop on any error | |
# Path on this machine to source code (omit trailing slash) | |
SOURCEPATH=~/deploy/myproject | |
# Path on remote server to place source code (omit trailing slash) | |
DESTPATH=/var/www/myproject | |
# Space separated list of hosts |
This file contains 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
# This Makefile generates files for printing SCAD documents | |
# Copyright (C) 2016 Kenneth Barbour | kenbarbour.com | |
# License: GNU GPL v3 (or later) | |
## make all Generate STL for each SCAD file | |
## make gcode Generate gcode for each SCAD file | |
## SCAD Compiler | |
SCADC?=openscad | |
## Slicing program |