Skip to content

Instantly share code, notes, and snippets.

View pascalalich's full-sized avatar

Pascal Alich pascalalich

View GitHub Profile
@pascalalich
pascalalich / resume.json
Last active April 13, 2024 11:41
JSON Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"version": "v1.0.0",
"canonical": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"theme": "elegant",
"lastModified": "2024-04-12T16:08:00"
},
"basics": {
"name": "Pascal Alich",
@pascalalich
pascalalich / Test
Created January 17, 2017 21:18
Test
<h1>Hello World</h1>
@pascalalich
pascalalich / slack-notification.php
Last active September 30, 2018 19:21
Slack Notifications with PHP
<?php
$ch = curl_init();
// The Webhook URL from Slack's integration detail page
curl_setopt($ch, CURLOPT_URL, 'https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX');
// Only disable SSL checks like this for TESTING purposes if doesn't work otherwise. Make sure your PHP SSL certificates are up to date.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// Build an HTTP POST instead of a GET request
curl_setopt($ch, CURLOPT_POST, 1);
// CURL will return the actual response as text, "ok" on success
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@pascalalich
pascalalich / eclipse-templates.xml
Created February 18, 2015 06:59
Eclipse Templates for Java logging, hashCode, equals, and toString with SLF4J and Guava
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="equals (Guava)" enabled="true" name="equals">${:import(com.google.common.base.Objects)}&#13;
@Override&#13;
public boolean equals(final Object obj) {&#13;
if (this == obj) {&#13;
return true;&#13;
}&#13;
if (obj == null) {&#13;
return false;&#13;
}&#13;
if (getClass() != obj.getClass()) {&#13;
@pascalalich
pascalalich / AccessSample.java
Created September 20, 2014 21:56
Access Google Tasks API from Command Line
package demo;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Scanner;
@pascalalich
pascalalich / tx_form_System_Postprocessor.php
Created January 23, 2012 09:21
Taming TYPO3 4.6's forms: Implementing a Webhook PostProcessor
// $this->typoScript[$key] is either 'mail' or 'webhook' in my example
$className = 'tx_form_System_Postprocessor_' . ucfirst(strtolower($this->typoScript[$key]));
if (class_exists($className, TRUE)) {
$processor = t3lib_div::makeInstance($className, $this->form, $processorArguments);
$html .= $processor->process();
}