- 4
- 13
- 4
- 7
Generated from TLDR This:
Where is the heart of the technology industry?
The simple answer is “Silicon Valley,” a term that now generally means the San Francisco-San Jose-Oakland area of California.
The Exchange explores startups, markets and money.
To answer that question, we have to understand how Silicon Valley compares to the larger United States venture capital and startup market; if Silicon Valley is truly losing its dominance domestically, it certainly cannot claim an international title.
https://t.co/5UabCGkHqb — Chamath Palihapitiya (@chamath) September 26, 2022 In time, I do anticipate that a more global tech industry will dilute Silicon Valley’s former hegemony as the spawning point for what’s next, and it will become more figurehead than anything else.
- 33
- 52
- 9
- 31
- 10
- 22
- 12
- 31
Orange Site:
- Sexual_Harrassment_Earwig : OH SHT LE ORANGE SITE BAD
- 11
- 31
- 4
- 11
This lolsuit could not only affect the IA, but the entire US library system. Anyway,
Orange Site:
- 25
- 32
Hard to believe just a decade ago or even 3-5 years ago, Reddit was known as a bastion of free speech.
- LatinxGroyperCivilWar : PIBBLE RIGHTS
- 60
- 53
- 41
- 40
- 27
- 57
Orange site during outage: https://news.ycombinator.com/item?id=38127313
Orange site on the post-mortem: https://news.ycombinator.com/item?id=38138640
- 31
- 26
A user asked me the below.
Hey, did you use any guides for setting up your pie hole and/or installing the button?
Was interested in making one of these as well.
Any tips or w/e would be appreciated, thanks!
This was my response. which is probably definitely rslurred but w/e
!codecels roast me
No Guides, but happy to give tips, and follow ups where things are unclear.
Button is pretty cool for sure... but you can do everything you need to do from your computer and phone.
A pihole does not protect you unless you set it up as your DNS on your router.
I would also recommend setting up a vpn to your home network using openvpn that way you can take your protection on the go, itll protect you from getting throttled by your cell phone provider too
Parts
-
Get a raspberry pi (here is fine https://www.raspberrypi.com/)
-
- get a case/fan if you are so inclined but I would consider it extra
-
- will come with an sd card and an sd card reader
-
- should come with a power cord
-
Breadboard https://www.amazon.com/dp/B0BNH7LYH3
-
resistor https://www.amazon.com/dp/B01GQFVSXK
Config Pi
-
Download the Raspberry Pi Imager from here https://www.raspberrypi.com/software/
-
Install pi lite on the SD card
-
- During Install configure the thing for wifi and ssh
-
- Set up a user for yourself on there and a password
-
Put the SD card into the Pi (contacts towards the board)
-
Start up the Pi and ssh into it
-
Install Pihole (follow these instructions https://github.com/pi-hole/pi-hole/#one-step-automated-install)
Code
-
Look its probably right... but how you set this thing up makes a difference
-
Put this on your Pi maybe call it buttonscript.js
-
{YOUR USER HERE} needs to be swapped out for the user you created
const fs = require('fs');
const Gpio = require('onoff').Gpio;
const { exec } = require('child_process');
// GPIO pin number
const buttonPin = 17;
const logFilePath = '/home/{YOUR USER HERE}/buttonscript.log';
// Setup the button GPIO as input
const button = new Gpio(buttonPin, 'in', 'falling', { debounceTimeout: 200 });
// Function to disable Pi-hole blocking for 5 minutes
function disablePiHole() {
const timestamp = new Date().toISOString();
const logMessage = [${timestamp}] Button pressed. Disabling Pi-hole for 5 minutes...
;
console.log(logMessage);
fs.appendFile(logFilePath, logMessage + '\n', (err) => {
if (err) {
console.error('Error writing to log file:', err);
}
});
exec('pihole disable 5m');
}
// Add event listener to the button
button.watch(disablePiHole);
// Cleanup GPIO on process exit
process.on('SIGINT', () => {
button.unexport();
process.exit();
});
Service
-
This thing needs to start back up when power fails so you need to set it up to do that
-
go here
cd /etc/systemd/system/
-
run this to create it
sudo nano buttonscript.service
[Unit]
Description=Button Script
After=network.target
[Service]
ExecStart=/usr/bin/node /home/{YOUR USER HERE}/buttonScript.js > /home/{YOUR USER HERE}/buttonscript.log 2>&1
WorkingDirectory=/home/{YOUR USER HERE}/
Restart=always
User={YOUR USER HERE}
[Install]
WantedBy=multi-user.target
-
save and exit nano
-
run this
sudo systemctl enable buttonscript.service
-
run this
sudo systemctl start buttonscript.service
Circuit
-
find your pinout, I am showing a 4b there are others
-
3.3 to a rail on the + side of the breadboard at the top using these wires https://www.amazon.com/dp/B01EV70C78
-
in that top rail, put the resistor in
-
resistor to the left hand side on maybe the top row of the breadboard
-
gpio 17 to left side on that row using these wires https://www.amazon.com/dp/B01EV70C78
-
button to left side on that row use the breadboard wires there
-
other terminal on the button to the right side of the breadboard
-
ground to right side on that row using these wires https://www.amazon.com/dp/B01EV70C78
Package to suit, and your done
- 5
- 19
I unironically hope Meta goes bankrupt soon.