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 Jul 5, 2022
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
@frauzufall
frauzufall / ImageJ command line execution
Last active Jun 11, 2022
ImageJ command line execution
View ImageJ command line execution
https://imagej.net/Scripting_Headless
Start a SciJava command from command line:
./ImageJ-linux64 --run org.scijava.plugins.commands.debug.DumpStack
.. headless:
./ImageJ-linux64 --headless --run org.scijava.plugins.commands.debug.DumpStack
Calling a script from command line:
./ImageJ-linux64 --ij2 --headless --console --run hello.py 'name1="Mr",name2="Mrs Kraken"'
View mandel.py
from PIL import Image
import colorsys
import math
import os
#frame parameters
width = 1000 #pixels
x = -0.65
y = 0
xRange = 3.4
@Splode
Splode / Laravel-Scheduler-Windows.md
Last active Sep 22, 2022
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>