Skip to content

Instantly share code, notes, and snippets.

View wojtekdmyszewicz's full-sized avatar
🎯
Focusing

Wojtek Dmyszewicz wojtekdmyszewicz

🎯
Focusing
View GitHub Profile
{
"http-basic": {
"example.org": {
"username": "username",
"password": "password"
}
},
"bitbucket-oauth": {
"bitbucket.org": {
"consumer-key": "key",
@wojtekdmyszewicz
wojtekdmyszewicz / duplicate_line_xcode.md
Created November 18, 2021 21:53 — forked from emotality/duplicate_line_xcode.md
Xcode - Duplicate Line key binding

Xcode line duplicate

Bind keys to duplicate lines in Xcode

  1. Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
@wojtekdmyszewicz
wojtekdmyszewicz / sphp.sh
Created April 11, 2021 15:13 — forked from rhukster/sphp.sh
Easy Brew PHP version switching
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
osx_patch_version=${osx_patch_version:-0}
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
@wojtekdmyszewicz
wojtekdmyszewicz / gulpfile.js
Created January 17, 2021 18:42 — forked from bbachi/gulpfile.js
AWS Nodejs
const { src, dest, series, parallel } = require('gulp');
const del = require('del');
const fs = require('fs');
const zip = require('gulp-zip');
const log = require('fancy-log');
const webpack_stream = require('webpack-stream');
const webpack_config = require('./webpack.config.js');
var exec = require('child_process').exec;
const paths = {
# Specific ruby reinstall with additional stuff
rvm reinstall ruby-2.4.9 --with-openssl-dir='/usr/local/opt/openssl'
# Get latest stable version of RVM and do stuff
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby
gem install cocoapods
dig google.com NS +short
@wojtekdmyszewicz
wojtekdmyszewicz / config
Last active October 26, 2020 09:31
Shopify themekit config
### SHOPIFY CONFIG
Themekit https://shopify.github.io/themekit/
#### config
```
development:
password: shppa_1234
theme_id: ""
To change the name and/or email address recorded in existing commits, you must rewrite the entire history of your Git repository.
Warning: This action is destructive to your repository's history. If you're collaborating on a repository with others, it's considered bad practice to rewrite published history. You should only do this in an emergency.
Changing the Git history of your repository using a script
We've created a script that will change any commits that previously had the old email address in its author or committer fields to use the correct name and email address.
Note: Running this script rewrites history for all repository collaborators. After completing these steps, any person with forks or clones must fetch the rewritten history and rebase any local changes into the rewritten history.
Before running this script, you'll need:
# Request SSL certificate and configure AWS loadbalancer
## Request a ssl certificate (i.e. Comodo, Symantec)
1. openssl req -utf8 -nodes -sha256 -newkey rsa:2048 -keyout domainname_com.key -out domainname_com.csr
2. cat domainname_com.csr
3. request ssl
## Configure AWS loadbalancer
@wojtekdmyszewicz
wojtekdmyszewicz / gitignore
Created September 10, 2018 11:01 — forked from robertwalker/gitignore
Git ignore file for Xcode projects
# Ignore Finder spam
\.DS_store
# Ignore cruft in the project bundle
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
# Ignore build products folder
build/