usefuldb 0.0.12 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f340cc173f81d67440db1e52276834fe53be45ed
4
- data.tar.gz: d6544a731d6ee05fdf21938adb7c2d4b9c82d0cc
3
+ metadata.gz: c81c3efcb074094c384703748b97254a1b5dcb7f
4
+ data.tar.gz: f359920dac30a8f931528a90b30f7bc132c5192b
5
5
  SHA512:
6
- metadata.gz: c65e5a612faed4d25f95acd176399e68feb9cb4f73b7f6d092943aacb7435e4c8de6c38d699c7b11e671e072a555795d4327db128d5de0cc2e9b9059a4e9bba2
7
- data.tar.gz: 5a3ecf4006736c5b264cb35b0c7e0d6621ed8fabcd42b85ff49717ebdae480bff240478761fb1dd1ce2800432ac202b3e26ef62a8274271d001cd87aed9607e3
6
+ metadata.gz: 2300fc40261448b47045300053b7f4f9223e784b80a7648c48a119fa7fd8b44198db738ddb86b6db51b7f9665a628d8f3fd0c24e1e9d3644e654134ceef5549a
7
+ data.tar.gz: 297d825587346fb3c3680b39672e2dc957376b48ff8c559b7c4b437de1f973c2adc3ee6dc198d65db3e9ead2dcebc4bed8f5be22153f31bc12b522921da6484d
data/CHANGELOG CHANGED
@@ -1,7 +1,8 @@
1
1
  usefuldb gem CHANGELOG
2
2
 
3
- ## Version 0.0.12
4
- - Removed verbose mode, set it as default instead
3
+ ## Version 0.1.0
4
+ - Upon updating UsefulDB to a newer version of the gem, it automatically now merges default DB entries into
5
+ the local database
5
6
 
6
7
  ## Version 0.0.11
7
8
  - Updated UsefulDB::Version
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## Readme - v0.0.11
1
+ ## Readme - v0.1.0
2
2
 
3
3
  ### Install
4
4
  To run the unit tests use the following rake target
@@ -65,6 +65,11 @@ module UsefulDB
65
65
  def autoUpgrade(log)
66
66
  log.warn "autoUpgrade Method executing"
67
67
  @data["version"] = UsefulDB::Version.to_s
68
+ resource_path = File.join(File.dirname(__FILE__), "../../resources/db.yaml")
69
+ @resourceData = YAML.load(File.open(resource_path))
70
+
71
+ log.warn "Updating local database with default entries"
72
+ @data["db"] = (@data["db"] | @resourceData["db"]).uniq
68
73
  end
69
74
 
70
75
  end
@@ -7,8 +7,8 @@ module UsefulDB
7
7
  class << self
8
8
 
9
9
  MAJOR = 0 unless defined? MAJOR
10
- MINOR = 0 unless defined? MINOR
11
- PATCH = 12 unless defined? PATCH
10
+ MINOR = 1 unless defined? MINOR
11
+ PATCH = 0 unless defined? PATCH
12
12
 
13
13
  def to_s
14
14
  [MAJOR, MINOR, PATCH].compact.join('.')
data/resources/db.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: 0.0.9
2
+ version: 0.1.0
3
3
  db:
4
4
  - tag:
5
5
  - install
@@ -127,7 +127,7 @@ db:
127
127
  - stick
128
128
  - window
129
129
  - splitscreen
130
- value: ! '/window stick #'
130
+ value: '/window stick #'
131
131
  description: Sticks a hidden window to the newly created split screen
132
132
  - tag:
133
133
  - sshfs
@@ -366,6 +366,18 @@ db:
366
366
  value: --orm=mongo_mapper
367
367
  description: When working with ruby on rails and mongodb, you can set the database
368
368
  orm using this command
369
+ - tag:
370
+ - vpn
371
+ - routing
372
+ - setup
373
+ value: 'sudo route del default wlan0/eth0 # sudo route add default dev ppp0'
374
+ description: Delete the default route, and route all traffic through the ppp0 connection
375
+ - tag:
376
+ - vpn
377
+ - routing
378
+ - restore
379
+ value: 'sudo route del default ppp0 # sudo route add default dev wlan0'
380
+ description: Delete the ppp0 route and restore the default
369
381
  - tag:
370
382
  - ruby
371
383
  - setter
@@ -650,3 +662,177 @@ db:
650
662
  value: git remote show origin
651
663
  description: Prints status about the current git repository including the remote
652
664
  URL
