- elegant and efficient
- does one thing well
- can easily be read, and enhanced by a developer other than its original author
- meaningful names
- minimal dependencies
- has unit and acceptance tests
- clean code always looks like it was written by someone who cares
- nothing obvious that you can do to make it better
- no duplication
#!/bin/bash | |
# ============================================================================== | |
# MIT License | |
# | |
# Copyright (c) 2019 Robbert Müller | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
<?php | |
/** | |
* @license WTFPL (Do What the Fuck You Want to Public License) | |
* @author Daniel Bugl <daniel.bugl@touchlay.com> | |
*/ | |
namespace TouchLay\HelperBundle\Component; | |
use Symfony\Component\HttpFoundation\JsonResponse; |
I code for a living - for two decades, now. And UNIX is in my blood.
I have therefore (naturally) installed Termux on my Android phone, and use it to spawn sshd
- a very useful process when your ISP connection fails you, since you get to use the phone's internet connection (via ssh -D 1080 ...
and configuring Firefox to use localhost:1080
as SOCKS proxy). This does not depend on your contract allowing hotspot-ing or not - it's close to bullet-proof.
Yesterday I ssh-ed in the phone, looking around and checking out the Android environment - and I see Termux's ps aux
return among others .... /system/xbin/dropboxd
.
What the heck - I never installed Dropbox on my phone!
It does not appear in the list of installed apps, either - and is naturally not removable, since I am not root.
The MIT License (MIT)
Copyright (c) 2014 David Underwood
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Picked these from here
Command | Note |
---|---|
Ctrl + a | go to the start of the command line |
Ctrl + e | go to the end of the command line |
Ctrl + k | delete from cursor to the end of the command line |
- Create a bookmark with the following text in the URL field:
javascript:(function() {
if (!document.querySelectorAll('link[rel*=icon]').length) {
const link = document.createElement('link');
link.rel = 'icon';
document.querySelector('head').appendChild(link);
}
#!/usr/bin/python | |
words = ['SEM', | |
'MVP', | |
'pop', | |
'DRM', | |
'ROI', | |
'DNA', | |
'SEO', | |
'flat', |
A Dashing widget for displaying the number of current visitors (in real time) to your website, as reported by Google Analytics.
This widget is a fork of https://gist.github.com/mtowers/5986576