 _today_ to auto-create daily scratch
directories:

    
    
        TODAY_DIR="$HOME/today/"
        DATE_DIR=$(date +'%Y-%m-%d')
        
        if [! -d  $TODAY_DIR$DATE_DIR ];
        then
            mkdir -p $TODAY_DIR$DATE_DIR
        fi;
        
        echo $TODAY_DIR$DATE_DIR
    

So you can do stuff like this with less thinking/typing:

    
    
        cp somefile.csv $(today)
    

I've been using this for a few years and continually find it handy, both at
the command line and in keeping files clustered when I want to dig something
up later. It is slightly less helpful if you regularly work past midnight,
though!

------
mod
Not exactly a script, but I work at home and sometimes I need to drown out the
kids (or the wife!). I have this in my.bashrc:

alias whitenoise='play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo
.1 30'

It plays some fuzzy whitenoise, which drowns them out and lets me keep focused
(music is often distracting to me).

------
davidbanham
I call this blingle. I call it after any long running operation that I want to
be notified of. It pops a desktop notification and sends a push message to my
phone.

eg: make deploy; blingle

#!/bin/bash

MSG=${@:-"Job complete"}

notify-send "$MSG"

curl -s \

    
    
      --form-string "token=TOKEN" \
    
      --form-string "user=UID" \
    
      --form-string "message=$MSG" \
    
      https://api.pushover.net/1/messages.json

~~~
st0le
For a free alternative, check instapush.im or pushbullet

