Skip to content

Instantly share code, notes, and snippets.

View dannluciano's full-sized avatar
🏠
Working from home

Dann Luciano dannluciano

🏠
Working from home
View GitHub Profile
@dannluciano
dannluciano / LetsDestroyC.md
Created February 5, 2020 00:30 — forked from shakna-israel/LetsDestroyC.md
Let's Destroy C

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?


qrencode -o wifi.png "WIFI:T:WPA;S:<SSID>;P:<PASSWORD>;;"
import java.util.Scanner;
/**
* HanoiGame
*/
public class HanoiGame {
static String[] discos = { " | ", " <=> ", " <===> ", "<=====>" };
static int[] coluna1 = { 1, 2, 3 };
static int[] coluna2 = { 0, 0, 0 };
@dannluciano
dannluciano / .zshrc
Created November 19, 2019 00:01
ZSH on WSL
fpath+=("$HOME/.zsh/pure")
autoload -U promptinit; promptinit
prompt pure
if [ -z $TMUX ]; then
eval $(ssh-agent -s)
ssh-add ~/dokku.ssh.priv_key
service postgresql start
service redis-server start

User authentication system

Your task is now to create a user authentication system.

This document will guide you through all the features and implication of such system, so that you don't have to search them yourself.

We will focus on web/browser-technologies, however similar concept can be widely applied. This guide, is a work in progress, feel free to comment and provide feedbacks.

Expected Workflows

@dannluciano
dannluciano / .gitconfig
Last active December 29, 2024 15:47
Core Shell Configs
[user]
email = [email protected]
name = Dann Luciano
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[alias]
st = status -sb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
@dannluciano
dannluciano / tmux-cheatsheet.markdown
Last active February 19, 2019 21:15 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

-t -- /bin/sh -c 'tmux has-session && exec tmux attach || exec tmux'

start new:

tmux
@dannluciano
dannluciano / vpn.md
Created March 2, 2018 02:25 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

const fs = require('fs')
const document = {
write: function (msg) {
console.log(msg)
}
}
function alert (msg) {
console.log(msg)