Skip to content

Instantly share code, notes, and snippets.

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
View Dockerfile.kaldi-pt
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 / README.md
Last active June 18, 2020 20:56
Generic Component API
View README.md
@lfzawacki
lfzawacki / 1-write-up.md
Last active July 28, 2019 21:10
Cybrics: Construction - write-up
View 1-write-up.md

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)
View back-from-audio
#!/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 / links.md
Last active December 3, 2015 19:40
Links to Learn Ruby
View links.md
@lfzawacki
lfzawacki / README.md
Created August 7, 2015 00:37
Using local Gemfiles
View README.md

Using local Gemfiles

This is useful if you're working on a project with other developers and want to use different gems locally that you don't have to commit to the repository.

Get the Gemfile.local file

From this repository https://github.com/gerrywastaken/Gemfile.local. The rest the instructions here are mostly based on what is written there with some modifications.

@lfzawacki
lfzawacki / install-owncloud.sh
Last active August 29, 2015 14:23
install-owncloud.sh
View install-owncloud.sh
#!/bin/bash -e
FILENAME=owncloud-8.0.4.tar.bz2
LATEST=https://download.owncloud.org/community/$FILENAME
SHA=https://download.owncloud.org/community/$FILENAME.sha256
PGP=https://download.owncloud.org/community/$FILENAME.asc
INSTALL_PATH=/var/www
OWNCLOUD_USER='www-data'
echo " --- Download and check sha256 sum"
@lfzawacki
lfzawacki / alarm.ino
Last active August 29, 2015 14:18
Introdução a Programação com Arduino (28/03/15)
View alarm.ino
/*
Por Lucas Zawacki e galera da oficina de introdução a Arduino
https://matehackers.org/arduino_day_2015
*/
const int buttonPin = 2;
const int buzzerPin = 11;
const int sensorPin = 4;
const int ledPin = 13;
@lfzawacki
lfzawacki / user.rb
Created March 3, 2015 20:01
Users logged last month
View user.rb
class User < ActiveRecord::Base
def self.login_last_month
self.select { |u| u.last_sign_in_at && (u.last_sign_in_at + 30.days) >= Date.today }.count
end
end
View Install BBB-HTML5
In a new Ubuntu Trusty lxc-container:
sudo lxc-create -t ubuntu -n bbb-html5 -- -r trusty
Install BBB090: https://code.google.com/p/bigbluebutton/wiki/090InstallationUbuntu
Install development stuff: https://code.google.com/p/bigbluebutton/wiki/090Developing
Install nodejs