Remove attributes with jq from a GeoJSON file:
cat points.geojson | jq ".features[].properties |= del(.c) | .features[].properties |= del(.d)"Add property with default value:
| --- | |
| version: "3.8" | |
| services: | |
| master: | |
| image: chrislusf/seaweedfs:latest | |
| command: master -mdir=/data | |
| networks: | |
| - weed |
| # frozen_string_literal: true | |
| require 'progress_bar' | |
| require 'json' | |
| require 'open-uri' | |
| namespace :pseudo do | |
| desc 'Pseudonymize user data' | |
| task :perform => :environment do | |
| count = User.count # get count of users currently in DB | |
| bar = ProgressBar.new(count) # prepare some nice output |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| class Home extends StatefulWidget { | |
| Home({Key key}) : super(key: key); | |
| @override | |
| _HomeState createState() => _HomeState(); | |
| } |
| import 'dart:async'; | |
| import 'dart:ffi'; | |
| import 'dart:io'; | |
| import 'dart:math'; | |
| import 'package:moor/backends.dart'; | |
| import 'package:moor/moor.dart'; | |
| import 'package:moor_ffi/moor_ffi.dart'; | |
| import 'package:moor_ffi/open_helper.dart'; |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:bloc/bloc.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| import 'package:meta/meta.dart'; | |
| import 'package:geolocator/geolocator.dart'; | |
| void main() => runApp(MyApp()); |
| # filter LISTEN - faster variant | |
| lsof -anP -i4 -sTCP:LISTEN | |
| # exclude UDP | |
| lsof -anP -i4 -sTCP:LISTEN | grep TCP | |
| # lsof with ports sort: | |
| lsof -anP -i4 -sTCP:LISTEN | grep -v UDP | awk {'printf("%18s %-12s %8s %s %s %s\n", $9,$1,$2,$4,$3,$10)'} | sort -u | |
| # docker-ps |
| /* | |
| * I'm sure there's a better way to do this, but this solution works for me. | |
| * Recursively copies a directory + subdirectories into a target directory. | |
| * There's also no error handling. Have fun. | |
| */ | |
| import 'dart:io'; | |
| import 'package:path/path.dart' as path; | |
| Future<void> copyDirectory(Directory source, Directory destination) async { |
Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.
@broros
otherwise why would he hand over a popular package to a stranger?
If it's not fun anymore, you get literally nothing from maintaining a popular package.
One time, I was working as a dishwasher in a restu