Skip to content

Instantly share code, notes, and snippets.

View amineAUPEC's full-sized avatar
🎯
Focusing

amineAUPEC

🎯
Focusing
View GitHub Profile
@dnburgess
dnburgess / gist:99e1b13ce5de2a39f8083ae3e7968cc0
Created October 20, 2021 17:39
KasmWeb Docker-Compose.yml Container Template
version: '3.3'
services:
firefox:
ports:
- '6911:6901' #change 6901 as necessary. eg. '6901:6901', '6902:6901', '6903:6901'
environment:
- VNC_PW=password #change as desired
shm_size: '512m' #change per your needs. eg. '512m', '1gb', '2gb'
image: 'kasmweb/firefox:1.9.0' #change the image to your desired image
@taniki
taniki / 0 - README.md
Last active January 28, 2022 12:49
Obtenir un fichier csv de la base FINESS de meilleur qualitée
@trietptm
trietptm / xiaomi-locked-bootloader.md
Created January 10, 2017 06:30 — forked from anonymous/xiaomi-locked-bootloader.md
Xiaomi's locked bootloader is insecure and useless

Xiaomi's locked bootloader is insecure and useless

Your phone should have a locked bootloader, as it ensures the integrity of the software running on the device. This is especially relevant for Xiaomi phones, which are often loaded with all sorts of crapware by shady merchants. These vendor ROM's are a serious security risk. You really don't want to run that shit, so do your research very carefully when importing a Xiaomi device to ensure it hasn't been tampered with.

So, Xiaomi makes these nice phones and those vendors just ruin it all. They do the logical thing and start locking devices. But even today, vendor ROM's are still a thing! Even the brand new edgeless Mi Mix isn't safe.

How is this possible?

Through a wide open back door called EDL mode. To flash anything you want, all you need is a "deep flash cable" from [Aliexpress](https://www.aliexpress.com/wholesale?catId=0&SearchText=xiaomi+deep+fl

@ssokolow
ssokolow / x11_watch_active_window.py
Last active September 4, 2024 21:19
python-xlib example which reacts to changing the active window
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
Requires:
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.
@Jwely
Jwely / download_ftp_tree.py
Last active March 4, 2024 11:39
recursive ftp directory downloader with python
import ftplib
import os
import re
"""
MIT license: 2017 - Jwely
Example usage:
``` python
import ftplib
@yesvods
yesvods / save.js
Created January 22, 2016 03:41
Save variable string to file in browser
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
@iann0036
iann0036 / auto.py
Last active February 2, 2024 04:06
Python Input Record and Play
import pyautogui, time, sys, os, win32api, win32gui, win32con, datetime, pyHook, pythoncom
from optparse import OptionParser
'''
Python Automated Actions Script by Ian Mckay
Version 0.1 - 20151217
'''
pyautogui.PAUSE = 0
pyautogui.FAILSAFE = True
@19WAS85
19WAS85 / powershell-web-server.ps1
Last active September 7, 2024 15:00
A simple web server built with powershell.
# This is a super **SIMPLE** example of how to create a very basic powershell webserver
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity.
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
# Start the Http Server
@henrik242
henrik242 / DisableCertificateValidation.java
Created December 22, 2011 12:37
Disable validation of SSL certificates in Java
public static void disableCertificateValidation() {
// Create a trust manager that does not validate certificate chains
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
}
public void checkClientTrusted(X509Certificate[] certs, String authType) {}
public void checkServerTrusted(X509Certificate[] certs, String authType) {}
}};
@eculver
eculver / Auto-refresh bookmarklet
Created January 2, 2010 01:02
Auto-refresh bookmarklet
// origin: http://www.google.com/support/forum/p/Chrome/thread?tid=1a37ccbdde5902fd&hl=en
javascript:
timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){