Skip to content

Instantly share code, notes, and snippets.

View swipswaps's full-sized avatar

#swipswaps swipswaps

View GitHub Profile
@swipswaps
swipswaps / output.json
Created May 17, 2021 14:34 — forked from jeffgca/output.json
Get 10k extensions from the chrome web store.
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",
@swipswaps
swipswaps / ebay_scraper.py
Created October 16, 2021 15:56 — forked from fadere/ebay_scraper.py
python code to scrape ebay historical auction results
import csv
import requests
import bs4
import argparse
# parser = argparse.ArgumentParser(description='Process a list of search terms.')
# parser.add_argument('terms', metavar='N', type=str, nargs='+',
# help='comma separated list of terms to search for')
# args = parser.parse_args()
@swipswaps
swipswaps / prefs.js
Created February 10, 2020 13:24
Firefox hardened config prefs.js
// Mozilla User Preferences
// DO NOT EDIT THIS FILE.
//
//READ READ READ READ
// I personally reccomend using HTTPS Everywhere, Privacy Badger, Decentraleyes, Privacy Possum and uBlock Origin
// They will block most trackers and ads and keep your traffic safe :)
// If you make changes to this file while the application is running,
@swipswaps
swipswaps / build-tensorflow-from-source.md
Created September 6, 2018 16:34 — forked from Brainiarc7/build-tensorflow-from-source.md
Build Tensorflow from source, for better performance on Ubuntu.

Building Tensorflow from source on Ubuntu 16.04LTS for maximum performance:

TensorFlow is now distributed under an Apache v2 open source license on GitHub.

On Ubuntu 16.04LTS+:

Step 1. Install NVIDIA CUDA:

To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit as shown:

@swipswaps
swipswaps / README.md
Created September 22, 2022 13:15 — forked from Nokius/README.md
[Terraform][proxmox] small VM created with terraform on proxmox

terraform-provider-proxmox

simple VM created with terraform-provider-proxmox

  • one core
  • 512MB RAM
  • Ubuntu netinstall CDROM
  • 32GB IDE HDD
  • bridged network interface
@swipswaps
swipswaps / failover.sh
Created August 23, 2022 21:38 — forked from Apsu/failover.sh
An example failover script for dual WAN, using a ping healthcheck and managing default routes appropriately
#!/bin/bash
# Set defaults if not provided by environment
CHECK_DELAY=${CHECK_DELAY:-5}
CHECK_IP=${CHECK_IP:-8.8.8.8}
PRIMARY_IF=${PRIMARY_IF:-eth0}
PRIMARY_GW=${PRIMARY_GW:-1.2.3.4}
BACKUP_IF=${BACKUP_IF:-eth1}
BACKUP_GW=${BACKUP_GW:-2.3.4.5}
@swipswaps
swipswaps / using-svelte-vercel.md
Created December 23, 2021 01:01 — forked from PierBover/using-svelte-vercel.md
Using Svelte in a Vercel serverless function

Using Svelte in a Vercel serverless function

The easiest way of using Svelte for SSR in Node is by using svelte/register. This allows to require .svelte files without any bundling and render HTML, CSS, etc.

This is the example from the docs:

require('svelte/register');

const App = require('./App.svelte').default;
@swipswaps
swipswaps / swipswaps.txt
Last active December 21, 2021 17:04
clipboard substitution of forward slash characters to underscore using xsel or xclip
//xsel or xclip awk clipboard substitution of forward slash characters
//Copyright ©2021 by @swipswaps, All rights reserved.
//https://gist.github.com/swipswaps/2b366eb07168e0ec620ee6ea6b225cbe
//clipboard substitution of forward slash characters to underscore using xsel
#echo $(xsel -ob) |awk '{gsub(/\//,"_",$0)}1' |xsel -ib && xsel -ob
//clipboard substitution of forward slash characters to underscore using xclip
#echo $(xclip -o -selection clipboard) |awk '{gsub(/\//,"_",$0)}1' |xclip -selection c && echo $(xclip -o -selection clipboard)
//install gh in linux
//Copyright ©2021 by @swipswaps, All rights reserved.
//from computingforgeeks.com/how-to-install-github-cli-on-linux-and-windows
//https://gist.github.com/swipswaps/e417ef24bfa759aad46bb9c3e9461edf
#VERSION=`curl "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-` && echo $VERSION
#wget -c https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz && tar xvf gh_${VERSION}_linux_amd64.tar.gz && sudo cp gh_${VERSION}_linux_amd64/bin/gh /usr/local/bin/ && gh version
#gh auth login
@swipswaps
swipswaps / certbot-renew
Created December 2, 2021 23:11 — forked from ajaegers/certbot-renew
Simple Certbot (Let's Encrypt) script for auto-renewal certificates
# Put this file in folder /etc/cron.d/
MAILTO="debug@example.com"
0 1 * * * root /usr/local/sbin/certbot-renew.sh