type | description | release type |
---|
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/python | |
# A Wake on LAN program that allows you to send magic packets over the Internet | |
import socket, struct | |
class Waker(): | |
def makeMagicPacket(self, macAddress): | |
# Take the entered MAC address and format it to be sent via socket | |
splitMac = str.split(macAddress,':') | |
# Pack together the sections of the MAC address as binary hex |
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
/* courtesy of https://scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli */ | |
const express = require('express'); | |
const router = express.Router(); | |
/* GET api listing. */ | |
router.get('/', (req, res) => { | |
res.send('api works'); | |
}); | |
module.exports = router; |
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
<!-- vim: set ts=2 et sw=2 sts=2: --> | |
<configuration> | |
<system.web> | |
<customErrors mode="off" /> | |
</system.web> | |
<system.webServer> | |
<httpErrors existingResponse="PassThrough" /> |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
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
# Google Distance Matrix Python Demo | |
# ================================== | |
# | |
# How to set up (Local part) | |
# -------------------------- | |
# | |
# Must have Python (>= 3.4) installed with 'requests' library. On Windows, maybe try | |
# Anaconda Python? It has a 'conda' package manager, make sure 'requests' is installed. | |
# | |
# How to set up (Internet part) |
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
from random import * | |
import win32api, win32con, time, Tkinter as tk | |
def click(x, y): | |
# cursor move | |
win32api.SetCursorPos((x, y)) | |
# click event call | |
# win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0) | |
# win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0) |
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
abusaidm.html-snippets | |
akamud.vscode-theme-onedark | |
Angular.ng-template | |
austin.code-gnu-global | |
bencoleman.armview | |
castwide.solargraph | |
CoenraadS.bracket-pair-colorizer | |
dbaeumer.vscode-eslint | |
donjayamanne.python | |
eamodio.gitlens |
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
{ | |
// Place your snippets for sql here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
For this project I simply want to have a raspberry pi start and launch a browser in kiosk mode. This pi would act as a status board letting passersby know the status of whatever is being displayed by the pi.
- Download and burn raspian to a micro sd.
- Log into the Pi with the default
pi
user and launchsudo rapsi-config
. - Set localization options if necessary.
- Change the default password.
- Configure the boot to
Desktop/CLI
and chooseConsole auto login
.
OlderNewer