Skip to content

Instantly share code, notes, and snippets.

View sloppylopez's full-sized avatar
:octocat:

Sloppy Lopez sloppylopez

:octocat:
View GitHub Profile
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
<mirrors>
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>false</blocked>
@sloppylopez
sloppylopez / sw.js
Created February 26, 2022 16:53
Service worker exampe
self.addEventListener('install', function(event) {
// event.waitUntil(
// caches.open('v1').then(function(cache) {
// return cache.addAll([
// '/sw-test/',
// '/sw-test/index.html',
// '/sw-test/style.css',
// '/sw-test/app.js',
// '/sw-test/image-list.js',
// '/sw-test/star-wars-logo.jpg',
// ==UserScript==
// @name Sloppy Logger
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @require https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js
// @require https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js
// @namespace http://tampermonkey.net/
// @version 0.1
// @description log uncaght window exceptions and write them in the document as bootstrap alert html elements
// @author Sloppy Lopez
// @match http*://*/
@sloppylopez
sloppylopez / Github Contrast XXL (rainglow).icls
Created April 17, 2019 22:50
Latest version, improved color diff git and folder tree
<scheme name="Github Contrast XXL (rainglow) Sloppy" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2019-04-18T00:50:22</property>
<property name="ide">idea</property>
<property name="ideVersion">2019.1.0.0</property>
<property name="modified">2019-04-18T00:50:31</property>
<property name="originalScheme">Github Contrast XXL (rainglow) Sloppy</property>
</metaInfo>
<option name="LINE_SPACING" value="1.0" />
@sloppylopez
sloppylopez / Github Contrast XXL (rainglow).icls
Created April 17, 2019 22:18
improved colors for breadcrumbs and up-to-date files
<scheme name="Github Contrast XXL (rainglow) Sloppy" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2019-04-18T00:17:39</property>
<property name="ide">idea</property>
<property name="ideVersion">2019.1.0.0</property>
<property name="modified">2019-04-18T00:17:55</property>
<property name="originalScheme">Github Contrast XXL (rainglow) Sloppy</property>
</metaInfo>
<option name="LINE_SPACING" value="1.0" />
@sloppylopez
sloppylopez / fish_functions_ccat.fish
Last active April 10, 2019 18:03
Collection of Fish functions
function cat
ccat $argv
end
@sloppylopez
sloppylopez / Sloppy.xml
Created April 10, 2019 17:58
Material UI Intellij Theme Dark
<mtTheme>
<id>Sloppy</id>
<editorColorsScheme>Sloppy Darkness</editorColorsScheme>
<dark>true</dark>
<name>Sloppy Theme</name>
<colors>
<color id="background" value="000000ff"/>
<color id="foreground" value="b0bec5ff"/>
<color id="text" value="607d8bff"/>
<color id="highlight" value="425b67ff"/>
@sloppylopez
sloppylopez / Github Contrast XXL (rainglow).icls
Last active April 10, 2019 17:57
Intellij theme on steroids based on Github Contrast using rainglow
<scheme name="Github Contrast XXL (rainglow) Sloppy" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2019-04-09T16:28:18</property>
<property name="ide">idea</property>
<property name="ideVersion">2019.1.0.0</property>
<property name="modified">2019-04-09T16:28:22</property>
<property name="originalScheme">Github Contrast XXL (rainglow) Sloppy</property>
</metaInfo>
<option name="LINE_SPACING" value="1.0" />
@sloppylopez
sloppylopez / cleanDockerLocal.fish
Created April 6, 2019 23:36
Clean Docker Local
function cleanDockerLocal
echo -e "Stoping Docker containers 💃" | colorStuff
docker kill (docker ps -q) | colorStuff
echo -e "Deleting Docker containers 🔥" | colorStuff
docker rm (docker ps -a -q) | colorStuff
echo -e "Deleting Docker images 💥" | colorStuff
docker rmi (docker images -q) | colorStuff
echo -e "cleanDockerLocal done! 🀄" | colorStuff
end
function colorStuff
while read -l input
switch $input
case "*error*"
set_color red
echo $input
case "*warning*"
set_color yellow
echo $input
case "*"