Skip to content

Instantly share code, notes, and snippets.

View surendharreddy's full-sized avatar

Surendhar Reddy surendharreddy

View GitHub Profile
@cellularmitosis
cellularmitosis / README.md
Last active November 22, 2022 18:59
NAT/DHCP/DNS on a Raspberry Pi 1B

Blog 2020/2/4

<- previous | index | next ->

NAT/DHCP/DNS on a Raspberry Pi 1B

This is a tutorial on how setup a Raspberry Pi as a NAT router, with custom local DNS.

// Note this is against Twitter's Terms of Service, so it's just for fun :)
const btns = Array.from(document.querySelectorAll('[data-testid]'))
const unfollows = btns.filter(btn => btn.textContent == "Following")
for (let i = 0; i <= unfollows.length; i++){
setTimeout(function () {
unfollows[i].click();
setTimeout(function () {
const confirm = document.querySelector('[data-testid="confirmationSheetConfirm"]');
@imranariffin
imranariffin / navigations.index.js
Last active August 7, 2021 08:51
React Native Private/Public Screen Pattern - Wrap the `@react-navigation/stack` to be auth aware (Note: replace `.` in file names with `/` to make more sense)
import AScreen from 'screens/A'
import BScreen from 'screens/B'
import MainScreen from 'screens/Main'
import SignInScreen from 'screens/SignIn'
import SignUpScreen from 'screens/SignUp'
import SomeNestedScreen from 'screens/SomeNested'
import StackNavigator from './stack-navigator'
const Navigations = () => {