Skip to content

Instantly share code, notes, and snippets.

View kapoorlakshya's full-sized avatar
🙃

Lakshya Kapoor kapoorlakshya

🙃
View GitHub Profile
@sushant-here
sushant-here / AppUITests.swift
Last active July 1, 2024 22:46
XCUITest disable keyboard swipe
import XCTest
final class AppUITests: XCTestCase {
override func setUpWithError() throws {
SpringboardHelper.showKeyboardIfNeeded()
}
}
@Skarlso
Skarlso / fork_updater.rb
Last active June 8, 2018 08:50
Ruby script to update all your forked repositories
#!/usr/bin/env ruby
require 'octokit'
require 'logger'
@logger = Logger.new("output.log")
def update_fork(repo)
repo_name = repo.name
# clone the repository -- octokit doesn't provide this feature as it's a github api library

I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email [email protected]

Onboarding and the workplace

https://blog.vcarl.com/interview-questions-onboarding-workplace/

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
# see: https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html
LOGLEVELS = %w[DEBUG INFO WARN ERROR FATAL UNKNOWN].freeze
LOGGER = Logger.new(STDOUT)
level ||= LOGLEVELS.index ENV.fetch("LOG_LEVEL","WARN") # default to WARN index: 2
level ||= Logger::WARN # FIX default in case of environment LOG_LEVEL value is present but not correct
LOGGER.level = level
# Usage:
# before launching the program:
# $ export LOG_LEVEL=DEBUG
@kevinGodell
kevinGodell / appveyor.yml
Created February 13, 2018 19:24
Appveyor deployment install ffmpeg
image: Visual Studio 2017
environment:
ffmpeg_download: https://ffmpeg.zeranoe.com/builds/
matrix:
- platform: x64
nodejs_version: LTS
ffmpeg_version: 3.4.1
ffmpeg_platform: win64
@danwhitston
danwhitston / wsl_first_time_setup.sh
Last active May 7, 2022 13:34
Setting up my WSL environment - includes git & key, rbenv, rbenv ruby-build, attis, imagemagick, ruby, bundler, mysql, mongodb, redis
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
ln -s "/mnt/c/Users/Daniel/Documents/homeflow" ~/homeflow
ln -s "/mnt/c/Users/Daniel/Documents" ~/documents
mkdir .ssh
cp documents/id* .ssh/
sudo chmod 600 .ssh/*
cd homeflow/attis
git pull
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active July 3, 2024 03:59
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

bazel query cheatsheet

which packages depend on qtdb lib?

bazel query 'rdeps(..., //vistar/geo/qtdb:go_default_library)' --output package 

which packages does qtdb depend on?

@perlun
perlun / .travis.yml
Last active April 14, 2019 07:52
Super-fast Travis JRuby install
# Background: JRuby installs on Travis is painfully slow. The version which is preinstalled is very old. Here are some GitHub
# issues about it:
#
# https://github.com/travis-ci/docs-travis-ci-com/pull/743
# https://github.com/travis-ci/travis-rubies/issues/22
# https://github.com/travis-ci/travis-ci/issues/6892
# https://github.com/travis-ci/packer-templates/issues/391
#
# Since the upstream issue is still unresolved, and a JRuby install takes anywhere from 100 to 200 seconds (!), we decided to
# implement this workaround. With this in place, the JRuby install takes about 10 seconds.