Skip to content

Instantly share code, notes, and snippets.

View BluePhoenix's full-sized avatar

Felix Barros BluePhoenix

  • Suffield, CT, United States
View GitHub Profile
@davidteren
davidteren / nerd_fonts.md
Last active April 17, 2024 15:42
Install Nerd Fonts via Homebrew [updated & fixed]
@chris1111
chris1111 / TirmEnabler Catalina.command
Created July 20, 2019 01:53
Enable or Disable the Trim in macOS Catalina 10.15
#!/bin/bash
# Simple script by chris1111
# Vars
apptitle="Trim Enabler Catalina"
version="1.0"
# Set Icon directory and file
iconfile="/System/Library/CoreServices/Expansion Slot Utility.app/Contents/Resources/AppIcon.icns"
# Select Trim Choice
@kekru
kekru / Docker connect to remote server.md
Last active April 15, 2024 16:26
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.

@ipbastola
ipbastola / jq to filter by value.md
Last active April 12, 2024 05:36
JQ to filter JSON by value

JQ to filter JSON by value

Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'

Example: To get json record having _id equal 611

cat my.json | jq -c '.[] | select( ._id | contains(611))'

Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)

@jackd942
jackd942 / DATextField.swift
Last active November 20, 2017 12:45
Custom IBDesignable and IBInspectable UITextField created for use in the Devslopes App
//
// DATextField.swift
// devslopes-app
//
// Created by Jack Davis on 2/26/16.
// Copyright © 2016 Devslopes. All rights reserved.
//
import UIKit
@jackd942
jackd942 / DAPolyButton.swift
Created February 27, 2016 20:41
Custom IBDesignable and IBInspectable Polygon UIButton created for use in the Devslopes App
//
// DAPolyButton.swift
//
// Created by Jack Davis on 2/21/16.
// Copyright © 2016 Nine-42 LLC. All rights reserved.
//
import UIKit
@IBDesignable
@jackd942
jackd942 / DAButton.swift
Created February 27, 2016 20:39
Custom IBDesignable and IBInspectable UIButton created for use in the Devslopes App
//
// DAButton.swift
//
// Created by Jack Davis on 2/20/16.
// Copyright © 2016 Nine-42 LLC. All rights reserved.
//
// Custom UIButton class designed for Devslopes App.
//
//
@patik
patik / how-to-squash-commits-in-git.md
Last active October 17, 2023 02:19
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@samrocketman
samrocketman / jenkins_home_gitignore.md
Last active April 19, 2019 17:29
Use JENKINS_HOME as a git repository with the following .gitignore file.

I initialze $JENKINS_HOME as a git repository with the following .gitignore file.

#global types to ignore
*.swp

#Only get job configs and ignore other data
!jobs/*
jobs/*/*
!jobs/*/config.xml
@mischah
mischah / z.md
Last active December 9, 2022 02:11
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this: