Skip to content

Instantly share code, notes, and snippets.

View andrelramos's full-sized avatar
🎯
Focusing

André Ramos andrelramos

🎯
Focusing
View GitHub Profile
@dasniko
dasniko / upgrade_keycloak_database_settings.md
Created May 10, 2023 05:06
Upgrade Keycloak Database #settings

Because of Arjuna timeout / closing the connection after 5 mins, setting following additional JAVA_OPTS might help:

-Dquarkus.transaction-manager.default-transaction-timeout=3600
-Dkeycloak.migration.batch-enabled=true
-Dkeycloak.migration.batch-size=1000
@akash-gajjar
akash-gajjar / tldv.py
Last active May 13, 2025 21:10
Download videos from TLDV.io
from datetime import datetime
from os import system
import requests
import json
## Please install ffmpeg before running this script and make sure it's in your PATH
## brew install ffmpeg
## Please install requests before running this script
## pip3 install requests
@sundowndev
sundowndev / GoogleDorking.md
Last active May 13, 2025 20:43
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@DazWilkin
DazWilkin / main.dart
Last active March 4, 2021 09:36
Stackoverflow #55493003
import 'package:speech/speech.dart' as speech;
import 'package:googleapis/speech/v1.dart';
import 'package:googleapis_auth/auth_io.dart';
final _credentials = new ServiceAccountCredentials.fromJson(r'''
{
"type": "service_account",
"project_id": "",
"private_key_id": "",
"private_key": "",
@ljmf00
ljmf00 / gist:6035e02073e0ce9250fe2be1cbff40d9
Last active August 24, 2023 06:55
Public Trackers for Torrent
udp://tracker.leechers-paradise.org:6969/announce
udp://tracker.torrent.eu.org:451/announce
udp://public.popcorn-tracker.org:6969/announce
udp://tracker.open-internet.nl:6969/announce
udp://ipv6.open-internet.nl:6969/announce
@DownGoat
DownGoat / pyvbox-import-error.md
Last active December 8, 2019 02:06
pyvbox - virtualbox api. ImportError: No module named xpcom.vboxxpcom

Missing module xpcom fix,

Traceback (most recent call last):
  File "vmc.py", line 24, in <module>
    vbox = virtualbox.VirtualBox()
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.3.2-py2.7.egg/virtualbox/library_ext/vbox.py", line 22, in __init__
    manager = virtualbox.Manager()
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.3.2-py2.7.egg/virtualbox/__init__.py", line 143, in __init__
    self.manager = vboxapi.VirtualBoxManager(mtype, mparams)
 File "/usr/local/lib/python2.7/dist-packages/vboxapi/__init__.py", line 989, in __init__
@thomasdarimont
thomasdarimont / app.py
Last active May 6, 2025 12:41
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@yxy
yxy / two-railway-programing-in-python.py
Last active September 16, 2021 17:03
Railway Oriented Programming in python. inspired by https://fsharpforfunandprofit.com/rop/
class Success(object):
def __init__(self, value):
self.value = value
class Error(object):
def __init__(self, value):
self.value = value
class wrapper(object):
def __init__(self, result):
@mihow
mihow / load_dotenv.sh
Last active April 25, 2025 17:10
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@maheshmurthy
maheshmurthy / Voting.sol
Last active June 6, 2023 21:20
Simple solidity contract to vote for a candidate and see the results
pragma solidity ^0.6.4;
// We have to specify what version of compiler this code will compile with
contract Voting {
/* mapping field below is equivalent to an associative array or hash.
The key of the mapping is candidate name stored as type bytes32 and value is
an unsigned integer to store the vote count
*/
mapping (bytes32 => uint256) public votesReceived;