sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| server { | |
| listen 80; | |
| server_name yoursite.com www.yoursite.com; | |
| return 301 https://www.yoursite.com$request_uri; | |
| } | |
| # HTTPS server | |
| server { | |
| listen 443; | |
| server_name www.yoursite.com yoursite.com; |
| PLUGINS = [ | |
| 'i18n_subsites', | |
| ] | |
| # i18n | |
| JINJA_EXTENSIONS = ['jinja2.ext.i18n'] | |
| I18N_GETTEXT_LOCALEDIR = 'themes/lab/translations' | |
| DEFAULT_LANG = 'fr' | |
| # define "I18N_SUBSITES" as a empty dictionary doesn't really matters : it's initialized on i18n_subsites.py on line 65 | |
| # I18N_SUBSITES = {} |
| require 'haversine' | |
| require 'json' | |
| require 'time' | |
| require 'date' | |
| data = JSON.parse(File.read('LocationHistory.json')) | |
| jyvaskyla = [62.244747, 25.7472184] | |
| away_days = {} |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20180808 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
Everybody! Get the feeling of the 90s! Let the dreams come true!
This is a proof of concept for implementing SMS to IRC gateway using Kannel SMS gateway, Irssi Proxy, and an ordinary mobile stick (in my case Huawei E166).
To send message to IRC, just type the following message and send it to the phone number of the gateway:
| -- |Little tool which splits words while you type. Useful when typing | |
| -- live to espeak, for example: runhaskell WordSplitter | espeak | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Data.Attoparsec as A | |
| import qualified Data.ByteString as B | |
| import qualified Data.ByteString.Char8 as BC | |
| import System.IO |
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |