Skip to content

Instantly share code, notes, and snippets.

View FaisalFehad's full-sized avatar
🎯
Focusing

Faisal Fehad FaisalFehad

🎯
Focusing
  • Sky UK
View GitHub Profile
@FaisalFehad
FaisalFehad / fed.sh
Last active June 14, 2017 18:57
Packages for FED 25
# Disable camera
sudo modprobe -r uvcvideo
echo "blacklist uvcvideo"|sudo tee /etc/modprobe.d/blacklistcamera.conf
# Enable camera
# sudo modprobe uvcvideo
# sudo rm /etc/modprobe.d/blacklistcamera.conf
# Systemwide touchpad tab to click
@FaisalFehad
FaisalFehad / bizzbuzz.rb
Created August 1, 2017 15:38
Prints bizz on multiple of 3, buzz on multiple of 5 and bizzbuzz on a multiple of both 3 and 5
# prints bizz on multiple of 3, buzz on multiple of 5 and bizzbuzz on a multiple of both 3 and 5
100.times do |i|
if i % 3 && i % 5 == 0
puts "FizzBuzz"
elsif i % 3 == 0
puts "Fiz"
elsif i % 5 == 0
puts "Buzz"
else
# initialization file (not found)
@FaisalFehad
FaisalFehad / temp.rb
Created August 16, 2017 16:42
RPi temp test
# set timer to start
timer = 60
start_time = Time.now
stop_time = start_time + timer
holder = 0
def temp
system('/opt/vc/bin/vcgencmd measure_temp')