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 | |
cd /sys/kernel/config/usb_gadget/ | |
mkdir -p pi4 | |
cd pi4 | |
echo 0x1d6b > idVendor # Linux Foundation | |
echo 0x0104 > idProduct # Multifunction Composite Gadget | |
echo 0x0100 > bcdDevice # v1.0.0 | |
echo 0x0200 > bcdUSB # USB2 | |
echo 0xEF > bDeviceClass | |
echo 0x02 > bDeviceSubClass |
-
Install Homebrew:
- Follow the install instructions found on this page.
-
Tap the wonderful homebrew-php from https://github.com/Homebrew/homebrew-php
$ brew tap homebrew-php
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
black = '#282828'; | |
red = '#cc241d'; // red | |
green = '#98971a'; // green | |
yellow = '#d79921'; // yellow | |
blue = '#458588'; // blue | |
magenta = '#b16286'; // pink | |
cyan = '#689d6a'; // cyan | |
white = '#a89984'; // light gray | |
lightBlack = '#928374'; // medium gray | |
lightRed = '#fb4934'; // red |
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
dirname=$1 | |
if [ -f $dirname ]; then | |
dirname=`dirname $dirname` | |
fi | |
cd $dirname | |
if [ ! -d .git ]; then | |
exit 1 | |
fi |
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
drush pml --no-core --type=module --status=enabled --pipe | xargs drush -y dis |
What is Meteor.js?
- CLI tool (meteor)
- Library of packages
- Open source
- Built on Node.js
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 | |
for i in $(cat urls.txt); do | |
content=$(curl -I -s "{$i}") | |
echo "URL: $i" >> output.txt | |
echo "$content" >> output.txt | |
done |
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
import React, { Component } from 'react'; | |
import { | |
Box, | |
Button, | |
Collapsible, | |
Grommet, | |
Heading, | |
Image, | |
Layer, | |
ResponsiveContext, |
NewerOlder