Skip to content

Instantly share code, notes, and snippets.

View ccjmne's full-sized avatar
⚗️
Experimenting

Eric NICOLAS ccjmne

⚗️
Experimenting
View GitHub Profile
@ccjmne
ccjmne / secure-chat.txt
Last active June 17, 2024 22:26
secure-chat
1. Create a user for your friend
sudo mkdir -p /home/your-friend
sudo touch /home/your-friend/log
sudo tee /home/your-friend/chat > /dev/null <<-'EOF'
trap exit SIGINT
tail -f /home/your-friend/log &
while IFS=$'\n' read -r line; do
[[ -n "$line" ]] && echo "$USER: $line" >> /home/your-friend/log
done
@ccjmne
ccjmne / the-joke
Last active March 14, 2024 23:47
Double factorial joke
Recipe:
=======
let x be a positive integer
let a be: 2x!! - 2x
let b be: 2x!! - 4x
For a most tasteful joke, let x be 5, 6, or 7.
Contemplate the reality that the following two statements are true:
@ccjmne
ccjmne / README.md
Last active February 9, 2022 15:08

Create a Personal Access Token

  1. Navigate to your Personal Access Tokens
  2. Create a new Access Token with the following authorisations:
    • read:packages
    • write:packages
    • delete:packages
$ echo "aiwi8esgykxcu1t686p_7ea_l6abwc76vue0kecq" | docker login ghcr.io -u ccjmne --password-stdin
@ccjmne
ccjmne / HOWTO.md
Last active November 12, 2021 17:36
Use TypeScript for your webpack config

1. Create a secondary TypeScript config for webpack only

Simply create a new tsconfig-webpack.json file with the following contents:

{
  "compilerOptions": {
    "module": "commonjs",
    "resolveJsonModule": true,
 "target": "es6",
@vijayparashar12
vijayparashar12 / PostgresJSONBBinding.java
Created March 11, 2019 15:18
Supporting PostgreSQL JSON types in jOOQ using Jackson
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import org.jooq.*;
import org.jooq.impl.DSL;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
@staltz
staltz / introrx.md
Last active June 26, 2024 10:24
The introduction to Reactive Programming you've been missing