Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wuzzzzaah on github.
  • I am omarshariffd (https://keybase.io/omarshariffd) on keybase.
  • I have a public key ASCijFnsXc2y1QA7jLW9opYBbbR7smb5LvhdtRjjk5XaYAo

To claim this, I am signing this object:

@wuzzzzaah
wuzzzzaah / docker_kill.sh
Created January 9, 2019 11:56 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@wuzzzzaah
wuzzzzaah / Globe4gLTE.md
Created October 6, 2017 19:10 — forked from pongstr/Globe4gLTE.md
Access to Globe Broadband's Azatech DSL5001EN Router

Globe 4G LTE (Internet Only)

Noob access to administer your local area network and wifi access:

http://192.168.254.254

username: user
password: @l03e1t3
@wuzzzzaah
wuzzzzaah / csv_export.rb
Created August 12, 2015 08:26
CSV exporting shit - Rails
require 'csv'
CSV.open("file_name.csv", "w") do |csv|
csv << Model_name.attribute_names
#any ar collection
ar_collection.each do |record|
csv << record.attributes.values
end
end
@wuzzzzaah
wuzzzzaah / append_timestamp_to_file.bat
Last active August 29, 2015 14:17
Appends timestamp to file
set dt=%date:~7,2%%date:~4,2%%date:~10,4%%time:~0,2%%time:~3,2%%time:~6,2%
set origFile=%1
set noext=%origFile:~0,-4%
set ext=%origFile:~-4%
ren %1 %noext%%dt%%ext%
UbuntuのEC2インスタンス上に、Ruby on Rails開発環境を構築する。
プロンプトは$がubuntuユーザ(一般ユーザ)、#がrootユーザ。
①rubyがインストールされていないことを確認する。
# ruby -v
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8
Try: apt-get install <selected package>
@wuzzzzaah
wuzzzzaah / deploy.rb
Created February 12, 2014 10:47 — forked from alkema/deploy.rb
set :application, "appname"
set :deploy_to, "/var/www"
set :scm, :git
set :repository, "git@github.com:user/app.git"
default_run_options[:pty] = true
set :user, "www-data"
set :domain, "foo.tld"
set :normalize_asset_timestamps, false
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')