Skip to content

Instantly share code, notes, and snippets.

View achilleas-k's full-sized avatar
🕹️

Achilleas Koutsou achilleas-k

🕹️
View GitHub Profile

The first one just shows cloning, adding a file and then pushing the commits:

unicode: https://ptpb.pw/t/1kkA

no-unicode: https://ptpb.pw/t/gkoq

The next video is how to use rebase when the code on the server is ahead of the local and you have commits you want to push. Unlike merge it helps to preserve commit history.

unicode: https://ptpb.pw/t/pKxl

@meskarune
meskarune / vimrc
Last active November 3, 2023 07:58
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@meskarune
meskarune / .tmux_theme
Last active April 10, 2021 21:35
simple tmux theme
set -g pane-active-border-bg default
set -g pane-active-border-fg "colour14"
set -g pane-border-fg "colour239"
set -g message-fg black
set -g message-bg "colour14"
set -g status-justify left
set -g status-bg "colour236"
set -g status-fg "colour14"
@meskarune
meskarune / weechat relay
Created September 14, 2015 18:05
weechat relay with ssl
mkdir ~/.weechat/ssl-cert
cd ~/.weechat/ssl-cert
openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -out relay.pem
In weechat:
/set relay.network.ssl_cert_key "/home/username/.weechat/ssl-cert/relay.pem"
/relay add ssl.weechat 9001
@Earnestly
Earnestly / makepkg_overview.rst
Last active March 22, 2024 03:48
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@GermainZ
GermainZ / clbin
Last active March 27, 2022 04:30
Upload text/images to clbin.com from the command line
#!/usr/bin/env bash
# Upload text/images to clbin.com from the command line
# License: ISC http://www.isc.org/downloads/software-support-policy/isc-license/
clip() {
if command -v xclip &> /dev/null; then
xclip -selection clip <<< "$@"
elif command -v xsel &> /dev/null; then
xsel -b -i <<< "$@"
fi
@habnabit
habnabit / chatserver.py
Created September 29, 2012 20:10
one expression chatserver
main = lambda port: (lambda dt: (lambda mm: (lambda n: (map(lambda r: (lambda
rr: setattr(n, *rr) if (type(rr) is tuple and len(rr) == 2) else None)(r()),
[lambda: map(setattr, *zip(*[(n, m, __import__(m)) for m in mm.m.decode('ba'
'se64').split()])), lambda: map(n.s['signal.signal'], (n.s['signal.SIGINT'],
n.s['signal.SIGTERM']), [lambda s, f: (n.s['sys.exit']() if n.f else [n.sa(
mm.l[0], n.o)] and n.u('f', True) or n.fc(n.l))] * 2), lambda: setattr(mm,
'l', mm.l.decode('base64').split('~~~')), lambda: ('sw', n.s['types.Functio'
'nType'] (compile("try:\n\tv = n.select.select(n.so, n.w(), [])\nexcept n.s"
"elect.error, e:\n\tif e[0] != n.errno.EINTR: raise\nelse:\n\tn.u('sr', v)",
'', 'exec'), dict(n=n, OSError=OSError))),lambda: ('l', n.s['socket.socket']