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
#include <emmintrin.h> // SSE2 intrinsics | |
#include <string.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
// Check if a string is a palindrome using SIMD (SSE2) for high performance | |
bool is_palindrome(const char *str, size_t len) { | |
if (!str || len <= 1) return true; | |
// Align pointers to 16-byte boundary for SIMD |
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
``` | |
[remote "origin"] | |
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* | |
``` |
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
require 'nokogiri' | |
require 'utils/simpleconfig' | |
class XML_CSS < Inspec.resource(1) | |
name 'xml_css' | |
desc 'XML for Chef Inspec using Nokogiri\'s CSS selector feature' | |
example ' | |
Given this set of XML: |
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/bash | |
if [ $# -ne 1 ]; then | |
echo "Please provide a length (e.g. \`urandgen 40\`)!"; | |
exit 1; | |
fi | |
# I rather use the whole list of characters and add/remove one by hand then to screw around with a-zA-Z9-9... | |
cat /dev/urandom | tr -dc 'qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM1234567890,.-;:_!@§$%&/()=?`*+' | head -c $1 | |
echo "" |