Skip to content

Instantly share code, notes, and snippets.

View tfantas's full-sized avatar
:octocat:

Thiago tfantas

:octocat:
View GitHub Profile
{
"basics": {
"name": "Michael Kipchumba",
"label": "Front End Developer",
"email": "michaelchumba@outlook.com",
"phone": "(070) 3206 2900",
"website": "https://mikechumba.com",
"summary": "I am a passionate front-end developer with a strong focus on creating user-friendly and accessible web applications. I have experience in designing and developing responsive websites using modern technologies like React, Next.js, and Angular. I am committed to delivering high-quality code and continuously improving my skills.",
"location": {
"address": "Ōita",
@tfantas
tfantas / brew-dnsmasq.md
Created July 24, 2025 07:43 — forked from davebarnwell/brew-dnsmasq.md
install dnsmasq with brew

Install dnsmasq and configure for *.dev.local domains

$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf

Reload configuration and clear cache

# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/

$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

@tfantas
tfantas / CloudFlare-API.md
Created July 3, 2025 12:57 — forked from marcostolosa/CloudFlare-API.md
Cloudflare API - Using Cloudflare’s API, you can do just about anything you can do on cloudflare.com via the customer dashboard.

Cloudflare's API Cheat-Sheet

VARIABLE VALUE
EMAIL The email address associated with your Cloudflare account.
KEY The global API key associated with your Cloudflare account.
DOMAIN The name of the domain to create a zone record for.
JUMP_START If true, automatically attempts to fetch existing DNS records when creating a domain’s zone record
ZONE_ID The unique ID of the domain’s zone record. Assigned by Cloudflare. Required when managing an existing zone record and its DNS records.
@tfantas
tfantas / publish-ghpages.md
Created June 6, 2025 08:54 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
@tfantas
tfantas / agent loop
Created April 18, 2025 07:39 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@tfantas
tfantas / .zshrc
Created April 3, 2025 08:29 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@tfantas
tfantas / Hollywood.md
Created April 2, 2024 17:44 — forked from robzwolf/Hollywood.md
Hollywood

How to Launch Hollywood on Windows, macOS or Linux

  1. Install Docker Desktop.
  2. Open a Terminal (Windows / Mac / Linux) and maximise it to the full size of your screen.
  3. $ docker run --rm -it bcbcarl/hollywood
  4. To exit: Try mashing Ctrl-D and Ctrl-C. If you get to a terminal you can type exit to close the container.

    If this fails, just quit your terminal. 😁

Just run:

curl https://gist.githubusercontent.com/tcoupin/af82bbbf5de516d186c1f2170ae5d0c4/raw/setup.sh | bash

Notes:

  • on close, the container is not close.
  • default email : admin@admin.admin, default password admin
  • a volume named "pgadmin" is create to store config
@tfantas
tfantas / groovySql.groovy
Created November 2, 2021 17:50 — forked from saltnlight5/groovySql.groovy
Groovy Script Examples
// groovy -cp $HOME/.m2/repository/com/h2database/h2/1.3.166/h2-1.3.166.jar groovySql
// http://groovy.codehaus.org/Tutorial+6+-+Groovy+SQL
// Grab will not load the driver! but at least we can trigger it to download it and then use groovy -cp option to run this script.
// @Grab('com.h2database:h2:1.3.166')
import groovy.sql.Sql
sql = Sql.newInstance(
'jdbc:h2:~/test',