Skip to content

Instantly share code, notes, and snippets.

Karl Bertin kvpb

View GitHub Profile
@kvpb
kvpb / download.sh
Created Apr 7, 2019 — forked from josh-padnick/download.sh
Download a private binary release file from GitHub in bash
View download.sh
#!/usr/bin/env bash
#
# This is an adaptation of code I wrote to download a private binary from GitHub. Such...pain.
# Why can't GitHub just offer a standardized URL you can download a release binary from and attach
# your Github Personal Access Token as a header?
#
# Since this code is an adaptation it hasn't been directly tested, but the code it was adapted from works
# and hopefully you can get the missing piece you're after by looking here.
#
@kvpb
kvpb / app-store-pkgs.sh
Created Apr 7, 2019 — forked from jacobsalmela/app-store-pkgs.sh
Save App Store downloads as .pkgs
View app-store-pkgs.sh
#!/bin/bash
appStoreFolder=$(sudo find /private/var/folders -type f -name "*.pkg")
i=0
for package in $appStoreFolder
do
sudo ln $package ~/Downloads/_MAS_$i.pkg
i=$(($i+1))
done
View gist:5fdfe74d7fce6a5a1bea72088779657c
.
├── autoload
│   ├── pathogen.vim
│   └── pathogen.vim.old
├── backup
├── bundle
│   ├── nerdcommenter
│   ├── scss-syntax.vim
│   ├── snipmate.vim
│   ├── supertab
@kvpb
kvpb / license.md
Created Apr 6, 2019
A license that applies to all of Karl Bertin's public gists. https://gist.github.com/kvpb
View license.md

MIT License

Copyright (c) 2014 Karl Bertin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR

@kvpb
kvpb / kbertins42header.txt
Created Apr 6, 2019
kbertin's 42 header, retrieved from an old file from one of the daily projects of the 2014 piscine.
View kbertins42header.txt
" **************************************************************************** "
" "
" ::: :::::::: "
" filename :+: :+: :+: "
" +:+ +:+ +:+ "
" By: kbertin <kbertin@student.42.fr> +#+ +:+ +#+ "
" +#+#+#+#+#+ +#+ "
" Created: YYYY/MM/DD HH:MM:SS by kbertin #+# #+# "
" Updated: YYYY/MM/DD HH:MM:SS by kbertin ### ########.fr "
" "
@kvpb
kvpb / Script.sh
Created Mar 14, 2018
Test script 69: Set macOS keyboard speed
View Script.sh
#!/usr/bin/env bash
# Script.sh
# Test script 69 [because I don't remember how many I did before, but I know I did about 50 anyway]: Set macOS keyboard speed
#
# Karl 'Kabe' Bertin (Карл Бэртин) `kvpb`
# Phone number: +33xxxxxxxxx
# Email: local-part@domain
# LinkedIn: https://www.linkedin.com/in/karlbertin
# Facebook: https://www.facebook.com/karlbertin
@kvpb
kvpb / bash-colors.md
Created Jan 28, 2018 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@kvpb
kvpb / ruby-2.0.0-p451-readline-6.3.patch
Created Jul 14, 2017 — forked from EdVanDance/ruby-2.0.0-p451-readline-6.3.patch
fix rbenv install 2.0.0-p451 with readline 6.3
View ruby-2.0.0-p451-readline-6.3.patch
--- ext/readline/extconf.rb
+++ ext/readline/extconf.rb
@@ -19,6 +19,10 @@ def readline.have_func(func)
return super(func, headers)
end
+def readline.have_type(type)
+ return super(type, headers)
+end
+
You can’t perform that action at this time.