Skip to content

Instantly share code, notes, and snippets.

View rgaspary's full-sized avatar
🌎
Working From Earth

Renzo Gaspary rgaspary

🌎
Working From Earth
View GitHub Profile
@rgaspary
rgaspary / commands.md
Created February 28, 2022 14:08
Windows 11 Classic Right Click Menu

To Enable

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f

To Dissable

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

Source

@rgaspary
rgaspary / wpa_supplicant.conf
Created January 13, 2022 15:17
Basic wifi configuration for any new headless Raspberry Pi configuration
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=[WIFI COUNTRY CODE]
network={
ssid="[NETWORK SSID]"
psk="[NETWORK PASSWORD]"
}
# Inserts a blank line between shell prompts
add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
# Disable the package module, hiding it from the prompt completely
[package]
disabled = false
@rgaspary
rgaspary / modal.html
Last active August 29, 2015 14:06
Playing around making a modal
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<button type="" class="modal_btn">Show Modal</button>
<div class="modal_window">
<h1>Hello world</h1>
<button class="close_button">Close</button>
@rgaspary
rgaspary / Cookie.js
Last active August 29, 2015 14:05
Cookie handling script I wrote to show and hide categories in a sidebar storing the settings in a cookie.
@rgaspary
rgaspary / IE7_Placeholder.js
Created July 3, 2014 20:20
This is a placeholder fix made by Guillaume Gaubert that gives IE7 the ability to render the placeholder text and also removes it allowing users to enter text.
/*-- PLUGIN --*/
/*
*
* Placeholder.js 1.1
* Creates placeholder on inputs/textareas for browsers that don't support it (well, IE...)
*
* @ Created by Guillaume Gaubert
* @ http://widgetulous.com/placeholderjs/
* @ © 2011 Guillaume Gaubert
*
@rgaspary
rgaspary / Chameleon.js
Created June 28, 2013 14:21
Random Color changing Div
var count = 8;
var colors = ["#FFA722","#22D3FF","#0AB418","#854BFF","#FF2663","#FF0D4C","#FFA722","#FF0D4C"];
for (var i = 0; i < count; i++){
var rand = Math.floor(Math.random()*colors.length);
$('#skill' + i).css("background-color", colors[rand]);
}
window.setInterval( function () {
var hue = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
@rgaspary
rgaspary / navigation.html
Created June 27, 2013 16:24
Highlight Navigation on Hover
<div id="nav" class="">
<ul>
<li class="nav" id="1"><a href="#" title="Home">Home</a></li>
<li class="nav" id="2"><a href="#" title="About Us">About Us</a></li>
<li class="nav" id="3"><a href="#" title="Contact Us">Contact Us</a></li>
<li class="nav" id="4"><a href="#" title="Manage Suscriptions">Manage Suscriptions</a></li>
<li class="nav" id="5"><a href="#" title="Job Seekers">Job Seekers</a></li>
<li class="nav" id="6"><a href="#" title="Advertise">Advertise</a></li>
<li class="nav" id="7"><a href="#" title="Work Programs">Work Programs</a></li>
</ul>
@rgaspary
rgaspary / html5-starter.html
Last active December 19, 2015 01:39
HTML5 Starter File
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="robots" content="index, follow" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<title></title>
<!-- iPhone Icon -->
@rgaspary
rgaspary / reset.css
Created June 27, 2013 15:56
Reset file from Eric Meyer
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,