This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Base64; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.spec.PBEParameterSpec; | |
import javax.crypto.spec.IvParameterSpec; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from blinkpy import blinkpy | |
blink = blinkpy.Blink(username='[email protected]', password='azerty') | |
blink.start() | |
# List camera | |
print('Camera list:') | |
for name, camera in blink.cameras.items(): | |
print(name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# HTTP: Let's encrypt + redirect on HTTPs | |
# | |
<VirtualHost _default_:80> | |
ServerAdmin [email protected] | |
### Let's encrypt | |
Alias /.well-known/acme-challenge/ /var/www/challenges/ | |
<Directory "/var/www/challenges"> | |
# Allow open access: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/bluetooth.service.d/customexec.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap,pnat | |
ExecStartPost=/bin/hciconfig hci0 up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# touchpad-toggle: Toggle touchpad activation with gsettings. | |
# Copyright (C) 2015 Guillaume Kulakowski <[email protected]> | |
# Version 1.0 | |
# | |
SCHEMA="org.gnome.desktop.peripherals.touchpad" | |
KEY="send-events" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove old | |
rm -rf ~/.local/share/themes/{Arc,Arc-Darker,Arc-Dark} | |
# Git clone | |
cd ~/Workspace | |
git clone https://github.com/horst3180/arc-theme --depth 1 && cd arc-theme | |
# Make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# CentOS Logo based on https://gist.github.com/Redoubts/6654575 | |
# | |
# Colors | |
YELLOW="\e[1;33m" | |
GREEN="\e[1;32m" | |
BLUE="\e[1;34m" | |
PURPLE="\e[1;35m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" General | |
set bg=dark | |
set ts=4 | |
set nocompatible | |
set ruler | |
" Colors | |
set t_Co=256 | |
syntax enable | |
colorscheme slate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is a configuration for Sami: an API documentation generator | |
* https://github.com/fabpot/Sami | |
*/ | |
use Sami\Sami; | |
use Sami\Version\GitVersionCollection; | |
use Symfony\Component\Finder\Finder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Guillaume Kulakowski | |
[color] | |
ui = auto | |
[alias] | |
st = status | |
ci = commit |
NewerOlder