Skip to content

Instantly share code, notes, and snippets.

View arnoclr's full-sized avatar
🚂
Focusing

Arno Cellarier arnoclr

🚂
Focusing
  • Marne la Vallée, Île de France
  • 06:30 (UTC +02:00)
View GitHub Profile
@arnoclr
arnoclr / main.s
Created January 9, 2024 15:06
Evalbot périmétrique
; Eval BOT
; Programme de suivi des murs d'une pièce
AREA |.text|, CODE, READONLY
; This register controls the clock gating logic in normal Run mode
SYSCTL_PERIPH_GPIOF EQU 0x400FE108 ;; SYSCTL_RCGC2_R (p291 datasheet de lm3s9b92.pdf)
; Configure the corresponding pin to be an output
; All GPIO pins are inputs by default
@arnoclr
arnoclr / browser.js
Created May 18, 2022 12:58
Get browser name based on user agent JS (cloudflare workers)
const agent = request.headers.get('User-Agent') || ''
const browser =
agent.includes('Firefox/') ? 'firefox'
: agent.includes('Edg/') ? 'edge'
: agent.includes('Vivaldi/') ? 'vivaldi'
: agent.includes('Brave') ? 'brave'
: agent.includes('Chrome/') ? 'chrome'
: agent.includes('Safari/') ? 'safari'
: agent.includes('OPR/') ? 'opera'
: 'other';
@arnoclr
arnoclr / commands.sh
Last active January 25, 2022 14:01
PostegreSQL login Univ Gustave Eiffel
ssh username@linuxpedago.u-pem.fr
psql -h sqletud.u-pem.fr username_db
pg_dump -h sqletud.u-pem.fr login_db > backup.sql
@arnoclr
arnoclr / README.md
Last active November 22, 2021 13:59
Linux VSCode installer

VSCode installer

install and auto update vscode for non root linux users

@arnoclr
arnoclr / index.js
Last active February 2, 2022 03:41
Instagram JS images scraper by tag
const IMAGES_NUM = 250
let imgSrcs = new Set()
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function appendImages() {
var imgs = document.getElementsByTagName("img")
@arnoclr
arnoclr / README.md
Created March 16, 2021 17:45
PHP Standalone login page without password

Standalone login page

  • Login with email link that contain token
  • Receive 6 digits code by email

screenshot

@arnoclr
arnoclr / theme.css
Last active January 28, 2021 12:21
New Material Design theme for Materializecss
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Material+Icons&display=swap');
/* Colors */
:root {
--bg-color: #fff;
--accent: #f44336 ;
--colored: #673ab7;
--error: #f44336;
--trans: rgba(103, 58, 183, 0.2);
}