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 | |
# Builds and installs Electricsheep screensaver on Ubuntu 22.10. | |
# Needs sudo for "apt install" and "make install" commands. | |
# Operates in /tmp and downloads stuff from internet (~ 100MB). | |
# Tested on Ubuntu 22.10 minimal install with 3rd party packages enabled. | |
# Inspired by https://gist.github.com/adrianwebb/f6a1c3a0393e5482a0add00b63ac49cf gist. | |
# Any subsequent(*) commands which fail will cause the shell script to exit immediately. | |
set -e |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include <xcb/xcb.h> | |
int main () { | |
/* Open the connection to the X server */ |
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
# Based on oh-my-zsh gnzh theme | |
setopt prompt_subst | |
() { | |
local PR_USER PR_USER_OP PR_PROMPT PR_HOST | |
# Check the UID | |
if [[ $UID -ne 0 ]]; then # normal user |
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
<?php | |
/** | |
* Zend_Http_Client extended for a function to sign a request for AmazonSES with signature version 4. | |
* | |
* @author jEzEk - 20210222 | |
*/ | |
class Zend_Http_Client_AmazonSES_SV4 extends Zend_Http_Client { | |
const HASH_ALGORITHM = 'sha256'; |
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: | |
g++ main.cpp -o productWithItself |