netsh dhcp server \ourdnsserver scope 192.168.1.0 show clients 1 | findstr raspberrypi
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 | |
echo '.. checking apt cache' | |
timestamp_file="$(mktemp)" | |
touch -d "$(date -R -d '1 day ago')" $timestamp_file | |
file=/var/lib/apt/periodic/update-success-stamp | |
if [ $file -ot $timestamp_file ]; then | |
echo '.. old apt cache' | |
apt-get update | |
apt-get upgrade -y |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="utf-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2"> | |
<Folder> | |
<Document> | |
<name>svardlang</name> | |
<Style id="ISO:1m"> | |
<PolyStyle> | |
<color>e60000cc</color> | |
<fill>true</fill> | |
<outline>false</outline> |
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
#!/usr/bin/env bash | |
# This file fairly close follows the recommendations in | |
# http://dancingpenguinsoflight.com/2009/02/python-and-vim-make-your-own-ide/ | |
# | |
#MIT/Expat License | |
#Copyright (C) 2010 by Peter Magnusson <peter[at]birchroad.net> | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights |
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 | |
# | |
# pylink.sh - Link a Python module to your site packages directory. | |
# | |
# See http://gist.github.com/21649 for updates. | |
# Check that an argument has been given. If not, print usage string. | |
if [ -z $1 ] | |
then | |
echo "Usage: `basename $0` <path_to_module> [<link_name>]" |
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
//Om du ändrar kortet så byt pinnarna | |
#define TRIGGER_PIN 5 | |
#define BUTTON1_PIN 4 | |
#define LED1_PIN 3 | |
#define LED2_PIN 2 //används inte just nu | |
#define CTRL_ENABLE1_PIN 6 //aktiverar motordrivaren | |
#define CTRL_INPUT1_PIN 7 //rikning1 för motor | |
#define CTRL_INPUT2_PIN 8 //rikting2 för motor |
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
/* | |
* (The MIT License) | |
* | |
* Copyright (c) 2011 Peter Magnusson <kmpm@birchroad.net> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* 'Software'), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to |
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 | |
# Alloc's Minecraft Installer: | |
# feel free to change, update, improve, and release this script | |
# suggestions of feedback? reach me at alloc@dr.com | |
# This script, in no way, is directly distributing any protected minecraft files |
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 | |
#### wget -qO- http://goo.gl/kmNvU | sh | |
sudo aptitude install -y git | |
git clone git://gist.github.com/1501928.git gist-1501928 | |
cd gist-1501928 | |
git pull origin master | |
chmod +x *.sh |
OlderNewer