Skip to content

Instantly share code, notes, and snippets.

View MatheusMuriel's full-sized avatar

Matheus Muriel MatheusMuriel

View GitHub Profile
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l normal (set_color normal)
set -l status_color (set_color brgreen)
set -l cwd_color (set_color $fish_color_cwd)
set -l vcs_color (set_color brpurple)
set -l prompt_status ""
# Since we display the prompt on a new line allow the directory names to be longer.
set -q fish_prompt_pwd_dir_length
[13/3 18:45] Marlon Pascoal: https://docs.google.com/presentation/d/1PasgJxn9ecwaBA5ZABT5-NSh9FLV-sNcVLe60KbqDEo/edit#slide=id.g33fe96d5b13_0_412
[13/3 18:46] Marlon Pascoal: https://docs.google.com/presentation/d/12t2GEeJ9tMO8cqEx02_C28SkRFhq6NPKoIB1k5H92EQ/edit#slide=id.p
@MatheusMuriel
MatheusMuriel / screenlock_script.sh
Created December 11, 2022 00:57
My screenlock script with glitch effect to i3wm
#/bin/sh
# Glichting screen lock script by xzvf
pngfile="/tmp/sclock.png"
bmpfile="/tmp/sclock.bmp"
glitchedfile="/tmp/sclock_g.bmp"
scrot -z $pngfile
# convert to bmp and pixelate
@MatheusMuriel
MatheusMuriel / anoteixon.udl
Created September 29, 2022 14:58
Notepad++ User Defined Language para anotações
<!--// Created by Matheus Muriel (https://github.com/MatheusMuriel) //-->
<NotepadPlus>
<UserLang name="Anoteixon Test" ext="txt atxt" darkModeTheme="yes" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02((EOL)) 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
def metodo
variavel = 50
hash = {a: 1, b: 2, c: 3}
lista = [1, 2, 3, 4, 5]
interpolacao = "String #{variavel}"
interpolacao.reverse
lista.each{|n| puts n}
end
@MatheusMuriel
MatheusMuriel / modalBookmarklet.js
Created November 4, 2020 16:52
Bookmarklet code for open a modal
javascript:(function(){
let tailwind = document.createElement('link');
tailwind.href = 'https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css';
tailwind.rel = 'stylesheet';
document.body.appendChild(tailwind);
let style = document.createElement('style');
style.appendChild( document.createTextNode(`
.modal {
opacity: 0;
@MatheusMuriel
MatheusMuriel / cafeina.bat
Last active October 28, 2020 14:59
Batch script para o computador não entrar em modo de espera
@if (@CodeSection == @Batch) @then
@echo off
rem Use [%SendKeys% "argument"] to send keys to the keyboard buffer
rem "%~F0" is complete path of this script
set SendKeys=CScript //nologo //E:JScript "%~F0"
:START_OF_LOOP
timeout 10 > NUL
require 'sinatra'
require 'json'
require 'fileutils'
require 'logger'
set :port, 6000
diretorio_repo = '/home/Muriel/JarvisBot/'
caminho_logs = '/home/Muriel/Logs/post-reciver/'
require 'sinatra'
require 'fileutils'
set :port, 6000
diretorio_repo = '/home/Muriel/JarvisBot/'
post '/jarvis' do
system('systemctl stop jarvisbot.service')
print("Hello World!")
for i in range(0, 5):
print("Ra!")
print("Bye Bye World!")