Pinboard (jm)
https://pinboard.in/u:jm/public/
recent bookmarks from jmButterfish2023-08-28T21:19:41+00:00
https://butterfi.sh/
jmllms gpt cli command-line unix shell bash zshhttps://pinboard.in/https://pinboard.in/u:jm/b:6679c8ee4978/ellie/atuin2023-05-08T11:27:25+00:00
https://github.com/ellie/atuin
jmAtuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.
(via Nelson)
]]>cli history shell unix atuin terminalshttps://pinboard.in/https://pinboard.in/u:jm/b:3a04ccec01e0/“Quite Divorced From Reality”: Climate Scientist, Activists Call Out Shell Exec at UN Conference - In These Times2019-12-06T10:47:29+00:00
http://inthesetimes.com/article/22193/quite-divorced-from-reality-climate-scientist-activists-call-out-shell-exec
jm“This is quite divorced from reality, what you are all discussing,” Simon Lewis, a climate science professor at University College London, told the oil executives during a Q+A. Lewis went on to explain to the audience that even if polluters invested in every nature conservation, sustainability agriculture or other “natural climate solution” in the world, those projects would only offset about 20% of global greenhouse gas emissions; the vast majority of cuts would still have to come about through actual reductions in fossil fuel use. Given this, Lewis asked them to explain how the initiative was any different from other corporate schemes put forth in past decades—good PR that doesn’t actually tackle the problem.
In addition, carbon offset trading—which has been going on at smaller scales for decades—is no silver bullet. It has had mixed results to date, including failed projects, outright fraud, and human rights abuses against rural, indigenous and other vulnerable communities, prompting fierce opposition from grassroots climate organizations against including carbon trading in the Paris Accord. The carbon trading question is one of the remaining thorny issues country negotiators are supposed to iron out during this two-week climate conference, which ends December 13. The rules for such “market-based solutions” (included in what is technically known as Article 6 of Paris Agreement) were supposed to be decided at last year’s meeting, but countries remain far apart; in fact, some observers wonder if it won’t be punted off again until next year.
Meanwhile, the oil majors have yet to unveil a plan for reducing their own company emissions in line with the Paris Agreement, which calls for dramatically reducing fossil fuel use to prevent climate catastrophe.
]]>shell offsets climate-change climate simon-lewishttps://pinboard.in/https://pinboard.in/u:jm/b:c2233beb4834/Revealed: the 20 firms behind a third of all carbon emissions2019-10-09T16:16:54+00:00
https://www.theguardian.com/environment/2019/oct/09/revealed-20-firms-third-carbon-emissions
jmThe top 20 companies on the list have contributed to 35% of all energy-related carbon dioxide and methane worldwide, totalling 480bn tonnes of carbon dioxide equivalent (GtCO2e) since 1965.
Those identified range from investor-owned firms – household names such as Chevron, Exxon, BP and Shell – to state-owned companies including Saudi Aramco and Gazprom. Chevron topped the list of the eight investor-owned corporations, followed closely by Exxon, BP and Shell. Together these four global businesses are behind more than 10% of the world’s carbon emissions since 1965.
]]>coal emissions business gas oil fossil-fuels climate-change co2 carbon chevron exxon bp shellhttps://pinboard.in/https://pinboard.in/u:jm/b:1c0a4dbf4a15/Cloud Shell - Google Cloud Platform2019-03-25T21:42:53+00:00
https://console.cloud.google.com/cloudshell/editor?pli=1&supportedpurview=project&shellonly=true
jmshell servers linux google gcp cloudshellhttps://pinboard.in/https://pinboard.in/u:jm/b:b1154a01a4bd/course-hero/slacktee2018-05-22T12:36:48+00:00
https://github.com/course-hero/slacktee
jmvia:ardi shell slack ops hacks notificationhttps://pinboard.in/https://pinboard.in/u:jm/b:002933914b9d/explainshell.com2017-05-02T10:01:01+00:00
https://explainshell.com/explain?cmd=sudo+iptables+-t+nat+-L+PREROUTING+-n+%7C+tr+-s+%27+%27+%7C+cut+-d+%27+%27+-f7-
jmcli unix documentation explainshell shell scripting syntax manual-pageshttps://pinboard.in/https://pinboard.in/u:jm/b:0b452affc49f/Detecting the use of "curl | bash" server side2016-04-20T11:32:52+00:00
https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/
jmThe better solution is never to pipe untrusted data streams into bash. If you still want to run untrusted bash scripts a better approach is to pipe the contents of URL into a file, review the contents on disk and only then execute it.
]]>bash security shell unix curl tcp buffershttps://pinboard.in/https://pinboard.in/u:jm/b:5c0b66a8a0ff/Google Cloud Shell2015-10-05T11:14:03+00:00
https://cloud.google.com/cloud-shell/
jmyour command line environment in the [Google] Cloud. This feature enables you to connect to a shell environment on a virtual machine, pre-loaded with the tools you need to easily run commands to develop, deploy and manage your projects. Currently, Cloud Shell is an f1-micro Google Compute Engine machine that exposes a Debian-based development environment. You are also assigned 5 GB of standard persistent disk space as the home disk so you can store files between sessions.
It's also free. This is a great idea -- handy both for beginners getting to grips with GoogCloud and for experts looking for a quite dev env to hack with. I wish AWS had something similar.]]>google cloud shell google-cloud gcs gce cli toolshttps://pinboard.in/https://pinboard.in/u:jm/b:44019468c716/peco2015-06-25T16:58:21+00:00
https://github.com/peco/peco
jmcli shell terminal tools go peco interactive incremental-search search ui unixhttps://pinboard.in/https://pinboard.in/u:jm/b:38e61b147a67/ShellCheck2015-04-28T11:07:53+00:00
http://www.shellcheck.net
jmbash cli sh linux shell coding static-analysis linthttps://pinboard.in/https://pinboard.in/u:jm/b:a306ee94be02/Using Named Pipes and Process Substitution in Bioinformatics2015-03-16T16:15:52+00:00
http://vincebuffalo.com/2013/08/08/the-mighty-named-pipe.html
jmbash linux pipes shell unix via:igrigorik cli named-pipes process-substitutionhttps://pinboard.in/https://pinboard.in/u:jm/b:40515335523b/Shellshock2014-10-08T22:50:43+00:00
http://www.dwheeler.com/essays/shellshock.html
jmbash hacking security shell exploits reference shellshockhttps://pinboard.in/https://pinboard.in/u:jm/b:4c6375bae57a/Russell91/sshrc2014-09-17T16:33:55+00:00
https://github.com/Russell91/sshrc
jmhacks productivity ssh remote shell sh bash via:johnke home-directory unixhttps://pinboard.in/https://pinboard.in/u:jm/b:e0c0aea5f108/moreutils2013-03-06T22:24:10+00:00
http://joeyh.name/code/moreutils/
jmsponge: accept input, wait til EOF, then rewrite a file;
chronic: runs a command quietly unless it fails;
combine: combine the lines in two files using boolean operations;
ifdata: get network interface info without parsing ifconfig output;
ifne: run a program if the standard input is not empty;
isutf8: check if a file or standard input is utf-8;
lckdo: execute a program with a lock held;
mispipe: pipe two commands, returning the exit status of the first;
parallel: run multiple jobs at once;
pee: tee standard input to pipes;
sponge: soak up standard input and write to a file;
ts: timestamp standard input;
vidir: edit a directory in your text editor;
vipe: insert a text editor into a pipe;
zrun: automatically uncompress arguments to command
]]>bash shell cli unix scripting via:peakscale joey-hess debian ubuntu tools command-line commandshttps://pinboard.in/https://pinboard.in/u:jm/b:7972b7dff6c4/Making Really Executable Jars2013-03-01T22:36:52+00:00
http://skife.org/java/unix/2011/06/20/really_executable_jars.html
jmThere has long been a hack known in some circles, but not widely known, to make jars really executable, in the chmod +x sense. The hack takes advantage of the fact that jar files are zip files, and zip files allow arbitrary cruft to be prepended to the zip file itself (this is how self-extracting zip files work).
]]>jars via:netflix shell java executable chmod zip hacks command-line clihttps://pinboard.in/https://pinboard.in/u:jm/b:706bb7fc507a/spark2011-12-08T23:24:15+00:00
https://github.com/mjdominus/spark/blob/master/spark
jmvia:mjdominus sparklines charts graphs bash shell terminal cli ansihttps://pinboard.in/https://pinboard.in/u:jm/b:8ffb8057c9fa/Copying block devices between machines2011-03-14T21:21:42+00:00
http://strugglers.net/~andy/blog/2011/03/13/copying-block-devices-between-machines/
jmdevices hairy hacks shell perl networking ssh rsync lvm snapshotshttps://pinboard.in/u:jm/b:ad70e0c35cf0/gist: 782263 - How to redirect a running process' output to a file and logout2011-01-17T13:32:01+00:00
https://gist.github.com/782263
jmgdb hacks linux process shell unix via:hn nifty dup detach bashhttps://pinboard.in/u:jm/b:97a2995c12ff/Project Middleman2010-10-19T20:12:17+00:00
http://mdm.berlios.de/usage.html
jmmdm unix concurrency shell linux forking background xargs parallelismhttps://pinboard.in/u:jm/b:0868e2c3b4d8/GNU Parallel - build and execute command lines from standard input in parallel2010-10-19T20:10:05+00:00
http://savannah.gnu.org/projects/parallel
jmvia:fanf unix concurrency gnu linux job parallel scripting shellhttps://pinboard.in/u:jm/b:603200e22e92/autojump2010-07-26T10:04:20+00:00
http://wiki.github.com/joelthelion/autojump/
jmautojump cli bash command-line navigation terminal shell directory cdhttps://pinboard.in/u:jm/b:898589dadc0b/Mac OS X command-line tricks2010-07-26T09:58:29+00:00
http://superuser.com/questions/52483/terminal-tips-and-tricks-for-mac-os-x
jmapple bash cli osx mac sysadmin shell tricks command-linehttps://pinboard.in/u:jm/b:54f099613595/pigz2009-10-21T10:09:18+00:00
http://www.zlib.net/pigz/
jmadler pigz gzip compression performance concurrency shell parallel multicore zip softwarehttps://pinboard.in/u:jm/b:3488243c8811/