Skip to content

Instantly share code, notes, and snippets.

View RenanMsV's full-sized avatar
🎯
Focusing

Renan RenanMsV

🎯
Focusing
View GitHub Profile
@RenanMsV
RenanMsV / ifrs_moodle_darkmode_css.md
Last active January 5, 2026 23:28
IFRS Moodle dark mode theme CSS

IFRS Moodle dark mode theme CSS

Custom CSS for enabling dark mode across most pages of the IFRS Moodle platform.

Chrome extension to load a custom CSS: Custom CSS by Denis.

Alternatively, you can enable the following flag on Chromium-based browsers: chrome://flags/#enable-force-dark
#region-main {
@RenanMsV
RenanMsV / ubuntu-autoinstall
Last active October 18, 2025 04:15
ubuntu test autoinstall. Pswrd 123. Short url: https://shorturl.at/W8byb
#cloud-config
autoinstall:
version: 1
identity:
realname: 'Test'
hostname: ubuntu-desktop
username: test
password: '$y$j9T$uhkxlm8nUQaNu.6rl4k2d.$DIldpYy96OHg8lFjfXfc671BZcGWkPOmaDONGAhGSg3'
locale: en_US.utf8
keyboard:
@RenanMsV
RenanMsV / Yt2Mp4.php
Created April 7, 2019 15:50
PHP - Youtube Mp4 Downloader
<?php
function YT_IN_DX($url){
$cookie_file_path = "cookies.txt";
$agent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/46.0";
$ch = curl_init();
$headers[] = "Connection: Keep-Alive";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
@RenanMsV
RenanMsV / get_goo_gl_analytics.py
Created March 24, 2019 21:54
Get goo.gl analytics for all your shortened urls as JSON. Wont work after Mar 30 2019 as Google will shutdown goo.gl
'''
How to:
This wont work after Mar 30. 2019 as Google will shutdown goo.gl
Download your list of shortened urls here https://goo.gl/# click on Download CSV
Save/Rename this file as file.csv.
Then put this script in the same folder as the file.csv.
Then change your API_KEY in this script. You can get your key at https://developers.google.com/url-shortener/v1/getting_started