Skip to content

Instantly share code, notes, and snippets.

Avatar
🌄
Trying to help the World

Lucas M. Dutra terremoth

🌄
Trying to help the World
  • Imaginum Softworks
  • Florianópolis, SC - Brazil
View GitHub Profile
@goregrish
goregrish / secure_link.md
Last active Sep 30, 2021
Nginx ngx_http_secure_link_module and PHP
View secure_link.md
@ishad0w
ishad0w / sources.list
Created Apr 30, 2020
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
View sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@Splode
Splode / Laravel-Scheduler-Windows.md
Last active Dec 1, 2021
Laravel Scheduler on Windows
View Laravel-Scheduler-Windows.md

Run Laravel Scheduled Tasks on Windows

The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.

Create a Scheduled Task

  1. Open Task Scheduler
  2. Select Create Task...
  3. Give the task a name and description
  4. To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.
@onlurking
onlurking / docker.md
Last active Nov 19, 2018
Docker Mastery Notes
View docker.md

Docker

First lecture

Verify if cli can talk to Docker engine.

docker version

View Docker engine config values.

View sudo-example.json
[
{
"id":1,
"hash":"5ba92bd1032f6721f7055e8d",
"birthdate":"1999-08-05T03:00:00.000Z",
"Wallet":[
{
"id":1,
"address":"15rKHfPAXmzKV9YnqeJUpwvtnQkFk4xN6K",
"hash":"5D68217D0C3DDFC029F1F8F2E61A80A8256342F27893FF0FE55DA861E75325D6F7C805A26CAE587F01AEE7980700E8F06422C233A0E2A8E9BF26AAD0C39E00C6",
@kphillisjr
kphillisjr / QueryDotnet.js
Created Aug 22, 2018
JSCript.NET Working Examples
View QueryDotnet.js
/*
To Compile:
PATH\\TO\\jsc.exe QueryDotnet.js
This example is based on:
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
*/
import System;
import Microsoft.Win32;
@Silva97
Silva97 / lscanf.c
Last active Nov 15, 2019
Maneira segura de pegar o input do usuário
View lscanf.c
/********************
* Developed by Luiz Felipe.
*
* GitHub: https://github.com/Silva97
* Facebook: https://www.facebook.com/B4.0E.B0.48.CD.10.B0.69.CD.10.C3
********************/
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
View 1.php
<?php
session_start();
if(!isset($_SESSION['val'])){
exec("gpio -g mode 18 pwm && gpio pwm-ms && gpio pwmc 192 && gpio pwmr 2000");
}
function inicio(){
exec('gpio -g pwm 18 240');
}
@onlurking
onlurking / book.py
Last active Mar 4, 2018
crawl elder scrolls books and save as markdown (WIP)
View book.py
from splinter import Browser
from bs4 import BeautifulSoup
import tomd
from html_sanitizer import Sanitizer
# pip install tomd splinter html-sanitizer beautifulsoup4
browser = Browser(
'chrome', user_agent="Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)")
@mvjq
mvjq / gist:74919d771e12b53e4acaabd5f06b096d
Created Nov 21, 2017
Lista de indicações para aprender Lisp e Emacs
View gist:74919d771e12b53e4acaabd5f06b096d
Lisp é uma família de linguagens, então existe vários 'dialetos', por exemplo:
- Clojure é um Lisp pra JVM (utiliza a JVM como interpretador e inclui baterias) não só na JVM, mas na CLR também (pro lado do windows)
além disso um Lisp cheio de features mais modernos, como agents, channels, actors (ele não define um modelo de concorrência, te dá
varias abstrações e você que escolhe). Compila para javascript via Clojurescript (e assim tem acesso a todo o ambiente node)
- Scheme é um dialeto de Lisp (talvez seja errado chamado de 'lisp mais puro', mas de certa forma é. É simples, pequeno e portátil)
Excelente para aprender a sintaxe e se preocupar com a lógica, o livros mais clássicos em sua maioria estão nesse dialeto.