sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
#ifndef __RE_REPLACE__ | |
#define __RE_REPLACE__ | |
#include <string.h> | |
#include <regex.h> | |
#ifdef __cplusplus | |
extern "C" { | |
#endif |
from urllib import quote | |
class SSLRedirect(object): | |
def __init__(self,app): | |
self.app=app | |
def __call__(self,environ,start_response): | |
proto = environ.get('HTTP_X_FORWARDED_PROTO') or environ.get('wsgi.url_scheme', 'http') | |
if proto=='https': |
def inf(i=0, step=1): | |
#un generador de iteradores infinitos, como el xrange, pero infinito | |
while True: | |
yield i | |
i+=step | |
for i in inf(): | |
print i |
#include <stdio.h> | |
#include <string.h> | |
#include <regex.h> | |
#define TEST_REGEX "^.*\\/([a-zA-Z_.]*)\\.log : [A-Z]{3} [0-9]{2}\\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6} .* : (.*)$" | |
#define MAX_REGEX_MATCHES 5 | |
#define MAX_STRING_SIZE 1000 | |
#define MAX_ERR_LENGTH 50 | |
/** |
if [ "$(basename $0)" = "install-odoo.sh" ]; then | |
echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually" | |
exit 0 | |
fi | |
#### Detect type of system manager | |
export SYSTEM='' | |
pidof systemd && export SYSTEM='systemd' |
// As seen on http://www.di.uniba.it/~reti/LabProRete/Interazione(TCP)Client-Server_Portabile.pdf | |
#if defined WIN32 | |
#include <winsock.h> | |
#else | |
#define closesocket close | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
#endif | |
#include <stdio.h> |
sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
#!/usr/bin/env bash | |
SCHEMA=public | |
DB=certwatch | |
HOST=crt.sh | |
PORT=5432 | |
USER='guest --no-password' | |
DIR=$(pwd) | |
mkdir -p $DIR |
#!/usr/bin/env bash | |
if [ -z $(which retire) ]; then | |
echo "retire not found. try npm install -g retire" | |
exit 1 | |
fi | |
if [ -z $(which parallel) ]; then | |
echo "parallel not found. try 'apt install -y parallel'" | |
exit 1 | |
fi |