Skip to content

Instantly share code, notes, and snippets.

View arky's full-sized avatar

Arky arky

View GitHub Profile
@denguir
denguir / cuda_install.md
Last active July 5, 2024 07:35
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@theprojectsomething
theprojectsomething / An Ubuntu WiFi Secure Captive Portal.md
Last active June 7, 2024 13:44
Guide: An Ubuntu WiFi Secure Captive Portal: Network Manager / DNSMasq / HA Proxy / Let's Encrypt

An Ubuntu WiFi Secure Captive Portal

Improvements, suggestions & fixes are welcome!

Captive portals can be a pain. Here's an opinionated and no-doubt entirely imperfect guide to setting one up for a WiFi access point on Ubuntu (tested on 20+), utilising Network Manager, DNSMasq, HA Proxy and (optionally) Let's Encrypt for a secure, locally hosted landing page.

_Note: This setup was originally designed for an offline WLAN, providing access to a small number of locally hosted domains ... think the WiFi media portal on a flight or boat. If you are looking to provide internet access behind a captive portal then this guide won't get you all the way there. That said, many routers have this capability built in, as do any number of open source router firmware solutions. So you probably don't need to roll your own. If you'd like to try anyway, Ha Proxy Stick Tables would probably come in handy. Very happy to update the guide with any p

@pigeonflight
pigeonflight / EventView.jsx
Last active January 17, 2022 07:09
example of relatedItems on an EventView
/**
* EventView view component.
* @module components/theme/View/EventView
*/
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { flattenHTMLToAppURL } from '@plone/volto/helpers';
import { Container, Image, Segment, Header, List } from 'semantic-ui-react';
@nobonobo
nobonobo / build.yaml
Last active October 31, 2023 06:21
Pythonスクリプトを動作可能なバイナリにして各種プラットフォーム向けにリリースするシナリオ for GitHub Actions
name: push
on:
push:
tags:
- "v*"
jobs:
windows-build:
runs-on: windows-latest
steps:
@natbat
natbat / Bat+Sounds.ipynb
Last active October 22, 2023 02:24
Taking recordings from the EchoMeter Touch Bat detector and the KML file that is associated with it and uploading the sound files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patrickmmartin
patrickmmartin / PYTHON_DEFAULT.md
Created February 5, 2017 09:48
update-alternatives for python3 on Ubuntu

Ubuntu 16 default python is almost python 3

Loads of solutions exist, but for changing the system default, alias is not the way to go.

$ update-alternatives --list python update-alternatives: error: no alternatives for python

@lukmdo
lukmdo / siteUptimeMonitor.js
Created July 29, 2012 12:09
google apps script=js
var ONE_S = 1000,
ONE_M = 60*ONE_S,
ONE_H = 60*ONE_M,
RUN_EVERY = 5*ONE_M,
SLEEP_TIME = 30*ONE_M,
CHECK_URL = 'http://www.SITE.com',
NOTIFY_MAIL = 'EMAIL@EMAIL.com',
NOTIFY_CALENDAR = 'ID_OF_YOUR_GOOGLE_CALENDAR@group.calendar.google.com';