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
#include <stdio.h> | |
#include <stdint.h> | |
uint32_t lockin = 0; | |
uint32_t cmpxchg(uint32_t new, uint32_t old, volatile uint32_t* lock) { | |
uint32_t result = 0; | |
asm volatile( | |
"lock cmpxchg %2,%1\n" | |
"sete (%3)\n" |
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
# Contents of /etc/systemd/system/gitea-backup.service | |
[Unit] | |
Description=This service backups gitea | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/ultimative-backupper |
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
[server] | |
skip_name_resolve = 1 | |
innodb_buffer_pool_size = 128M | |
innodb_buffer_pool_instances = 1 | |
innodb_flush_log_at_trx_commit = 2 | |
innodb_log_buffer_size = 32M | |
innodb_max_dirty_pages_pct = 90 | |
query_cache_type = 1 | |
query_cache_limit = 2M | |
query_cache_min_res_unit = 2k |
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
# ------------------------------------------------------------------------------ | |
# tlp - Parameters for power save | |
# Hint: some features are disabled by default, remove the leading # to enable | |
# them. | |
# Set to 0 to disable, 1 to enable TLP. | |
TLP_ENABLE=1 | |
# Dirty page values (timeouts in secs). |
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
# Run the following lines (line by line) in your terminal | |
git clone https://github.com/setarcos/ch341prog.git | |
sudo apt install libusb-1.0-0 libusb-1.0-0-dev | |
make |
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 is a list of packages to be removed when the 'minimal' option is | |
# selected during installation. | |
# Extract from http://people.canonical.com/~ubuntu-archive/seeds/kubuntu.bionic/desktop.minimal-remove | |
# Desktop apps | |
kamera | |
konversation | |
ktorrent |
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
package videoshop.customer; | |
import org.springframework.mail.SimpleMailMessage; | |
import org.springframework.mail.javamail.JavaMailSender; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class CustomerNewMail { | |
private final JavaMailSender emailSender; |
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
upstream php-handler { | |
#TODO php Version anpassen | |
server unix:/var/run/php/php7.4-fpm.sock; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
#TODO Domain anpassen bzw. IP einfügen | |
server_name cloud.example.com; |