665
+ - tag:
666
+ - tightvnc
667
+ - remote
668
+ - desktop
669
+ - server
670
+ value: vncserver -geometry 1024x600 :1
671
+ description: Run the tightvnc server with a geometry of 1024x600 on window :1
672
+ - tag:
673
+ - tightvnc
674
+ - kill
675
+ - server
676
+ value: vncserver -kill :1
677
+ description: Kill the tightvnc server running on window :1
678
+ - tag:
679
+ - seneca
680
+ - younger
681
+ - quote
682
+ - religion
683
+ value: Religion is regarded by the common people as true, by the wise as false,
684
+ and by rulers as useful
685
+ description: Rather amusing quote by Seneca the Younger
686
+ - tag:
687
+ - list
688
+ - zip
689
+ - file
690
+ - contents
691
+ value: unzip -l <ziparchive>
692
+ description: Lists the contents of a Zip Archive file
693
+ - tag:
694
+ - oracle
695
+ - display
696
+ - table
697
+ - names
698
+ - list
699
+ - database
700
+ value: select owner, table_name from dba_tables;
701
+ description: Assuming you have the access, this command will list the tables in
702
+ the database along with what user owns them
703
+ - tag:
704
+ - block
705
+ - data
706
+ - size
707
+ - windows
708
+ value: 'fsutil fsinfo ntfsinfo c:'
709
+ description: Returns file system information for the passed parameter
710
+ - tag:
711
+ - cd
712
+ - format
713
+ - cdrw
714
+ - blank
715
+ value: cdrecord blank=fast dev=/dev/sr0
716
+ description: Format a CDRW
717
+ - tag:
718
+ - dvd
719
+ - format
720
+ - dvdrw
721
+ - blank
722
+ value: dvd+rw-format blank=fast dev=/dev/sr0
723
+ description: Format a DVDRW
724
+ - tag:
725
+ - git
726
+ - reset
727
+ - head
728
+ - revert
729
+ - commit
730
+ - undo
731
+ value: git reset --soft HEAD^
732
+ description: Undo a commit, then allows you to fix the issue
733
+ - tag:
734
+ - git
735
+ - list
736
+ - remote
737
+ - remotes
738
+ value: git remote -v
739
+ description: List the remotes currently attached to a repository
740
+ - tag:
741
+ - webrtc
742
+ - html5
743
+ - video
744
+ - chat
745
+ value: https://6-dot-apprtc.appspot.com
746
+ description: Two way video and voice communication with WebRTC
747
+ - tag:
748
+ - ruby
749
+ - main
750
+ - gemrc
751
+ - gem
752
+ value: /etc/gemrc
753
+ description: Location of the systemwide gemrc configuration file on Archlinux
754
+ - tag:
755
+ - git
756
+ - add
757
+ - upstream
758
+ - remote
759
+ - remotes
760
+ value: git remote add <upstream-name> http://path.to.git
761
+ description: Add a remote upstream to a repository
762
+ - tag:
763
+ - git
764
+ - branch
765
+ - create
766
+ - add
767
+ - make
768
+ value: git branch <branchname>
769
+ description: Create a branch called <branchname>
770
+ - tag:
771
+ - ncat
772
+ - redirect
773
+ - port
774
+ - service
775
+ - netcat
776
+ - nc
777
+ value: sudo ncat --sh-exec "ncat 10.0.0.1 2000" -l 2000 -t --keep-open
778
+ description: Redirect telnet connections made to localhost 2000 to 10.0.0.1
779
+ 2000
780
+ - tag:
781
+ - ip
782
+ - tuntap
783
+ - tunnel
784
+ - virtual
785
+ - interface
786
+ - networking
787
+ - network
788
+ value: ip tuntap add dev tun0 mode tap user david
789
+ description: Create a tuntap interface called tun0
790
+ - tag:
791
+ - ip
792
+ - tuntap
793
+ - tunnel
794
+ - virtual
795
+ - interfae
796
+ - networking
797
+ - network
798
+ value: ip tuntap del dev tun0 mode tap
799
+ description: Delete a tuntap interface named tun0
800
+ - tag:
801
+ - ip
802
+ - set
803
+ - interface
804
+ - network
805
+ - networking
806
+ - add
807
+ value: ip addr add 192.168.1.1/24 dev eth0
808
+ description: Add the IP address 192.168.1.1 and subnet mask 255.255.255.0 to interface
809
+ eth0
810
+ - tag:
811
+ - pacman
812
+ - archlinux
813
+ - arch
814
+ - linux
815
+ - delete
816
+ - old
817
+ - packages
818
+ - package
819
+ value: sudo pacman -Sc
820
+ description: Delete old unused packages from the /var/cache/pacman/pkg/
821
+ - tag:
822
+ - sota
823
+ - irc
824
+ - server
825
+ - shroud
826
+ - avatar
827
+ value: irc.arg-irc.net
828
+ description: IRC Channel for the Shroud of the Avatar
829
+ - tag:
830
+ - synergy
831
+ - mouse
832
+ - server
833
+ - client
834
+ - share
835
+ - keyboard
836
+ value: synergy-foss.org
837
+ description: 'Share a single keyboard and mouse across multiple computers: Linux,
838
+ Mac and Windows'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usefuldb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kirwan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2012-04-06 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rack-test
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description: Accessible through a commandline script, UsefulDB allows the user to
56
42
  store information about a useful command or useful url
57
43
  email:
@@ -78,9 +64,11 @@ homepage: http://rubygems.org/gems/usefuldb
78
64
  licenses:
79
65
  - CC BY-SA 3.0
80
66
  metadata: {}
81
- post_install_message: " \nusefuldb - simple database for storage of useful commands
82
- and or urls.\n\nusefuldb is released under the creative commons attribution-sharealike
83
- 3.0 unported (cc by-sa 3.0) licence.\nfor more information see: http://creativecommons.org/licenses/by-sa/3.0/\n\n"
67
+ post_install_message: |
68
+ usefuldb - simple database for storage of useful commands and or urls.
69
+
70
+ usefuldb is released under the creative commons attribution-sharealike 3.0 unported (cc by-sa 3.0) licence.
71
+ for more information see: http://creativecommons.org/licenses/by-sa/3.0/
84
72
  rdoc_options: []
85
73
  require_paths:
86
74
  - lib