Skip to content

Instantly share code, notes, and snippets.

View taniki's full-sized avatar
🛠️

tam kien duong taniki

🛠️
View GitHub Profile

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@kameshsampath
kameshsampath / podman_pods_mariadb.txt
Created November 22, 2019 06:16
Running mariadb as podman pods
podman run -dt --rm --pod new:db --name mariadb -e MYSQL_ROOT_PASSWORD=superS3cret! -e MYSQL_USER=demo -e MYSQL_DATABASE=demodb -e MYSQL_PASSWORD=password -p 3306:3306 -p 8082:8080 mariadb:10.4.4
podman run -dt --rm --pod db --name adminer adminer:4.7.3-standalone
@henfiber
henfiber / KB-Buying-guide-EU.md
Last active May 15, 2025 17:06
Buying keyboards and keyboard components from EU

Europe

  • SkinFlint : Price comparison site which has some nice filtering options per switch type etc. Searches for offers in UK, Germany, Poland and Austria
  • mykeyboard.eu : Keyboards, keycaps and accessories. Based in Belgium.
  • candykeys.com : European Store selling Vortex, Leopold, KBP, Anne Pro keyboards, keycap sets and components (ISO + ANSI). Based in Germany, ships to EU.
  • falba.tech : custom wooden bamboo cases, and some acrylic and carbon ones. Switch packs (65 browns at 48EUR). Other parts for the GH60, Atreus, ErgoDox. Also Microcontrollers, diodes, leds etc.
  • 42keebs.eu - Mostly PCBs, tools and accessories. Located in Czech Republic.
  • KEYGEM : Switches, Keycaps, lubes, cables, DIY kits and deskmats. Based in Germany, ships to the EU and worldwide.
  • [Eloquent Clicks - Custom Mechanical Keyboard Store](https://www.eloquen
@robertknight
robertknight / hypothesis-webextensions.md
Last active January 23, 2018 18:57
Hypothesis Firefox WebExtensions Prototype Instructions

Hypothesis Firefox WebExtensions prototype

  1. Install Firefox Developer Edition from https://www.mozilla.org/en-GB/firefox/developer/ and run it
  2. Enter "about:config" in Firefox's URL bar and press Enter
  3. Search for "xpinstall.signatures.required" and double click the setting to toggle it to "false"
  4. Download the Firefox WebExtensions prototype build from https://s3.amazonaws.com/io.github.robertknight/hypothesis/prototypes/hypothesis-stage.xpi
  5. Open it in Firefox by going to File -> Open and selecting the downloaded extension

What works:

  • Annotation badge. Looks slightly more attractive than Chrome.
@hreeder
hreeder / parser.py
Last active February 27, 2024 03:53
Python nginx Log Parser
#!/usr/bin/env python
import gzip
import os
import sys
import re
INPUT_DIR = "nginx-logs"
lineformat = re.compile(r"""(?P<ipaddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(?P<dateandtime>\d{2}\/[a-z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\] ((\"(GET|POST) )(?P<url>.+)(http\/1\.1")) (?P<statuscode>\d{3}) (?P<bytessent>\d+) (["](?P<refferer>(\-)|(.+))["]) (["](?P<useragent>.+)["])""", re.IGNORECASE)
@ewilderj
ewilderj / friends.py
Created December 9, 2010 18:19
Make a graph of your social network from those you follow
# a messy hack written by Edd Dumbill. http://twitter.com/edd
# You may need to rerun this script if you hit a Twitter Error because you
# use up API rate limiting. That's why we pickle the results, so we can resume
# where we left off.
# get the twitter module using 'easy_install twitter'
from twitter.api import Twitter, TwitterError
from twitter.oauth import OAuth