I hereby claim:
- I am mohnish82 on github.
- I am mohnish82 (https://keybase.io/mohnish82) on keybase.
- I have a public key ASA1RN9bNoXuadvUq765ZjY1QbQ3aEuKH5beqw7RZ1KSlgo
To claim this, I am signing this object:
[ | |
{ | |
"key": "ctrl+left", | |
"command": "cursorWordPartLeft", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "ctrl+right", | |
"command": "cursorWordPartRight", | |
"when": "textInputFocus" |
Strig input = "_ab__f_"; | |
//Pattern p = Pattern.compile("_+(.)", Pattern.DOTALL); | |
// pattern with named backreference i.e. (?<firstElement>) | |
Pattern p = Pattern.compile("_+(?<firstElement>.)", Pattern.DOTALL); | |
Matcher m = p.matcher(input); | |
StringBuffer buff = new StringBuffer(); |
spring: | |
security: | |
oauth2: | |
client: | |
registration: | |
keycloak: | |
client-id: xyz-app | |
client-secret: <insert-secret-here> | |
clientName: XYZ | |
authorization-grant-type: authorization_code |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
public class FileMimeTypeService { | |
public String getContentType(String file) { | |
Hello | |
![Some Text](static/images/image.png) | |
World |
I hereby claim:
To claim this, I am signing this object:
# Method 1 | |
cat /dev/random | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 5 | |
tr => translate/delete input stream | |
-d => delete from stream | |
-c => complement of SET1, SET1 being 'a-zA-Z0-9' i.e. delete all chars except the ones in SET1 from input stream | |
fold => wrap output into 16 column fixed width i.e. generate passwords of length 8 | |
head => top 5 results only |
Log events to file | |
================== | |
curl -H 'Authorization: Bearer <auth_token_here>' -N https://api.particle.io/v1/devices/events -o photon.log | |
-H => header | |
-N => No buffer; output in real time | |
-o => output to file |
#!/usr/bin/perl -w | |
# | |
# This script was developed by Robin Barker ([email protected]), | |
# from Larry Wall's original script eg/rename from the perl source. | |
# | |
# This script is free software; you can redistribute it and/or modify it | |
# under the same terms as Perl itself. | |
# | |
# Larry(?)'s RCS header: | |
# RCSfile: rename,v Revision: 4.1 Date: 92/08/07 17:20:30 |