Skip to content

Instantly share code, notes, and snippets.

View MrHallows's full-sized avatar
🎯
Still waiting for my fellow Americans to wake the fuck up before it's too late.

MrHallows MrHallows

🎯
Still waiting for my fellow Americans to wake the fuck up before it's too late.
View GitHub Profile
@MrHallows
MrHallows / express_in_electron.md
Created October 28, 2021 04:37 — forked from maximilian-lindsey/express_in_electron.md
How to run Express inside an Electron app

How to run Express inside an Electron app

You can run your Express app very easily inside your Electron app.

All you need to do is to:

  • place all the files of your Express app inside a new app folder in your_electron_app\resources\app
  • reconfigure the app.js file
  • refactor some relative pathes in your Express app
@MrHallows
MrHallows / hex-opacity-values.css
Last active August 3, 2022 22:03 — forked from frankyonnetti/CSS--hex-opacity-values.css
#css Hex Opacity Values
/* *
* Hex Opacity Values
*/
:root {
--hex-opacity-100: 'FF'; // 100%
--hex-opacity-95: 'F2'; // 95%
--hex-opacity-90: 'E6'; // 90%
--hex-opacity-85: 'D9'; // 85%
--hex-opacity-80: 'CC'; // 80%
@MrHallows
MrHallows / ComcastInject.html
Created January 9, 2021 12:35 — forked from ryankearney/ComcastInject.html
This is the code Comcast is injecting into its users web traffic.
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
@MrHallows
MrHallows / robots.txt
Created December 18, 2020 11:23
A slightly more robust bot deterrent.
# This file should prevent the site/server from being indexed by search engines.
User-agent: * # match all bots
Disallow: / # tell them to fuck off
User-Agent: Googlebot
Disallow: /
User-Agent: Googlebot-Mobile
Disallow: /
@MrHallows
MrHallows / adb_full_backup_restore.md
Created September 29, 2020 14:54
ADB Full Backup/Restore Commands

ADB Full Backup Command:

adb backup -apk -shared -all -f <filepath>

Example:

adb backup -apk -shared -all -f C:\path\to\backups\android_backup_YYYY-MM-DD.ab
@MrHallows
MrHallows / fastboot_help.md
Last active June 25, 2024 16:00
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:

Keybase proof

I hereby claim:

  • I am mrhallows on github.
  • I am mrhallows (https://keybase.io/mrhallows) on keybase.
  • I have a public key ASDCP6ZWucgnbOa9_91Kvnhfw_khWvbFuwGnVD66j68sMgo

To claim this, I am signing this object: