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 pacman -S libmagick6 | |
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick | |
# or with bundler: | |
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig bundle install |
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
section .text | |
global _start ;must be declared for linker (ld) | |
_start: ;tell linker entry point | |
mov rdi, filename | |
mov rsi, 0102o ;O_CREAT, man open | |
mov rdx, 0666o ;umode_t | |
mov rax, 2 | |
syscall |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
<style> | |
body { | |
background: white; | |
text-align: center; |
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
import socket | |
minissdpdSocket = '/var/run/minissdpd.sock' # The socket for talking to minissdpd | |
# Sends a message to the given socket | |
def sendMessage(message): | |
s = socket.socket(socket.AF_UNIX) | |
s.settimeout(1) # 1 second timeout, after all it should be instant because its local | |
s.connect(minissdpdSocket) | |
s.send(message) |