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 / README.md
Last active Jun 18, 2020
Generic Component API
View README.md
@lfzawacki
lfzawacki / 1-write-up.md
Last active Jul 28, 2019
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 Jul 7, 2017
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 Dec 3, 2015
Links to Learn Ruby
View links.md
@lfzawacki
lfzawacki / README.md
Created Aug 7, 2015
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 Aug 29, 2015
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 Aug 29, 2015
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 Mar 3, 2015
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
View convertmp3.sh
#!/bin/bash
# Convert lots of *.flac into *.mp3 for consumption in devices without flac support
# Usage is:
# $ cd yourflacfolder
# $ convertmp3
# Files will be created in a new directory
MP3DIR="`basename \"$PWD\"` - mp3"
You can’t perform that action at this time.