Skip to content

Instantly share code, notes, and snippets.

Wojciech Adam Koszek wkoszek

Block or report user

Report or block wkoszek

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
@wkoszek
wkoszek / click.oscript
Created Jan 19, 2018
Clicking "Allow" button in System Preferences via Screen Sharing
View click.oscript
# This is clicking "Allow" in System Preferences "Security & Privacy" screen
# when you're on Screen Sharing. Otherwise it doesn't work.
# To fix:
# - Put "Security & Privacy" window in the top left screen
# - open a Terminal on a side
# - save click.oscript
# - Run: osascript click.oscript
#
# The mouse click you send should hit "Allow" button. You may need to move the window a little bit.
# Script originally from: https://discussions.apple.com/thread/3708948
View chrome_vs_safari
TEST COMPARISON FROM TO DETAILS
===============================================================================
** TOTAL **: 2.11x as fast 375.6ms +/- 5.2% 177.7ms +/- 21.3% significant
===============================================================================
3d: - 55.5ms +/- 5.8% 35.9ms +/- 100.2%
cube: 2.75x as fast 17.9ms +/- 7.4% 6.5ms +/- 11.9% significant
View CodeSnippetForSO.php
<?php
// Your Access Key ID, as taken from the Your Account page
$access_key_id = "AKIAAAAABBBBCCCCDDDD";
// Your Secret Key corresponding to the above ID, as taken from the Your Account page
$secret_key = "mysecretkeyishereanditworkswhenirunit___";
// The region you are interested in
$endpoint = "webservices.amazon.com";
View url raw
https://www.amazon.com/How-Built-Union-Pacific-Railroad/dp/1519041586/ref=sr_1_1?ie=UTF8&qid=1536554030&sr=8-1&keywords=how+we+built+union+pacific&dpID=514IcGbDU9L&preST=_SY291_BO1,204,203,200_QL40_&dpSrc=srch
View sitestripe_link
View build_lpass_cli.sh
clang *.c \
/usr/local/Cellar/libxml2/2.9.7/lib/libxml2.2.dylib \
/usr/local/Cellar/openssl/1.0.2o_2/lib/libssl.1.0.0.dylib \
/usr/local/Cellar/openssl/1.0.2o_2/lib/libcrypto.1.0.0.dylib \
/usr/local/Cellar/curl/7.61.0/lib/libcurl.4.dylib \
-o lpass \
-I /usr/local/Cellar/openssl/1.0.2o_2/include/ \
-I /usr/local/Cellar/libxml2/2.9.7/include/libxml2/
View indexing_output
/stuf/docker # ./apk_reindex
WARNING: No provider for dependency 'py3httplib2'
WARNING: No provider for dependency 'py2asn1-modules'
WARNING: No provider for dependency 'so:libbfd-2.28.so'
WARNING: No provider for dependency 'py3asn1'
WARNING: No provider for dependency 'py2six'
WARNING: No provider for dependency 'py2asn1'
WARNING: No provider for dependency 'py-gnome-gnomecanvas'
WARNING: No provider for dependency 'py2-typing'
WARNING: No provider for dependency 'py3asn1-modules'
View apk_reindex
B=/alpine/dl-cdn.alpinelinux.org/alpine/v3.7/
apk index \
-o ${B}/main/x86_64/APKINDEX.tar.gz \
${B}/main/x86_64/*.apk
apk index \
-o ${B}/community/x86_64/APKINDEX.tar.gz \
${B}/community/x86_64/*.apk
View packer-xenserver-fail
Debug mode enabled. Builds will not be parallelized.
xenserver-iso output will be in this color.
==> xenserver-iso: XAPI client session established
==> xenserver-iso: Downloading or copying ISO
xenserver-iso: Downloading or copying: http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.1/FreeBSD-10.1-RELEASE-amd64-disc1.iso
==> xenserver-iso: Starting HTTP server on port 8000
==> xenserver-iso: Step: Upload VDI 'FreeBSD-10.1-RELEASE-amd64-disc1.iso'
==> xenserver-iso: PUT 'https://ns514294.ip-198-27-70.net/import_raw_vdi?session_id=OpaqueRef%3A82c1fe80-446f-b816-63ba-f4fa70373341&task_id=OpaqueRef%3A16b53b84-fdde-273a-b412-f6d1608bb894&vdi=OpaqueRef%3Aa4ebd59a-9718-6c1b-3de6-d9d12da1faae'
==> xenserver-iso: Step: Create Instance
View normal_rvm_on_ubuntu_ok
[15:23:26][wk@wkoszek_mba:~/r/me]$ vagrant ssh
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-87-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sat Dec 10 23:23:02 UTC 2016
System load: 0.37 Processes: 108
Usage of /: 3.5% of 39.34GB Users logged in: 0
Memory usage: 7% IP address for eth0: 10.0.2.15
You can’t perform that action at this time.