Skip to content

Instantly share code, notes, and snippets.

View jtello's full-sized avatar

Julio Tello jtello

View GitHub Profile
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 16, 2024 18:12
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@subfuzion
subfuzion / curl.md
Last active May 16, 2024 18:04
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@zbraniecki
zbraniecki / README.md
Last active April 7, 2024 04:42
Rust <--> C/C++ FFI for newbies

As Gecko is moving toward more Rust code, the cases where Rust and C code interoperate will become more common.

This document is an attempt to ease the learning curve for engineers facing it for the first time. It assumes no prior experience with cross-language C interfaces (called FFI).

It also assumes that Rust code is already built into Gecko. If you need help with that, read Introducing Rust code in Firefox.

What can you transfer across the fence

@linux-china
linux-china / multipass_completion.fish
Last active April 20, 2023 07:48
multipass shell completion for zsh & bash
complete -c multipass -n "__fish_use_subcommand" -s h -l help -d 'Prints help information'
complete -c multipass -n "__fish_use_subcommand" -s V -l version -d 'Prints version information'
complete -c multipass -n "__fish_use_subcommand" -f -a "delete" -d 'Delete instances'
complete -c multipass -n "__fish_use_subcommand" -f -a "exec" -d 'Run a command on an instance'
complete -c multipass -n "__fish_use_subcommand" -f -a "find" -d 'Display available images to create instances from'
complete -c multipass -n "__fish_use_subcommand" -f -a "get" -d 'Get a configuration setting'
complete -c multipass -n "__fish_use_subcommand" -f -a "help" -d 'Display help about a command'
complete -c multipass -n "__fish_use_subcommand" -f -a "info" -d 'Display information about instances'
complete -c multipass -n "__fish_use_subcommand" -f -a "launch" -d 'Create and start an Ubuntu instance'
complete -c multipass -n "__fish_use_subcommand" -f -a "list" -d 'List all available instances'
@axemclion
axemclion / MessageQueueSpy.js
Last active February 8, 2023 06:25
Message Queue - Replay React Native Message Queue
import MessageQueue from 'react-native/Libraries/BatchedBridge/MessageQueue.js';
const WHITELIST = ['UIManager'];
const NOOP = () => { };
let queue = [];
let now = 0;
export default {
start() {
MessageQueue.spy(msg => {
@trolologuy
trolologuy / notify.sh
Last active April 7, 2021 02:07
Simple Telegram notifications bot using curl. Planned for use with travis to get notified on build status sending most of the required information added a login-notifier as well..
#!/bin/bash
curl -fqsSL gist.githubusercontent.com/trolologuy/c290ac3edc46fe6bc2b69ccc497cd4bc/raw/53f038f266bbbbff342c549e77c10f4fc401f2a9/telegram-notifier.sh | bash
@voidrender
voidrender / alcove-bot-after-integration.sh
Created June 3, 2015 16:34
A sample script to add to an After Integration Run Script step for an Xcode Server bot.
#!/bin/sh
report_path=$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER
# This is the path to a directory we have hosted by the web server on our Xcode Server
host_path=/Library/Server/Web/Data/Sites/Alcove
output_directory=$host_path/$report_path
# Replace both instances of YourProduct with the name of your product
# You probably don't need all of the --remove-filter options, either.
alcove --verbose --product-name YourProduct --remove-filter *Masonry*,*YourProduct.iOSTest*,*iPhoneSimulator* --output-directory $output_directory
Mac OS El Capitan 10.11.1
Server v5.0.15
Xcode 7.1
In your bot settings, go to the triggers tab and add a "Run script" After Integration:
"${XCS_SOURCE_DIR}/PROJECT_DIRECTORY_NAME/Crashlytics.framework/submit" API_KEY BUILD_SECRET
-ipaPath "${XCS_OUTPUT_DIR}/ExportedProduct/Apps/${XCS_BOT_NAME}.ipa"
-notesPath "${XCS_SOURCE_DIR}/PROJECT_DIRECTORY_NAME/PATH_RELEASE_NOTES.txt"
-groupAliases GROUP_1,GROUP_2
To run bot successfully
1. its important to install certificates on System in key chine. Instead of login
2. its important to copy provisioning profiles to xcodeServer/provisioning profiles folder. i e. cp ~/Library/MobileDevice/Provisioning\ Profiles/* /Library/Developer/XcodeServer/ProvisioningProfiles/
3. Allow all applications to access this item should be checked ,in key chine in system -> certificates ->distribution certificate
4. open ~/.profile and add export LANG=en_US.UTF-8 to file
5.
prescript:
echo "run script"
echo $LANG
@quellish
quellish / xcci.md
Created October 28, 2014 03:03
Xcode CI script variables

Variable

Type