install networkmanager-l2tp first:
yaourt -S networkmanager-l2tp
apt install -y network-manager-l2tp| #!/bin/sh | |
| # on ubuntu: need some utils & dev libs | |
| sudo apt-get install apache2-utils openssl libssl-dev libpcre3-dev | |
| # compile nginx | |
| cd /tmp | |
| curl http://nginx.org/download/nginx-0.7.64.tar.gz | tar xz | |
| cd nginx* | |
| ./configure --with-http_ssl_module --with-http_dav_module \ |
| import threading | |
| ''' | |
| A generic iterator and generator that takes any iterator and wrap it to make it thread safe. | |
| This method was introducted by Anand Chitipothu in http://anandology.com/blog/using-iterators-and-generators/ | |
| but was not compatible with python 3. This modified version is now compatible and works both in python 2.8 and 3.0 | |
| ''' | |
| class threadsafe_iter: | |
| """Takes an iterator/generator and makes it thread-safe by | |
| serializing call to the `next` method of given iterator/generator. | |
| """ |
| g_LastCtrlKeyDownTime := 0 | |
| g_AbortSendEsc := false | |
| g_ControlRepeatDetected := false | |
| *CapsLock:: | |
| if (g_ControlRepeatDetected) | |
| { | |
| return | |
| } |
| #!/usr/bin/env bash | |
| # SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com) | |
| # Displays a timeless message in your terminal with cosmic color effects | |
| # Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory | |
| # (adjust the sleep variable to display the message for more seconds) | |
| # Cosmic color sequence |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sysIn env.py:
| #!/usr/bin/env bash | |
| # Runs a command wrapped in btrfs snapper pre-post snapshots. | |
| # Usage: $ snp <commands> | |
| # e.g.: $ snp pacman -Syyu | |
| # The latest version of this script is hosted at https://gist.github.com/erikw/5229436 | |
| log_path="/var/local/log/snp" | |
| date=$(date "+%Y-%m-%d-%H%M%S") | |
| log_file="${log_path}/snp_${date}.log" |
| Tested working 20 Jun 2021, irssi version 1.2.3 | |
| This is a TLDR version of https://blog.crunchprank.net/connecting-to-twitch-chat-via-irssi/ | |
| Get your OAuth token (password) here: https://twitchapps.com/tmi/ | |
| # Network setup: | |
| /network add -nick YOUR_TWITCH_USERNAME twitch | |
| /server add -auto -ssl -network Twitch irc.chat.twitch.tv 6697 YOUR_OAUTH_TOKEN |
Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and
| (* | |
| Export All Safari Tabs in All Open Windows to a Markdown File | |
| March 8th, 2024 | |
| // SCRIPT PAGE | |
| https://gist.github.com/yyolk/5ee36b12271d89371fe859630aee80a4 | |
| // ORIGINAL SCRIPT ON WHICH THIS SCRIPT WAS ORIGINALLY BUILT | |
| http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |