Skip to content

Instantly share code, notes, and snippets.

View matiasiglesias's full-sized avatar

Matias Iglesias matiasiglesias

View GitHub Profile
@Pingu501
Pingu501 / gitlab-artifacts-cleanup.py
Created December 9, 2021 11:22
GitLab Artifacts Clean-Up
"""
This is a small python script to clear up old gitlab build artifacts.
There are 3 variables you should modify:
* base_url: path to your gitlab
* access_token: your personal access token to make gitlab api calls
* delete_everything_older_than: configure the timedelta as you wish
!!IMPORTANT!!
By default this script does only make dry-runs and does not actually delete any files!
# Setup JHipster to use the latest LTS version of NodeJS
nvm use --lts && node -v > .nvmrc
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc)
# Setup JHipster to use your local version of yarn for prod builds
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)"
# Or Setup JHipster to use your local version of npm for prod builds
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)"
@rafaotetra
rafaotetra / LC_CTYPE.txt
Created January 8, 2018 11:54 — forked from thanksdanny/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@agrcrobles
agrcrobles / android_instructions_29.md
Last active June 2, 2024 05:54 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

@jckeen
jckeen / angular2codestyle.xml
Last active July 7, 2023 05:29
Angular 2 TypeScript Code Style For WebStorm
<!--
These are code style settings, based off the Style Guide for Angular 2:
https://angular.io/docs/ts/latest/guide/style-guide.html
WebStorm does not currently reformat code based off of tslint.json settings.
This is an attempt to set TypeScript settings for Code Style to follow the Style Guide.
I will update this as I find differences.
To Import: Settings > Editor > Code Style > Import
-->
<code_scheme name="Angular 2">
<TypeScriptCodeStyleSettings>
@LeandroLuque
LeandroLuque / completa_encuestas_unp.js
Created July 1, 2016 18:46
Completa encuestas unpsjb facultad de ingenieria
/* DISCLAIMER:
It doesn't complete all select fields, just the ones where the options are:
"Malo" .. "Muy bueno y satisfatorio"
The final value for all the options is set to: "Muy bueno y satisfatorio"
Target: http://www.ing.unp.edu.ar/encuestas/
Authors: Luque Leandro, Pazos Bruno.
*/
var selects = document.querySelectorAll('select[name^=preg]');
for (var i = 0; i < selects.length; i++){
@btroncone
btroncone / ngrxintro.md
Last active June 26, 2024 08:27
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@pirafrank
pirafrank / uninstall_office_2016.sh
Last active March 21, 2024 14:12
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@juliangorge
juliangorge / Controller.php
Created March 16, 2015 23:13
ZF2 & DoctrineModule: Submitting a form with AJAX.
<?php
public function createAction()
{
$objectManager = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');
$form = new \Admin\Form\RegisterForm($objectManager);
$register = new \Admin\Entity\Register();
$form->bind($register);
$viewmodel = new ViewModel();
$viewmodel->setTerminal($this->getRequest()->isXmlHttpRequest());
@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)