recentpopularlog in

kme : ag   17

GitHub - tomnomnom/gf: A wrapper around grep, to help you grep for things
gf - A wrapper around grep to avoid typing common patterns.

What? Why?

I use grep a lot. When auditing code bases, looking at the output of meg, or just generally dealing with large amounts of data. I often end up using fairly complex patterns like this one:

▶ grep -HnrE '(\$_(POST|GET|COOKIE|REQUEST|SERVER|FILES)|php://(input|stdin))' *

It's really easy to mess up when typing all of that, and it can be hard to know if you haven't got any results because there are non to find, or because you screwed up writing the pattern or chose the wrong flags.

I wrote gf to give names to the pattern and flag combinations I use all the time. So the above command becomes simply:

▶ gf php-sources
go  cli  commandline  searching  textprocessing  patternmatching  regex  grep  alternativeto  ack  ag 
july 2019 by kme
Back From Afghanistan, and Straight to the Greenhouse - The Atlantic
I think the retailers also need to understand that this world of 100 percent beautiful fruit is a fiction. There is plenty of healthy, nutritious fruit out there that doesn't look like a work of art. It tastes just as good.
food  hydroponics  ag 
october 2016 by kme
We Already Grow Enough Food for 10 Billion People… and Still Can’t End Hunger | Common Dreams | Breaking News & Views for the Progressive Community
Hunger is caused by poverty and inequality, not scarcity. For the past two decades the rate of global food production has increased faster than the rate of global population growth. The world already produces more than 1 ½ times enough food to feed everyone on the planet. That’s enough to feed 10 billion people, the population peak we expect by 2050. But the people making less than $2 a day—most of whom are resource-poor farmers cultivating unviably small plots of land—can’t afford to buy this food.

In reality, the bulk of industrially produced grain crops goes to biofuels and confined animal feedlots rather than food for the 1 billion hungry. The call to double food production by 2050 only applies if we continue to prioritize the growing population of livestock and automobiles over hungry people.

The higher performance of conventional over organic methods may hold between what are essentially both mono-cultural commodity farms. This misleading comparison sets organic agriculture as a straw man to be knocked down by its conventional counterpart. While it is rarely acknowledged, half the food in the world is produced by 1.5 billion farmers working small plots for which monocultures of any kind are unsustainable. Non-commercial poly-cultures are better for balancing diets and reducing risk, and can thrive without agrochemicals. Agroecological methods that emphasize rich crop diversity in time and space conserve soils and water and have proven to produce the most rapid, recognizable and sustainable results. In areas in which soils have already been degraded by conventional agriculture’s chemical “packages”, agroecological methods can increase productivity by 100-300%.
ag  farming  feedingtheworld  population  sustainability 
september 2016 by kme
Foodie localism loves farming in theory, but not in practice | Aeon Ideas
It’s up to consumers to advocate for policies that allow farmers to succeed. If you care about artisan cheese wheels, you should care about dairy prices. If you enjoy getting your weekly Community Supported Agriculture share, you should support programmes that increase the economic viability of our farmers. Obvious options include expanding Individual Development Accounts for beginning farmers and adding farmers to the Public Service Loan Forgiveness programme through the Young Farmer Success Act. Funding for crisis lines and behavioural health resources for farm families is insufficient and should be increased. Doing so acknowledges that the wellbeing of farmers is directly related to the availability of good food. Land trusts can work with farmers to reduce land costs through tools such as conservation easements, but this requires funding and often political support.
food  buylocal  farming  ag  idealism 
july 2016 by kme

Copy this bookmark:

to read