Skip to content

Instantly share code, notes, and snippets.

View florian25686's full-sized avatar

Florian florian25686

View GitHub Profile
@florian25686
florian25686 / search_file_contents.csv
Last active June 30, 2021 06:46
Find all lines from one file in another file (I'm using csv)
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
#!/bin/bash
# Search through the contents of this file
search="{full file path}"
# Find contents from this file
pattern="{full file path}"
grep -f <(tr ',' '\n' < "${patterns}") "${search}"
# To find contents that is NOT in the search file add -v to the grep command
@florian25686
florian25686 / Pimcore Datahub Graphql
Created April 13, 2020 09:49
Pimcore Datahub Graphql
### Get all Blog Articles
query {
getBlogArticleListing(published: true) {
edges {
node {
id
headline
blogContentShortend
}
}
@florian25686
florian25686 / html
Created February 27, 2017 14:32
JQuery replace <p> with a input-Field
<!DOCTYPE html>
<html>
<head>
<title>Jquery Test</title>
<script src="jquery-3.1.1.js"></script>
<script>
$(document).ready(function() {
$("#changes_tests p").on(
"click",
@florian25686
florian25686 / gist:cf4d9fd925874df507aec4f6d6587ee8
Last active December 16, 2016 16:51
Rezept Orangenlikör
Orangenlikör
Dessertvariation "Weihnachtsengel":
> Saft (z.B Orange)
> 2 Kugeln Vanilleeis
> 1 Schluck Likör
http://www.elated.com/articles/drag-and-drop-with-jquery-your-essential-guide/