Skip to content

Instantly share code, notes, and snippets.

@mwergles
mwergles / arch-cedilla.sh
Created November 18, 2021 10:50
arch cedilla brute force
sudo sed -i /usr/share/X11/locale/en_US.UTF-8/Compose -e 's/ć/ç/g'
sudo sed -i /usr/lib/gtk-3.0/<version>/immodules.cache -e 's#"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa"#"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"#'
sudo sed -i /usr/lib/gtk-2.0/<version>/immodules.cache -e 's#"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa"#"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"#'
@mwergles
mwergles / firefox_dark_background.md
Created July 18, 2020 22:25 — forked from gmolveau/firefox_dark_background.md
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
Papo de Biólogo - https://www.youtube.com/channel/UCWii8VoTMhXSU8yuX5zMg3w
Richard Rasmussen - https://www.youtube.com/channel/UC13ikrGSy3E2AveqLAI9lqg
Canal Nostalgia - https://www.youtube.com/channel/UCH2VZQBLFTOp6I_qgnBJCuQ
Saber Filosófico - https://www.youtube.com/channel/UCWdXgfpEIZIGzah9_yCL-Xw
Nerdologia - https://www.youtube.com/channel/UClu474HMt895mVxZdlIHXEA
Manual do Mundo - https://www.youtube.com/channel/UCKHhA5hN2UohhFDfNXB_cvQ
Canal do Cortella - https://www.youtube.com/channel/UCyTS929PXJSUiBEFSzdypgg
BláBláLogia - https://www.youtube.com/channel/UC3Ooj_iDWELBumIEDejyNHQ
Minuto da Terra - https://www.youtube.com/channel/UCB0zinWfy-dS_NqcOINYo3A
Colecionadores de Ossos - https://www.youtube.com/channel/UCjcEWCkuafL02yvkujCwL4w
@mwergles
mwergles / geartrack.js
Last active August 1, 2018 21:52
Dump geartrack data to clipboard
// export data to clipboard
let data = []
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i)
if (key.charAt(0) === '#') {
if (/^[#a-zA-Z0-9]+$/.test(key)) {
data.push({key, data: JSON.parse(localStorage.getItem(key))})
}
}
@mwergles
mwergles / keybase.md
Created July 9, 2018 15:20
keybase.md

Keybase proof

I hereby claim:

  • I am mwergles on github.

  • I am mwergles (https://keybase.io/mwergles) on keybase.

  • I have a public key ASAqcy0RKI1MHLyQOeqdLy9pggAVejhRTSJrmqqB3MrERwo

@mwergles
mwergles / marcha_imperial
Created March 4, 2018 16:04 — forked from tagliati/marcha_imperial
Marcha imperial para arduino
int ledPin = 13;
//led for visualization (use 13 for built-in led)
int speakerPin = 11;
//speaker connected to one of the PWM ports
#define c 261
#define d 294
#define e 329
#define f 349
#!/bin/sh -x
CMD="exec java -Djava.library.path=. ${JAVA_OPTS} -jar DynamoDBLocal.jar $@"
echo "#!/bin/bash
exec java -Djava.library.path=. ${JAVA_OPTS} -jar DynamoDBLocal.jar $@" > /usr/local/bin/dynamodb
chmod +x /usr/local/bin/dynamodb
/usr/local/bin/dynamodb &
version: '3'
services:
dynamodb:
image: dynamodb
container_name: dynamodb
build:
context: .
dockerfile: dynamodb.dockerfile
ports:
FROM openjdk:8-jre
RUN apt-get update \
&& apt-get install -y supervisor python-pip \
&& pip install awscli
WORKDIR /var/dynamodb_local
VOLUME ["/dynamodb_local_db"]
@mwergles
mwergles / nginxproxy.md
Created June 12, 2017 02:13 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers