Skip to content

Instantly share code, notes, and snippets.

View lfzawacki's full-sized avatar
💭
Millennials just wanna have 🥑s

Lucas lfzawacki

💭
Millennials just wanna have 🥑s
View GitHub Profile
@lfzawacki
lfzawacki / Dockerfile.kaldi-pt
Created December 20, 2022 19:01
Vosk Server Dockerfile
FROM alphacep/kaldi-vosk-server:latest
RUN mkdir /opt/vosk-model-pt_BR \
&& cd /opt/vosk-model-pt_BR \
&& wget -q https://alphacephei.com/vosk/models/vosk-model-pt-fb-v0.1.1-20220516_2113.zip \
&& unzip vosk-model-pt-fb-v0.1.1-20220516_2113.zip \
&& mv vosk-model-pt-fb-v0.1.1-20220516_2113 model \
&& rm -rf vosk-model-pt-fb-v0.1.1-20220516_2113.zip
EXPOSE 2700
@lfzawacki
lfzawacki / vendas.md
Last active August 27, 2023 22:31
Vendas

Produtos pra vender

Guitarra do jogo guitar hero genérica, PREÇO R$100

Já tem uns bons anos de uso, mas está em boas condições e funcionando perfeitamente. Plug USB para PC e para Playstation.

Preço: R$100

20230505_160419

@lfzawacki
lfzawacki / custom.css
Last active March 17, 2023 20:36
bbb style
:root {
--color-primary: #ff0000;
--color-success: #95ae3b;
--color-warning: #e59123;
--color-danger: #ca4b57;
--color-off-white: #f7f8f8;
--color-gray-lighter: #d2d2d2;
--color-blue-light: #0f8489;
--color-content-background: #323232;
--color-webcam-letterboxing: #404040;
@lfzawacki
lfzawacki / remove.rb
Created August 13, 2013 17:54
remove accents ruby
def self.remove_accents(str)
accents = {
['á','à','â','ä','ã'] => 'a',
['Ã','Ä','Â','À'] => 'A',
['é','è','ê','ë'] => 'e',
['Ë','É','È','Ê'] => 'E',
['í','ì','î','ï'] => 'i',
['Î','Ì'] => 'I',
['ó','ò','ô','ö','õ'] => 'o',
['Õ','Ö','Ô','Ò','Ó'] => 'O',
@lfzawacki
lfzawacki / README.md
Last active June 18, 2020 20:56
Generic Component API
@lfzawacki
lfzawacki / 1-write-up.md
Last active July 28, 2019 21:10
Cybrics: Construction - write-up

Construction

Challenge description

Added at 14:40 UTC: to save some guessing, flag is inside the listening Python script.

Hello test subject # 49277. The next pwning room is not yet complete, so you should just wait here and not enter it until further notice.

ssh testsubject@95.179.148.72

Password: LabRat#49277

@lfzawacki
lfzawacki / back-from-audio
Last active July 7, 2017 04:02
Stop useless stuff for music production in Ubuntu Linux (actually Mint)
#!/bin/bash
# Re-enable uneeded services for music
pulseaudio -D
sudo service samba start
sudo service saned start
sudo service smbd start
sudo service nmbd start
@lfzawacki
lfzawacki / auto-run.sh
Created October 31, 2013 20:49
Speeding up your BBB tests
#!/bin/sh
while inotifywait -e modify $1; do
gradle --daemon test
done
@lfzawacki
lfzawacki / bbb.md
Last active December 26, 2015 22:19
BBB Html5 bridges

BBB Bridges / REDIS / HTML5

From https://github.com/bigbluebutton/bigbluebutton/tree/html5-bridge In bigbluebutton / bigbluebutton-apps / src / main / java / org / bigbluebutton / conference / service / Service Classes call methods from the bridge methods and write date to a redis instance

ChatService -> ChatBridge

Service Bridges

@lfzawacki
lfzawacki / generate_test.rb
Created August 20, 2013 16:26
Read a Rails model file and print to stdout an rspec describe block for each method
def warn_and_exit
puts "Prints to stdout a describe block for each method in the model file."
puts "\tusage \"#{__FILE__}\" [MODEL_FILE]"
exit 0
end
warn_and_exit if ARGV.size != 1
content = IO.read(ARGV[0])