Skip to content

Instantly share code, notes, and snippets.

@lopoc
lopoc / kinky_fib.c
Created Dec 9, 2021
a kinky Fibonacci series n-th term calculator
View kinky_fib.c
/*
* Author: lopoc
* Purpose: for fun.
* Language: C
*/
#include <stdlib.h>
int main(int n, char * m[]) {
View keybase.md

Keybase proof

I hereby claim:

  • I am lopoc on github.
  • I am lopoc (https://keybase.io/lopoc) on keybase.
  • I have a public key ASDw72O9qaVImBMpnFNRVb7zq-rwCPIxtBqw8Pc0OhwnyQo

To claim this, I am signing this object:

@lopoc
lopoc / patch.diff
Last active Feb 26, 2018
adding [TORIFIED] to "torsocks --shell" prompt
View patch.diff
diff --git a/src/bin/torsocks.in b/src/bin/torsocks.in
index fe8b67a..51c4573 100644
--- a/src/bin/torsocks.in
+++ b/src/bin/torsocks.in
@@ -125,7 +125,7 @@ tor_shell ()
{
set_ld_preload
echo "$0: New torified shell coming right up..."
- ${SHELL:-/bin/sh}
+ PROMPT_COMMAND='PS1="\033[1m[TORIFIED] - $PS1"; unset PROMPT_COMMAND' ${SHELL:-/bin/sh}