Skip to content

Instantly share code, notes, and snippets.

View thembones79's full-sized avatar
🤠

Michał Szumnarski thembones79

🤠
  • Bank Millennium
  • Gdansk
View GitHub Profile
@thembones79
thembones79 / byo-tuf.go
Created July 8, 2024 08:51 — forked from asraa/byo-tuf.go
setup-tuf.go
package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"os"
"path/filepath"
"strings"
@thembones79
thembones79 / Dockerfile
Created January 20, 2024 11:01 — forked from adtac/Dockerfile
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3

FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

@thembones79
thembones79 / gruvbox_dark.json
Created April 24, 2022 17:43 — forked from davialexandre/gruvbox_dark.json
Gruvbox Dark color scheme for the new Windows Terminal
{
"background" : "#282828",
"black" : "#282828",
"blue" : "#458588",
"brightBlack" : "#928374",
"brightBlue" : "#83A598",
"brightCyan" : "#8EC07C",
"brightGreen" : "#B8BB26",
"brightPurple" : "#D3869B",
"brightRed" : "#FB4934",
@thembones79
thembones79 / .bashrc
Created May 8, 2021 10:58
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@thembones79
thembones79 / project-ideas01.md
Created February 29, 2020 13:13 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@thembones79
thembones79 / README.md
Created October 13, 2019 06:43 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@thembones79
thembones79 / server.js
Created May 27, 2019 20:22 — forked from JosephLivengood/server.js
FCC Advanced Node and Express Socket.IO Checkpoint 2 (Server)
'use strict';
const express = require('express');
const session = require('express-session');
const bodyParser = require('body-parser');
const fccTesting = require('./freeCodeCamp/fcctesting.js');
const auth = require('./app/auth.js');
const routes = require('./app/routes.js');
const mongo = require('mongodb').MongoClient;
const cookieParser= require('cookie-parser')
@thembones79
thembones79 / client.js
Created May 27, 2019 20:22 — forked from JosephLivengood/client.js
FCC Advanced Node and Express Socket.IO Checkpoint 2 (Client)
$( document ).ready(function() {
/*global io*/
var socket = io();
$('form').submit(function(){
var messageToSend = $('#m').val();
socket.emit('chat message', messageToSend);
$('#m').val('');
return false; // prevent form submit from refreshing page