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
####################################### | |
# Copy a file to a crypted version. | |
# Globals: | |
# CRPT_PASSWORD | |
# Arguments: | |
# Decrypt file ? (optional). | |
# Remove file ? (optional). | |
# Given source file. | |
# Given destination file. | |
# Returns: |
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 | |
if (( $# < 4 )); then | |
echo 'Missing arguments' >&2 | |
exit 1 | |
fi | |
UTC="$(date -R --utc)" | |
http -d "$1/$2" \ |
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 | |
JIRA_USER='[email protected]:TOKEN' | |
JIRA_PROJECT=PROJET_NAME | |
JIRA_ISSUETYPE=XXXX | |
if (( $# < 1 )); then | |
echo 'Missing arguments' >&2 | |
exit 1 | |
fi |
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 server | |
import ( | |
"context" | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"html/template" | |
"io/fs" | |
"log" |
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
BINARY ?= tmp | |
VERSION := 0.0.1 | |
PACKAGE := github.com/Lajule/tmp | |
include go.mk |
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
# -*- mode: sh; tab-width: 2; -*- | |
# One letter aliases. | |
alias c='clear' | |
alias e='emacs -nw' | |
alias h='history' | |
alias j='jobs' | |
alias k='kill' | |
alias m='make -k' | |
alias q='exit' |
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
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F |
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 | |
set -ex | |
cwd="${PWD}" | |
for goos in darwin linux windows; do | |
for goarch in 386 amd64; do | |
(cd "${0%/*}" \ | |
&& GOOS="${goos}" GOARCH="${goarch} go build -o "${cwd}/${1}_${goos}_${goarch}") || exit $? |
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 --- Summary | |
;;; Commentary: | |
;;; Code: | |
(defvar gnutls-algorithm-priority) | |
(setq inhibit-splash-screen t | |
visible-bell nil | |
ring-bell-function 'ignore | |
gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") |
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
filetype on | |
syntax on | |
set background=dark | |
set linebreak | |
set visualbell | |
set showmatch | |
set hlsearch | |
set autoindent | |
set expandtab | |
set shiftwidth=2 |
NewerOlder