This file contains hidden or 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 | |
/** | |
* Extended / Overloaded CI-Upload Class to handle Flash-Form-Uploaded Images via Application/octet-stream | |
* | |
*/ | |
if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Extends the CodeIgniter Upload-Class | |
*/ |
This file contains hidden or 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 | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => "API_ENDPOINT", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 0, | |
CURLOPT_FOLLOWLOCATION => true, | |
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, |
This file contains hidden or 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 timeoutId; | |
$(document).on('keypress', '#overview', function () { | |
if (timeoutId) clearTimeout(timeoutId); | |
let brief = $(this).val() | |
let steps_id = $(this).data('id') | |
timeoutId = setTimeout(function () { | |
$.ajax({ |
This file contains hidden or 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
package main | |
import ( | |
exif "github.com/dsoprea/go-exif/v3" | |
exifcommon "github.com/dsoprea/go-exif/v3/common" | |
jpeg "github.com/dsoprea/go-jpeg-image-structure/v2" | |
) | |
func setExifTag(rootIB *exif.IfdBuilder, ifdPath, tagName, tagValue string) error { |
This file contains hidden or 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
FROM golang:latest AS base | |
RUN apt-get update && \ | |
apt-get -y --no-install-recommends install software-properties-common && \ | |
add-apt-repository "deb http://httpredir.debian.org/debian bullseye main" && \ | |
apt-get update && \ | |
apt-get -qq install -y libvips-dev && rm -rf /var/lib/apt/lists/* | |
WORKDIR /app |
This file contains hidden or 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
"columnDefs": [ | |
{"className": 'nowrap', 'targets': [0, 1, 4]}, | |
{"className": 'text-right', 'targets': [10, 11, 13, 14, 15, 16, 21, 23]}, | |
// {"render": $.fn.dataTable.render.moment( 'Do MMM YYYY' , 'YYYY-MM-DD' ), 'targets' : [8]} | |
], |
This file contains hidden or 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/sh | |
START_TIME=$(date +%s) | |
vipsthumbnail 2300.jpg --size 800 | |
END_TIME=$(date +%s) | |
echo "It took $(($END_TIME - $START_TIME)) seconds to sleep of 1 second..." |
This file contains hidden or 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
//div[contains(concat(' ',normalize-space(@class),' '),'card hover-effect')] |
This file contains hidden or 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
docker run --platform linux/arm64 | |
-- | |
Alteos GmbH | Tauentzienstraße 7 b/c | 10789 Berlin | Deutschland | |
Geschäftsführer: Dr. Sebastian Sieglerschmidt | Vorsitzender des Beirats: | |
Dr. Nils Reich | Sitz der Gesellschaft: Berlin | Registergericht: |
This file contains hidden or 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
sudo kill -9 `sudo ps -ef | grep php-fpm | grep -v grep | awk '{print $2}'` | |
ps -A | grep php-fpm | awk '{print $1}' | xargs kill -9 $1 |