Skip to content

Instantly share code, notes, and snippets.

💻
Work work

Wojtek Siudzinski suda

💻
Work work
Block or report user

Report or block suda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@suda
suda / keybindings.json
Created Dec 16, 2018
VSCode Mac keybindings for Linux/Windows
View keybindings.json
// Overwrite key bindings by placing them into your key bindings file.
[
{
"key": "escape escape",
"command": "workbench.action.exitZenMode",
"when": "inZenMode"
},
{
"key": "shift+escape",
"command": "closeReferenceSearchEditor",
@suda
suda / gunicorn
Created Dec 20, 2010
Gunicorn init.d script (gentoo)
View gunicorn
#!/sbin/runscript
# Gunicorn init.d script for gentoo
# Written by Wojtek 'suda' Siudzinski <admin@suda.pl>
# Gist: https://gist.github.com/748335
#
# Sample config (/etc/conf.d/gunicorn):
#
# SERVERS=(
# 'server_name port project_path number_of_workers'
@suda
suda / multipleRows.mm
Last active Jun 14, 2019
Multiple Row Selection in UIPickerView
View multipleRows.mm
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view {
UITableViewCell *cell = (UITableViewCell *)view;
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
[cell setBackgroundColor:[UIColor clearColor]];
[cell setBounds:CGRectMake(0, 0, cell.frame.size.width - 20, 44)];
cell.tab = row UITapGestureRecognizer * singleTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(toggleSelection:)];
singleTapGestureRecognizer.numberOfTapsRequired = 1;
[cell addGestureRecognizer:singleTapGestureRecognizer];
}
View tick-cloud-config.yaml
#cloud-config
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+xU8Tzj7FHrTldT2SW2i3+VXO+nU+tijkSIePuxZscYMMdEv32JrsFQAIQF+4JrGCzuilqOOz/ewIAKH6v4xW0f2XTOhA6oqTaJWhIMlovIVQq8txnBpSHoldWiT8nqGElUQA6PpUgLVjwCaUUtKuGHV2JNAsKUMH724wSHqHxc9m/SHB9TksWM74fIw67rsY4GKaRv7M2pFqbr//VlEM2LxXVCxf0Zs3fiF33yiAHWHHlTm6Tu9Q8QhYu1ikpZ6/K4GOuWzyZJjt7nVRqYio4dKi/D6DpHy8LyACAQP3MlGx2gNeqKcQGZ7O63CkPVB1j87pnH1XYvG97Nc9xgCf suda@suda-imac.local"
coreos:
units:
- name: "influxdb.service"
command: "start"
content: |
[Unit]
@suda
suda / gunicorn
Created Dec 20, 2010
Gunicorn init.d script (debian/ubuntu)
View gunicorn
#!/bin/sh
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon
View keybase.md

Keybase proof

I hereby claim:

  • I am suda on github.
  • I am suda (https://keybase.io/suda) on keybase.
  • I have a public key ASA5pFrAqddzxEsU4F-ohh0TB3yhQQNnzHangzdoAx4wpgo

To claim this, I am signing this object:

View Places in London for Diana to visit.md

Touristy things

  • Big Ben / Parlament
  • Westminster Abby
  • London Eye
  • Tower / Tower Bridge
  • Buckingham Palace
  • St James Park
  • Oxford Street
  • Trafalgar Square
View appstore_pricing_matrix.html
<html>
<HEAD>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=UTF-8">
<TITLE>App Store Pricing Matrix</TITLE>
<style type="text/css">
body {
font-family: "Lucida Grande", Arial;
}
table {
View compile.sh
#!/bin/bash
if [[ -z $ACCESS_TOKEN ]]; then
echo "Please set ACCESS_TOKEN env variable"
exit -1
fi
if [[ -z $PARTICLE_VERSION ]]; then
PARTICLE_VERSION=0.6.1
echo "Defaulted to version 0.6.1"
fi
View Pocket Operator Cheat Sheet.md

PO-20 Arcade

Chords

dm em Esus E
F G C/G E/G#
am C/A dm/A D/A
A B/A C D
You can’t perform that action at this time.