# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT
# set http proxy with user and password (with special characters)
# Please take the time to finish this file as described in | |
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ | |
# and make it available to others by sending it to | |
# <[email protected]> | |
# | |
# This config file was automatically generated | |
# using lirc-0.10.1(default) on Wed Jun 15 19:30:21 2022 | |
# Command line used: -d /dev/lirc0 this_special_remote.conf | |
# Kernel version (uname -r): 5.10.92+ | |
# |
#!/usr/bin/env node | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const commitFile = process.argv[2]; | |
const fromIDE = !process.stdout.isTTY; | |
if (fromIDE) { | |
process.exit(0); |
var gulp = require('gulp'); | |
var regexScanner = require('./regex-scanner'); | |
gulp.task('find-usage:myprefix', function() { | |
// Répertoire où se situe les sources | |
var sourceFolder= './application/'; | |
// Les fichiers sources à vérifier | |
var filesToCheck= [ | |
sourceFolder+ '**/*.ts', |
#!/bin/bash | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
###Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH is
Open http://192.168.61.1
Or
import rainbowhat as rh | |
rh.rainbow.set_pixel(0, 255, 0, 0) | |
rh.rainbow.show() | |
####################### | |
import rainbowhat as rh | |
import time |
hciconfig | |
hciconfig hci0 up | |
hciconfig hci0 reset | |
# Scan for Bluetooth devices | |
hcitool scan |
#!/usr/bin/env python3 | |
import colorsys | |
import rainbowhat as rh | |
from rainbowhat import display, lights, weather, rainbow, buzzer, touch | |
import time | |
import signal | |
from subprocess import Popen, PIPE | |
import asyncio | |
import glob |