I hereby claim:
- I am Theashwanik on github.
- I am theashwanik (https://keybase.io/theashwanik) on keybase.
- I have a public key whose fingerprint is 635A A154 F18F 18A5 8079 CB70 90B0 8072 243E 96CB
To claim this, I am signing this object:
* Launch Terminal. | |
* Check your own MAC address: | |
ifconfig en1 | grep ether | |
* See who else is on the network: | |
arp -a |
I hereby claim:
To claim this, I am signing this object:
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
class Fail2banNotifier | |
def initialize(options) | |
@default_options = options | |
@default_options[:logfile] ||= Rails.root.join('log', 'fail2ban.log') | |
# Roll over every 30M, keep 10 files | |
@logger ||= Logger.new(@default_options[:logfile], 10, 30*1024*1024) | |
end | |
def call(exception, options={}) |
99% of the Git commands you'll need at work, demonstrated in a single script (bitbucket.org) | |
https://bitbucket.org/BitPusher16/dotfiles/raw/49a01d929dcaebcca68bbb1859b4ac1aea93b073/refs/git/git_examples.sh | |
https://news.ycombinator.com/item?id=21189256 | |
#!/bin/bash | |
########## | |
# contents |
ec2-54-152-134-146.compute-1.amazonaws.com.
Rails' use of strict naming conventions means a lot of core code SHOULD be in the same format whoever writes it? It could be written by a friend, colleague or a computer... it shouldn't matter because the same Rails rules apply to everyone.
This means that Rails can actually do some tasks for you! It can actually build things and write code on your behalf...
Coming from another language like PHP, this can seem like magic.
## | |
Install and configure freeradius to use mariadb database (also for managing freeradius, we install daloRADIUS web interface). | |
=== | |
1- Install and setup mariadb | |
To install mariadb, we create mariadb repository file and install required packages. here we install mariadb 10.5: | |
# vim /etc/yum.repos.d/mariadb.repo | |
then put the following content in it: | |
[mariadb] |