Skip to content

Instantly share code, notes, and snippets.

View varp's full-sized avatar
🎯
Focusing

Vardan Pogosian varp

🎯
Focusing
View GitHub Profile
@nikololay
nikololay / rdp.json
Created January 12, 2022 22:53
Mac to Windows10 RDP key bindigs
{
"title": "Mac OSX Style Shortcuts for RDP sessions. Translates OSX shortcuts to PC equivalent",
"maintainers": [
"varp"
],
"rules": [
{
"description": "Mac OSX RDP: Home key to the beginning of the sentence (Command + Left)",
"manipulators": [
{
@fnky
fnky / ANSI.md
Last active May 3, 2024 10:48
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@jonashackt
jonashackt / downgrade_brew_package.sh
Created September 24, 2018 12:07
Downgrade homebrew (cask) package
# Uninstall current version you want to downgrade
brew cask uninstall <PackageName>
# Edit Cask file
brew cask edit <PackageName>
# e.g. Vagrant
brew cask edit vagrant
```
cask 'vagrant' do
@mdesantis
mdesantis / upgrade-postgres-9.6-to-10.md
Last active October 11, 2021 08:11 — forked from delameko/upgrade-postgres-9.5-to-9.6.md
Upgrading PostgreSQL from 9.6 to 10 on Ubuntu 16.04

TL;DR

Install Postgres 10, and then:

sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
@mediaupstream
mediaupstream / make_certs.sh
Last active April 5, 2024 19:22
extract ca-certs, key, and crt from a pfx file
#!/bin/bash
#
# Usage:
# ./make_certs.sh test.example.com
#
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix
#
# test.example.com.key
# test.example.com.crt (includes ca-certs)
@chitoku-k
chitoku-k / .travis.linux.yml
Last active September 2, 2022 06:33
ChromeDriver on Travis CI
os: linux
node_js: '12'
sudo: required
env: DISPLAY=':99.0'
dist: trusty
addons:
apt:
update: true
sources:
- google-chrome
@ziadoz
ziadoz / install.sh
Last active April 20, 2024 10:18
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@konkon1234
konkon1234 / takeFullScreenshot.php
Last active August 27, 2022 00:37
page full capture function for facebook/php-webdriver Selenium WebDriver bindings for PHP
<?php
/**
* page full capture for https://github.com/facebook/php-webdriver
*
* @param RemoteWebDriver $driver
* @param string $screenshot_name capture save path
* @throws Exception
*/
public function takeFullScreenshot($driver, $screenshot_name)
@jvenator
jvenator / gist:9672772a631c117da151
Last active April 28, 2024 01:09
PDFtk Server Install Workaround for Mac OS X

Installing PDFtk Server edittion on your Mac

This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this homebrew-cask issue.
The following steps worked on Mac OS X 10.10.1 with a standard brew installation for the PDFtk Mac OS X server libary version 2.02.
All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

Download and extract the Mac OS X server install pacakge