Skip to content

Instantly share code, notes, and snippets.

View rcerrejon's full-sized avatar

Rafael Cerrejon rcerrejon

View GitHub Profile
@rcerrejon
rcerrejon / install.bat
Created April 18, 2024 08:18
install a batch of apks (Windows Terminal)
for %e in (*.apk) do adb install "%e"
@rcerrejon
rcerrejon / signos.sh
Created June 6, 2023 09:07
Signos de puntuación en alemán
Punto "." (Punkt)
Dos puntos ":" (Doppelpunkt)
Coma "," (Komma)
Punto y coma ";" (Semikolon)
Signo de admiración "!" (Ausrufezeichen)
Signo de interrogación "?" (Fragezeichen)
Comillas " "" " (Anführungszeichen)
Guion "-" (Bindestrich)
Barra Baja "_" (Unterstrich)
Paréntesis "()" (Runde Klammern)
@rcerrejon
rcerrejon / diff.sh
Created October 19, 2022 08:00
Output in a file all changed files from a pull request
git archive -o fileschanged.zip HEAD $(git diff --name-only --diff-filter=d xxx)
# it excludes deleted files
# xxx = Branch name
@rcerrejon
rcerrejon / shutdown.sh
Last active August 17, 2022 12:35
Shutdown Windows OS given time
# Example
# 10 minutes (time in seconds)
shutdown -s -t 600
@rcerrejon
rcerrejon / nvidia.me
Created February 19, 2022 19:52
3440x1440 for 32:9 Monitors
- Open regedit
- search for nv_modes
- add this
3440x1440x8,16,32,64=1FFF;
to the end (not as a new line, right after the last ; ), save and reboot.
This will add 3440*1440 at 120Hz in games even if your monitor is set to 240Hz
This needs to be done after every driver install/updates.
@rcerrejon
rcerrejon / compress.bat
Last active October 11, 2023 08:16
Batch Compress folders with 7zip in Windows
@ECHO OFF
FOR %%i IN (*.*) DO (
ECHO "%%i" | FIND /I "zip.bat" 1>NUL) || (
"c:\Program Files\7-Zip\7z.exe" a -tzip "%%~ni.zip" "%%i"
if %ERRORLEVEL% == 0 del "%%i"
)
)
@rcerrejon
rcerrejon / gist:07801a67c6ffa86f9a1da8f87d184fb5
Created January 7, 2021 10:02
Custom React Native google search for chrome://settings/searchEngines
http://www.google.com/search?q=react native %s
@rcerrejon
rcerrejon / consolelog.code-snippets
Last active November 5, 2020 09:05
console log snippet for javascript and typescript (alt ver.)
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Print to console with string": {
"scope": "javascript,typescript,typescriptreact",
@rcerrejon
rcerrejon / style.js
Created February 7, 2020 15:48
Flexbox Vertical Align Center
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},