Skip to content

Instantly share code, notes, and snippets.

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

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 February 26, 2018 19:36
adding [TORIFIED] to "torsocks --shell" prompt
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}