useful_stuff.get_all()

I hope you find this useful!

Monday, May 12, 2014

Set Properties File with SED

at 11:51 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: regex, sed, unix

get unix command exit code

at 11:02 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: exitcode, unix

Friday, May 9, 2014

Extract value from string in groovy

at 1:41 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: gisty, groovy

Get all tables that have a certain field

select table_name from columns where table_schema = 'mydatabase' and column_name = 'looking_for_this_field';
at 1:37 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: mysql, youwillneedthis
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Getting started with grails Quartz jobs
    Quick start in grails jobs using the grails Quartz plugin class MyJob { def grailsApplication def execute(context) { ...
  • string map to actual #groovy map
    Convert a string map representation to a groovy map, for further manipulation def stringMap = "['a':['c':'true...
  • adding stuff in bash
    I just stumbled on a how to add stuff in bash total=`expr $val_1 + $val_2 + $val_3`
  • get autocomplete for git on mac os
    Weird thing, I installed git for mac and i did not get autocomplete for git . To fix this I followed this instructions http://www.codethat...
  • Sending mail in unix
    When sending an email from unix do the following echo "Mail Message" | mail -s "Subject" person@home.com In order to...
  • view largest installed debian packages on unix
    More details on this link https://www.commandlinefu.com/commands/view/3842/list-your-largest-installed-packages-on-debianubuntu dpkg-query -...
  • SSH returns: no matching host key type found. Their offer: ssh-dss
     Fix is ssh -oHostKeyAlgorithms=+ssh-dss root@192.168.8.109 Read more here https://askubuntu.com/questions/836048/ssh-returns-no-matching-ho...
  • #bashing multiple expressions
    So to do a couple of cool stuff in bash use the [[ many-expressions ]] brackets not the [ expression ] For example one can do multiple expr...
  • format decimal and doubles in Java to desired decimal places
     To format numbers in java, simple String.format("%.2f", 132.2372342)
  • pull multiple files from android via adb
    Got answer from https://stackoverflow.com/questions/11074671/adb-pull-multiple-files adb shell 'ls /sdcard/DCIM/Camera/20200327*.mp4...

Recent Posts

Categories

  • #chromeos
  • agile
  • android
  • bash
  • bashment
  • color
  • control structures
  • cron
  • devops
  • exceptions
  • exitcode
  • gisty
  • git
  • googlechrome
  • grails
  • grep
  • groovy
  • java
  • javascript
  • jira
  • jquery
  • laymen
  • less
  • loops
  • mysql
  • oops wrong commit message
  • php
  • programming
  • python
  • regex
  • sed
  • server
  • shell
  • tail
  • TextWatcher
  • truth
  • ubuntu
  • unix
  • vim
  • vuejs
  • webapps
  • work
  • xargs
  • youwillneedthis

Text Widget

Blog Archive

  • ►  2025 (3)
    • ►  December (3)
  • ►  2023 (3)
    • ►  July (1)
    • ►  June (2)
  • ►  2021 (1)
    • ►  May (1)
  • ►  2020 (2)
    • ►  August (1)
    • ►  March (1)
  • ►  2017 (5)
    • ►  November (2)
    • ►  August (2)
    • ►  July (1)
  • ►  2016 (11)
    • ►  September (1)
    • ►  April (2)
    • ►  March (3)
    • ►  February (3)
    • ►  January (2)
  • ►  2015 (3)
    • ►  August (3)
  • ▼  2014 (18)
    • ►  November (2)
    • ►  October (3)
    • ▼  May (4)
      • Set Properties File with SED
      • get unix command exit code
      • Extract value from string in groovy
      • Get all tables that have a certain field
    • ►  March (1)
    • ►  February (1)
    • ►  January (7)
  • ►  2013 (9)
    • ►  December (1)
    • ►  September (2)
    • ►  July (2)
    • ►  June (4)
  • ►  2012 (10)
    • ►  December (1)
    • ►  October (6)
    • ►  September (3)

Contact Form

Name

Email *

Message *

Like us

Pages

  • Home
Simple theme. Powered by Blogger.