This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def map = [:] | |
def list = [] | |
map.put("suba", "Sub A") | |
map.put("subb", "Sub B") | |
list.add(map) | |
def propA = "value" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"log": true, | |
"pathMappings": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Asus", | |
"id": 1 | |
}, | |
{ | |
"name": "Toshiba", | |
"id": 2 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Computers" | |
}, | |
{ | |
"name": "Tablets" | |
}, | |
{ | |
"name": "Phones" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credits: https://stackoverflow.com/a/30438121 | |
// I use this to generate random strings in jetbrains IDEs (IntelliJ, PHPStorm, etc.). | |
// Modify the length of the string by replacing the 10 in 1..10 | |
new Random().with {(1..10).collect { (('A'..'Z')+('0'..'9')+('a'..'z'))[nextInt(64) ] }.join()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"quotes": [ | |
{"quote": "Suck a dick, dumbshits!", "author": "Sarah Lynn"}, | |
{"quote": "Every day, it gets a little easier. But you gotta do it every day -- that's the hard part.", "author": "Running Babboon"}, | |
{"quote": "When you look at someone through rose-colored glasses, all the red flags just look like flags.", "author": "Wanda"}, | |
{"quote": "I was at the stock market today, I did a business.", "author": "Vincent Adultman"}, | |
{"quote": "I don't think I believe in 'deep down'. I think that all you are is just the things that you do.", "author": "Diane"}, | |
{"quote": "The key to being happy isn't the search for meaning. It's to just keep yourself busy with unimportant nonsense and eventually, you'll be dead.", "author": "Mr. PeanutButter"}, | |
{"quote": "I'm responsible for my own happiness? I can't even be responsible for my own breakfast!", "author": "Bojack"} | |
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OPTIND=1 | |
function usage() { | |
echo 'Usage: randstr OPTIONS' | |
echo 'Generates a random string with the specified options.' | |
echo 'By default, the generated string uses lower and uppercase letters, ' | |
echo 'numbers and has a length of 8.' | |
echo '' | |
echo 'OPTIONS:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'}) | |
CREATE (Keanu:Person {name:'Keanu Reeves', born:1964}) | |
CREATE (Carrie:Person {name:'Carrie-Anne Moss', born:1967}) | |
CREATE (Laurence:Person {name:'Laurence Fishburne', born:1961}) | |
CREATE (Hugo:Person {name:'Hugo Weaving', born:1960}) | |
CREATE (LillyW:Person {name:'Lilly Wachowski', born:1967}) | |
CREATE (LanaW:Person {name:'Lana Wachowski', born:1965}) | |
CREATE (JoelS:Person {name:'Joel Silver', born:1952}) | |
CREATE | |
(Keanu)-[:ACTED_IN {roles:['Neo']}]->(TheMatrix), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
restorecon -r /etc/ssh |