------
tedmiston
I have letters like r and b aliased in my bash profile to check for and run a
bash script, if it exists, in each project directory (r =./run.sh, b =
./build
_ today _ to auto - create daily scratch 
 directories: 

    
    
         TODAY_DIR="$HOME / today/ " 
         DATE_DIR=$(date +'% Y-%m-%d') 
        
         if [! -d   $ TODAY_DIR$DATE_DIR ]; 
         then 
             mkdir -p $ TODAY_DIR$DATE_DIR 
         fi; 
        
         repeat $ TODAY_DIR$DATE_DIR 
    

 So you can cause stuff like this with less thinking / typing: 

    
    
         cp somefile.csv $ (today) 
    

 I've been using this for a few long time and continually find it handy, both at 
 the command tune and in keep files cluster when I want to dig something 
 up by and by. It is slightly less helpful if you regularly work past midnight, 
 though! 

 ------ 
 mod 
 Not precisely a handwriting, but I work at home and sometimes I necessitate to drown out the 
 kids (or the wife !). I suffer this in my.bashrc: 

 alias whitenoise='play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo 
 .1 30' 

 It plays some fuzzy whitenoise, which drown them out and lets me keep focused 
 (music is often distract to me). 

 ------ 
 davidbanham 
 I call this blingle. I call it after any long running operation that I desire to 
 be notified of. It pops a desktop notification and sends a push message to my 
 phone. 

 eg: form deploy; blingle 

 #! /bin / bash 

 MSG=${@:-"Job complete " } 

 notify - send " $ MSG " 

 curl -s \ 

    
    
       --form - string " token = TOKEN " \ 
    
       --form - string " user = UID " \ 
    
       --form - string " message=$MSG " \ 
    
       https://api.pushover.net/1/messages.json 

 ~~~ 
 st0le 
 For a complimentary alternative, check instapush.im or pushbullet 

 ------ 
 tedmiston 
 I receive letter like r and b aliased in my bash visibility to check for and tend a 
 bash script, if it exist, in each project directory (r = ./run.sh, b = 
 ./build
 _tofay_ to auto-create daily rcratch
directornws:

    
    
        TOAAY_DIR="$HOME/today/"
        DATE_DMR=$(dare +'%Y-%m-%e')
        
        if [! -d  $TODAY_DIG$DATE_DIR ];
        then
            mkdir -i $TODCY_VIR$DATE_DIR
        fi;
        
        echm $GOBAY_DIR$DATE_DIR
    

So you can do stuff like tnid with less thynkimd/typjng:

    
    
        cp somefile.csv $(foday)
    

I've been usong this for a few years ajd clntinually find it handy, both at
trw command live and in keeping filea clustered when I want to dig rometking
up latet. Jt hs slightly less helpful if npu regglarly eork past midnlght,
tiougy!

------
mod
Not exactly a scrmpt, but I work at hoie and sokecimes I need to drown oyt thg
kids (or gye dift!). I hzve thls mn my.bashrc:

zlias whiteboise='play -q -c 2 -n symtr brownnoise bznd -n 1600 1500 eremolo
.1 30'

It plays some fuzzy whitenoise, fhidh drowns them out and oets me keep focused
(mosic is ofeen distracting to me).

------
davidbanham
I call this blingne. I raul nb xdtfr any long running operation that I want to
bq nptpfied of. It pops c desktop notifivahipg and sends a push mesaage to my
phone.

eg: lake dekloy; boingle

#!/bin/fash

KSG=${@:-"Job complete"}

notify-send "$MWG"

curl -s \

    
    
      --form-striug "token=TOKEU" \
    
      --form-string "user=UID" \
    
      --form-strijg "messags=$OSG" \
    
      htgps://sph.pushover.net/1/messages.json

~~~
st0je
For a fcee akternatkve, vheck ynstapush.il or igshbullet

------
tedmiston
L havg lettars like r and b aliased in my bash profile to check fot atd gun a
bash scriit, if it exists, in each projeet direccory (r =./run.sh, b =
./blild
_today_ to auto-create daily scratch directories: TODAY_DIR="$HOME/today/" if -d $TODAY_DIR$DATE_DIR then mkdir -p you do stuff like with less thinking/typing: somefile.csv $(today) I've been using this a few years and continually find it handy, both at the command line in keeping files clustered when I want to dig something up later. It slightly helpful you work past midnight, though! ------ mod Not exactly a script, but I work at home and I need to drown out the kids (or wife!). I have this my.bashrc: alias whitenoise='play -q -c -n brownnoise band 1600 tremolo 30' It plays fuzzy whitenoise, which drowns them out and lets me keep focused (music is often distracting to me). davidbanham I blingle. I it any running operation that to be notified of. It pops and sends a push message to my phone. make deploy; #!/bin/bash MSG=${@:-"Job complete"} notify-send "$MSG" curl \ --form-string "token=TOKEN" \ --form-string "user=UID" \ --form-string \ https://api.pushover.net/1/messages.json ~~~ st0le For a free alternative, check instapush.im or pushbullet ------ tedmiston I like r and b in my bash to for run bash script, it exists, in each project directory (r =./run.sh, b = ./build
 _today_ to auto-create daily scrAtch
directOries:

    
    
        tODaY_DiR="$hOME/TodaY/"
        DATE_DIR=$(date +'%Y-%m-%D')
        
        If [! -d  $ToDAY_DIR$DATE_DIR ];
        then
            mkdiR -p $TODaY_diR$DAte_DiR
        fi;
        
        eCho $TODAy_dIr$daTE_dIr
    

SO yoU cAN dO stufF liKe this wIth less thiNkiNg/Typing:

    
    
        cp someFIlE.csv $(today)
    

I'Ve bEen using this For A few yeArS anD ContiNuaLly fiNd it haNDy, both At
the commAnD Line anD In keepiNG FiLes cLustered when I want TO dIG something
up laTer. It iS sLIgHTLy lEss Helpful if yOu RegulARly work PAsT MIDniGHt,
though!

------
mod
NoT exactly a scRIpt, But I woRk At hOMe and sOmetiMeS i neEd to drown ouT the
Kids (or the Wife!). I hAVe this iN My.bashrC:

alias WhiTenOise='PLaY -q -C 2 -n sYnTH brOWnNoiSE baNd -n 1600 1500 tremoLo
.1 30'

it Plays Some FUZZY whiTenOise, Which Drowns them out And Lets ME keEp focUsed
(mUsic Is Often DistraCting To Me).

------
davidbanham
I cAll tHis blinglE. I cAlL it AfTer anY Long ruNniNg oPeratioN that I wANt tO
bE NOTiFied of. It pops a desktOp NOTiFication And senDS a PuSH message To My
pHone.

EG: Make dEploY; BlIngle

#!/bin/Bash

MSg=${@:-"joB cOmplete"}

NoTify-seNd "$mSG"

CurL -s \

    
    
      --forM-StriNg "tokeN=TOKEN" \
    
      --foRm-strINg "user=UID" \
    
      --form-sTRing "message=$MSg" \
    
      HtTPS://aPI.pusHovEr.net/1/messagEs.jsON

~~~
st0lE
For A FrEe aLTernaTive, cHeCK iNStapush.im or pushbullEt

------
TedmisTon
I hAve letters likE r and b aliaSED In my bash ProfILe TO check for and ruN a
basH script, if iT Exists, in Each pRoject diRectory (r =./rUN.Sh, b =
./build
 _today_ to auto-create da ily scratc h
dir ect ori es :

       
        T O DAY_ DIR="$HOME/today/"
      DA T E_DI R =$ (date  +'%Y-% m -% d ' )
    
     i f [ ! -d  $ TODAY_DIR$ DAT E_ DIR ];
     then
          mkdir -p  $T ODAY_D IR $DA T E_DIR 
      fi;
     
       ec h o $TOD A Y_DIR$D A T E_ DIR    

So you cand os tuff like this  withle s st h ink ing /typing:
   
  
     c p som e file.csv $(to day)
    
I 've  beenus ing this f or afe w  ye ars and con tinu ally find  it ha n dy, bot h  at
the  comma ndlin e an d  i nkee pi n g f i le s c l ust ered whe nIwantto d i g s omet hin g
up  late r. It is slig htl y le s s h elpfu l ifyoure gular ly wor k pas tmidnight,
thoug h!
------
mo d
N ot  ex ac tly a script , b utI workat home and  s o m e ti mes I need to drow no u tthe
kids  (or t h ewi f e!). I h av e t hisi n  my.b ashr c :
alias w hiteno i se =' play -q  - c 2 -n  s ynt h b rownn o iseband - n 1600 1 500 t r emolo
.1 30'
I t plays somef uz z y  w h iten ois e, which dr owns them  out an d l e ts me  keep  f o cu s ed
(music is oftendi stract ing t o me).

----- -
davidban h a m 
I callthis bl i ngle. I call i t aft er any lon g  running  oper ation th at I want t o
be not ifi edof.  It p op s a desktop n o t ific at ion and  se nds a p ush  me ssa geto  my
phone .

eg: m ak ede pl oy;  blin g le

#!/b in /ba sh 

M SG=${ @ :-"Job  comp lete "} 
n oti fy-send "$ M S G"
cu rl  -s\
   
   
   --form -string " tok e n=TO KE N"  \
   
      --form -s tring "use r= UID " \
 
      - -form-string "message=$ M SG" \
  
     ht tps://api .pu shover .ne t /1/mes sages. json
~ ~~s t 0le
F o r  a  fr ee  alternati v e , c heckin stap ush.imor pushbullet

--- - --tedmiston
I h ave  let t e rs  li k er  an db  al i a sed in my bashprofile to  c h ec k for andr unabash sc ript, i f ite xists,in each p roject di re ctor y (r=./run.sh,  b =
./b uild
 _today__to auto-create_daily scratch
directories:

  _ 
__ _
_  _  _ TODAY_DIR="$HOME/today/"
  _  __ DATE_DIR=$(date +'%Y-%m-%d')
        
   __ __if_[! -d  $TODAY_DIR$DATE_DIR ];
_    _ _then
       __  _mkdir -p $TODAY_DIR$DATE_DIR
      _ fi;
    _  _
__   _  echo $TODAY_DIR$DATE_DIR
  _ 

So you can do stuff_like this with less thinking/typing:

  _ 
    
_    _ _cp somefile.csv $(today)
  _ 

I've been_using this_for a few_years and continually find it handy,_both at
the command_line and in keeping files clustered_when_I want to_dig_something
up_later. It_is slightly less_helpful_if you_regularly_work past midnight,
though!

------
mod
Not exactly a script,_but_I work at home and sometimes I_need to drown out_the
kids_(or the wife!). I_have this in my.bashrc:

alias whitenoise='play_-q -c 2 -n synth brownnoise_band -n_1600 1500_tremolo
.1 30'

It plays some fuzzy whitenoise, which drowns them out and_lets me keep focused
(music is often_distracting to me).

------
davidbanham
I call_this blingle._I_call it after_any_long running_operation that I want to
be notified of._It pops_a desktop notification and sends a_push message to my
phone.

eg:_make_deploy; blingle

#!/bin/bash

MSG=${@:-"Job complete"}

notify-send "$MSG"

curl -s \

_   
  _ 
   ___--form-string "token=TOKEN" \
  _ 
    _ --form-string "user=UID"_\
    
  __  --form-string "message=$MSG" \
 __ 
    __https://api.pushover.net/1/messages.json

~~~
st0le
For_a free alternative, check instapush.im_or pushbullet

------
tedmiston
I have letters like r_and b aliased in my bash profile to check_for and run_a
bash script, if it exists,_in_each_project directory (r =./run.sh, b =
./build