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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Fullscreen Image Viewer</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
} |
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
FROM redhat/ubi8 | |
RUN yum install -y --disableplugin=subscription-manager procps | |
CMD /bin/yes |
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
module Main where | |
-- using http://hackage.haskell.org/package/base-4.12.0.0/docs/System-Environment.html#v:lookupEnv | |
import System.Environment | |
main :: IO () | |
main = do | |
shell <- lookupEnv "SHELL" -- System.Environment.lookupEnv take a String | |
doesnotexist <- lookupEnv "DOESNOTEXIST" | |
print (checkEnvVars shell) |
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
! logitech g610 multimedia keys | |
keycode 170 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume | |
keycode 92 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume | |
keycode 189 = XF86AudioPrev NoSymbol XF86AudioPrev | |
keycode 190 = XF86AudioNext NoSymbol XF86AudioNext | |
keycode 184 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause | |
keycode 207 = XF86AudioMute NoSymbol XF86AudioMute | |
keycode 147 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject |
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 <cmath> | |
#include <fstream> | |
#include <iostream> | |
#include <sys/stat.h> | |
#include <vector> | |
int32_t ascii_to_int(std::string c) { | |
int32_t rv; | |
for (size_t i=0; i<c.size(); ++i) { | |
rv <<= 8; |
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
#!/bin/bash | |
verbose=0 | |
arg=$1 | |
if [ "$arg" = "-h" ]; then | |
echo "Usage: $0 [OPTIONS] [FILENAME]" | |
echo -e " -h\tShow this help" | |
echo -e " -v\tverbose - show more output" | |
echo |
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 main | |
import "encoding/json" | |
import "strings" | |
import "fmt" | |
type Payload struct { | |
User string | |
} | |
func asdf() { |
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
# all highlights done in channel #a | |
# channel #p is just something that I make active in quassel for this test, regardless if focused or not | |
# focused/unfocused means: quassel is the active/inactive window | |
# toast = tray notification window | |
# fine | |
windows unfocused | channel active: #p | toast: yes | colored channel: yes | |
linux unfocused | channel active: #p | toast: yes | colored channel: yes |
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
# A _init.rb file contains Ruby code that will be executed when | |
# your application boots up. Use it to extend and modify other nodes! | |
# | |
# In this simple example, we're simply adding some convenience methods to | |
# all available blog posts for easier access to specific pieces of data. | |
extend_siblings do | |
def date | |
data.date | |
end |
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
#!/bin/bash | |
ERR=0 | |
for f in $(git diff --name-only HEAD HEAD~1); do | |
./build/check_puppet_syntax.sh $f | |
TMP=$? | |
if [ $TMP -ne 0 ]; then | |
ERR=$(($ERR + $TMP)) | |
fi | |
done | |
exit $ERR |
NewerOlder