Skip to content

Instantly share code, notes, and snippets.

View gpessia's full-sized avatar
🏠
Working from home

gpessia gpessia

🏠
Working from home
View GitHub Profile
@gpessia
gpessia / wget.sh
Created August 14, 2020 11:14 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@gpessia
gpessia / stylebot-amazon-nondisponibile.css
Created April 7, 2020 10:08
Highlight "Attualmente non disponibile" su Amazon per StyleBot
span[aria-label="Attualmente non disponibile."] {
color: white;
background-color: red;
padding: 5px;
margin-top: 2px;
display: inline-block;
border-radius: 4px;
}
span[aria-label="Attualmente non disponibile."]:before {
@gpessia
gpessia / inoreader-gustomela.css
Last active July 15, 2019 11:03
make-up per @inoreader from @gustomela
#below_tree {
background-color: #383838;
color: #8a8a8a;
}
#new_articles_overlay {
background-color: #F5548F;
border-radius: 15px;
color: #ffffff;
font-weight: bold;
@gpessia
gpessia / Pok3r-keybinds.ahk
Created July 17, 2018 10:57 — forked from a-chen/Pok3r-keybinds.ahk
Pok3r keybinds including media and volume controls
#CommentFlag //
#InstallKeybdHook
// Original Author: Jarvis Prestidge
// Enhanced by: Andrew Chen
// =========================
// Pok3r Layout Marcos
// =========================
// Includes Media Keys (Previous|Q, Play/Pause|W, Next|E)
@gpessia
gpessia / generate-articles.py
Created July 14, 2018 09:57 — forked from jaden/generate-articles.py
A script that generates 5000 test posts for Hugo benchmarks
# Create specified number of articles for Hugo benchmarks
from datetime import datetime
import random
import string
from sys import argv
def generateWord():
length = random.randint(1, 10)
word = ''.join(random.choice(string.letters) for _ in range(length))
@gpessia
gpessia / index.html
Created May 10, 2017 15:36 — forked from liuyanghejerry/index.html
Modern index file in 2017
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
<!-- content-type, which overrides http equivalent header. Because of charset, this meta should be set at first. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- Overrides http equivalent header. This tells IE to use the most updated engine. -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<!-- Tells crawlers how to crawl this page, and the role of this page. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta -->
<meta name="robots" content="index, follow">
@gpessia
gpessia / .bash_profile
Created March 24, 2017 14:45 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@gpessia
gpessia / .gitignore
Created February 2, 2017 09:20 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@gpessia
gpessia / KM-ChromeTab-Tweetdeck.scpt
Last active September 9, 2016 10:28
Keyboard Maestro Chrome Tab to Tweetdeck
# Auth: Christopher Stone <scriptmeister@thestoneforge.com>
# dCre: 2015/05/14 12:30
# dMod: 2015/05/14 13:21
# Appl: Google Chrome, System Events
# Task: Bring Chrome Tab with Gmail to front if it exists - otherwise open Gmail in new window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Google_Chrome, @System_Events
set _win to false
@gpessia
gpessia / Gulpfile.js
Created August 1, 2016 15:39 — forked from 0x1ad2/Gulpfile.js
My gulpfile example for How to enhance your front-end development workflow using Gulp
/*
* 0x1ad2 base Gulp.js file
* https://twitter.com/0x1ad2
*/
/*
* Define plugins
*/
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();