-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
# Put this function to your .bashrc file. | |
# Usage: mv oldfilename | |
# If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
# Original mv is called when it's called with more than one argument. | |
# It's useful when you want to change just a few letters in a long name. | |
# | |
# Also see: | |
# - imv from renameutils | |
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
I've implemented this in a current project as a service. The solution is straightforward but depends on security annotations. You may adapt the solution to fit your needs... It should be easy to use custom annotations or to combine this with configuration options running in from config.yml or a database.
This is related with Symfony Issue #6538
namespace Acme\Security\Roles;
use Symfony\Component\HttpFoundation\Request;
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
<html> | |
<head> | |
<style> | |
body { | |
background-color: #fff; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
background-size: cover; | |
-webkit-animation-duration: 10s; | |
-moz-animation-duration: 10s; |
-- ********************************************* | |
-- demonstrate how to get the program parameters | |
-- ********************************************* | |
local internal_name = select(1,...); | |
local visible_name = select(2,...); | |
gma.echo("Hello, you loaded the plugin " .. internal_name); -- you will see this message in the system monitor | |
-- ********************************************* |
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
] | |
} |
Collection of some of my fav terminal aliases that I use often & collected from the web. This file will be updated with more aliases as I find more. Feel free to comment and share your fav aliases you use :)
vim ~/.bash_profile
i
and then paste the following at the top of the file:The idea is to improve the SQL language, specifically the join syntax, for the special but common case when joining on foreign key columns.
Example below taken from PostgreSQL documentation [1]
In SQL-89, we didn't have any JOIN
syntax yet, so queries were written in this way:
static string compressGuid(Guid guid) | |
{ | |
// "MspzuC2oLkKjoUEgZrbJFg==" | |
return Convert.ToBase64String(guid.ToByteArray()) | |
.Substring(0, 22) | |
.Replace('+', '-') | |
.Replace('/', '_'); | |
} |