Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
@phanatagama
phanatagama / Tiktok Views.js
Last active March 25, 2025 03:33
Get more Views in Tiktok Apps
// ==UserScript==
// @name TTAV
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Educational Purpose (they said)
// @author kangoka
// @include https://fireliker.com/*
// @include https://lputorrents.xyz/*
// @match https://bugsliker.me/index.php?info=Session_Expired
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
@cderv
cderv / 00-New setup.md
Last active April 20, 2025 16:11
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
plugins=(
git
bundler
dotenv
osx
rake
rbenv
ruby
kubectl
pipenv
@brettmillerb
brettmillerb / zshrc-theme
Last active August 25, 2022 06:09
.zshrc | macOs
# Path to your oh-my-zsh installation.
export ZSH="/Users/brett.miller/.oh-my-zsh"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# Set name of the theme to load
ZSH_THEME="powerlevel9k/powerlevel9k"
DISABLE_AUTO_TITLE="true"
# Plugins
@brucebentley
brucebentley / Reddit_Wallpaper_Scraper.py
Created June 24, 2020 01:47
A script that downloads r/wallpaper's hottest 100 images and cycles through them as a wallpaper! Please Note: All of the credentials are hidden. Refer to this post to set them up and get it working for yourself ( expected setup time: 5-10 mins ): https://www.storybench.org/how-to-scrape-reddit-with-python/
import praw
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
from urllib.parse import quote
import requests
import sys
import os
os.chdir("/Users/student/Desktop/Background_Images")
print("Navigated to directory...")
@alukach
alukach / app.yaml
Last active July 24, 2024 13:54
An example Github Actions for Python + Pipenv + Postgres + Pyright
# .github/workflows/app.yaml
name: My Python Project
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
@brucebentley
brucebentley / get-image-urls.js
Last active May 20, 2023 04:28
Save images from chrome inspector/dev tools network tab
/**
* 1. Open up chrome dev tools ( Menu > More tools > Developer tools )
* 2. Go to network tab, refresh the page, wait for images to load
* Note: ( some sites you may have to scroll down to the images
* for them to start loading )
* 4. Right click on any entry in the network log, select:
* Copy > Copy All as HAR
* 5. Open up JS console and enter:
* var har = [paste]
* Note: ( pasting could take a while if there's a lot of requests )
@donrestarone
donrestarone / config.txt
Created March 17, 2020 19:38
a sample config.txt for dual hdmi raspberry pi 4 (use this fix if your raspberry pi 4 is not sending a video signal to your monitor)
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
@asmagin
asmagin / index.js
Created March 9, 2020 04:46
MS Teams Notifications Lambda
const fetch = require("node-fetch");
const IN_PROGRESS_IMAGE = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAAExAAIAAAAQAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQubmV0IDQuMi44AP/bAEMABgQFBgUEBgYFBgcHBggKEAoKCQkKFA4PDBAXFBgYFxQWFhodJR8aGyMcFhYgLCAjJicpKikZHy0wLSgwJSgpKP/bAEMBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/AABEIACgAKAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo
@kiriwalawren
kiriwalawren / README.md
Last active August 22, 2024 19:50
WSL Configuration

Installing WSL (windows subsystem for linux)

Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:

Install WSL