Skip to content

Instantly share code, notes, and snippets.

View jtello's full-sized avatar

Julio Tello jtello

View GitHub Profile
linux-china /
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'
trolologuy /
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..
curl -fqsSL | bash
zbraniecki /
Last active July 14, 2024 08:01
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

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 => {
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
echo "run script"
echo $LANG
subfuzion /
Last active July 16, 2024 16:18
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.

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:
-ipaPath "${XCS_OUTPUT_DIR}/ExportedProduct/Apps/${XCS_BOT_NAME}.ipa"
-groupAliases GROUP_1,GROUP_2
voidrender /
Created June 3, 2015 16:34
A sample script to add to an After Integration Run Script step for an Xcode Server bot.
# This is the path to a directory we have hosted by the web server on our Xcode Server
# 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
tuxfight3r /
Last active July 15, 2024 06:39
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet


command description
ctrl + a Goto BEGINNING of command line
quellish /
Created October 28, 2014 03:03
Xcode CI script variables