sudo rpi-update
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install vim -y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net. | |
The intent of this script is to allow users to self-diagnose their installations. This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected. Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development. | |
NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered. | |
*** [ INITIALIZING ] | |
[i] 2022-08-18:13:50:25 debug log has been initialized. | |
[i] System has been running for 0 days, 0 hours, 13 minutes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07:19:57 ~/repos/simple_app$ ruby -v | |
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] | |
07:20:12 ~/repos/simple_app$ rails -v | |
Rails 4.2.5 | |
07:20:16 ~/repos/simple_app$ gem -v | |
2.4.8 | |
07:20:18 ~/repos/simple_app$ passenger -v | |
Phusion Passenger 5.0.23 | |
07:20:22 ~/repos/simple_app$ passenger start | |
=============== Phusion Passenger Standalone web server started =============== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.find_active_stub_by_path path | |
puts "*"*80 + " #{path}" | |
puts "*"*20 + " 111: #{@@active_stub_with_requirable_file.inspect}" | |
puts "*"*20 + " 222: #{stubs.find { |s| puts s.to_s + 'activated?: ' + String.new(s.activated? ? 'true' : 'false')}}" | |
puts "*"*20 + " 222 any?: #{stubs.find.any?}" | |
puts "*"*20 + " 333: #{stubs.find { |s| puts s.to_s + 'with_requirable?: ' + String.new(s.contains_requirable_file?(path) ? 'true' : 'false')}}" | |
puts "*"*20 + " 333 any?: #{stubs.find.any?}" | |
puts "*"*20 + " 444: #{NOT_FOUND}" | |
stub = @@active_stub_with_requirable_file[path] ||= (stubs.find { |s| | |
s.activated? and s.contains_requirable_file? path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07:48:59 ~$ cd repos | |
08:01:27 ~/repos$ rails --version | |
Rails 4.2.5 | |
08:01:40 ~/repos$ ruby --version | |
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux] | |
08:01:49 ~/repos$ rvm use 2.2.4 | |
Using /home/chad/.rvm/gems/ruby-2.2.4 | |
08:01:57 ~/repos$ ruby --version | |
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] | |
08:02:03 ~/repos$ gem --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem #4 | |
The Fibonacci sequence is defined by the recurrence relation: | |
Fn = Fn1 + Fn2, where F1 = 1 and F2 = 1. | |
Hence the first 12 terms will be: | |
F1 = 1 | |
F2 = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'date' | |
require 'open-uri' | |
require 'optparse' | |
require 'yajl' | |
require 'zlib' | |
def github_uri_list(start_date, end_date) | |
uri_list = [] | |
get_day = start_date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nf | |
/etc/apache2/apache2.conf:User ${APACHE_RUN_USER} | |
/etc/apache2/apache2.conf:Group ${APACHE_RUN_GROUP} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chad@zen:/var/log$ ls | |
alternatives.log auth.log.1 dpkg.log.2.gz lightdm syslog.3.gz | |
alternatives.log.1 auth.log.2.gz dpkg.log.3.gz mail.err syslog.4.gz | |
alternatives.log.10.gz auth.log.3.gz dpkg.log.4.gz mail.log syslog.5.gz | |
alternatives.log.2.gz auth.log.4.gz dpkg.log.5.gz mongodb syslog.6.gz | |
alternatives.log.3.gz boot dpkg.log.6.gz news syslog.7.gz | |
alternatives.log.4.gz boot.log dpkg.log.7.gz pm-powersave.log udev | |
alternatives.log.5.gz bootstrap.log dpkg.log.8.gz pm-powersave.log.1 ufw.log | |
alternatives.log.6.gz btmp dpkg.log.9.gz pm-powersave.log.2.gz unattended-upgrades | |
alternatives.log.7.gz btmp.1 faillog pm-powersave.log.3.gz upstart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chad@solnse-1:/etc/apache2$ cat apache2.conf | |
# This is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See http://httpd.apache.org/docs/2.4/ for detailed information about | |
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific | |
# hints. | |
# | |
# | |
# Summary of how the Apache 2 configuration works in Debian: | |
# The Apache 2 web server configuration in Debian is quite different to |
NewerOlder