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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files for examples | |
# Test for an interactive shell. There is no need to set anything | |
# past this point for scp and rcp, and it's important to refrain from | |
# outputting anything in those cases. | |
# If not running interactively, don't do anything! | |
[[ $- != *i* ]] && return |
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
#!/usr/bin/env bash | |
#!/usr/bin/env bash | |
REPS=`find /home/dev/Workspace -maxdepth 4 -type d -name ".git"` | |
USERNAME=`git config --get user.name` | |
echo "search for history of ${USERNAME}" | |
for REP in $REPS | |
do |
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
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var deployPath = 'dist'; | |
gulp.task('default', ['build']); | |
gulp.task('build', ['js', 'css']); | |
gulp.task('watch', function () { | |
gulp.watch(['src/**'], ['js']); |
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
(function ($, _) { | |
"use strict"; | |
var escapeRegExp = function (str) { | |
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); | |
}; | |
var characterGlue = '[^a-zA-Z0-9]*'; | |
var charMap = (function() { |
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
/poll "Was wollen wir heute essen? | |
Ciao Bella: https://st-pauli.ciao-bella.de/mittagstisch/mittagstisch-der-woche.html | |
Taverna Romana: http://taverna-romana-hamburg.eu/our-menu/mittagstisch-menu/" "Ciao Bella (Italiener)" :pizza: "Döner/Paulis Kumpir (und Croque)/Thai Pauli" :stuffed_flatbread: "Azeitona (Falafel)" :broccoli: "Olympisches Feuer (Grieche)" :amphora: "Kleine Pause (Fast food)" :fries: "Asia Imbiss (Asiate)" :ramen: "Maharaja (Inder)" :curry: "Trattoria da Mario (Italiener)" :spaghetti: "Taverne Romana" :stew: "Graupi" :potato: |
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
<?php | |
namespace Vendor\Extension\Domain\Repository; | |
use TYPO3\CMS\Core\Database\Connection; | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Database\Query\QueryBuilder; | |
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper; |
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
{ | |
init: function(elevators, floors) { | |
this.elevators = elevators; | |
this.floors = floors; | |
this.todos = []; | |
this.time = 0; | |
this.overSizeTheashold = 6; | |
for (let floor of floors) { | |
floor.on('down_button_pressed', () => this.addFloorButtonPush(floor, 'down')); |
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
// ==UserScript== | |
// @name Bulk removal google hack | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Bulk remove a search result from google | |
// @author Marco Pfeiffer | |
// @match https://www.google.com/webmasters/tools/removals* | |
// @grant none | |
// ==/UserScript== |
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
// $0 = <password-list-item> so you'll need to pick that element in your browser first | |
// then execute this script until your password list is empty (there is a timing issue but after about 3 tries the password list is empty) | |
$0.parentNode.querySelectorAll('password-list-item').forEach(item => { | |
item.shadowRoot.querySelector('#passwordMenu').click(); | |
item.parentNode.parentNode.parentNode.querySelector('#menuRemovePassword').click(); | |
}) |
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
// This sketch shows how to read voltages from an esp32 | |
// Your ESP has to be manufactured in 2018 or newer for the values to be burned into eFuse. | |
// more infos here: | |
// https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html#adc-calibration | |
#include <Arduino.h> | |
#include <esp_adc_cal.h> | |
esp_adc_cal_characteristics_t chars; |