Skip to content

Instantly share code, notes, and snippets.

{ pkgs, lib, ... }:
{
# forked from: https://gist.github.com/jmatsushita/5c50ef14b4b96cb24ae5268dab613050
# Nix configuration ------------------------------------------------------------------------------
nix.binaryCaches = [
"https://cache.nixos.org/"
];
nix.binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
@ewann
ewann / configuration.nix
Last active March 11, 2024 07:07
nix-macos
{ pkgs, lib, ... }:
{
# forked from: https://gist.github.com/jmatsushita/5c50ef14b4b96cb24ae5268dab613050
# https://daiderd.com/nix-darwin/manual/index.html
# Nix configuration ------------------------------------------------------------------------------
nix.binaryCaches = [
"https://cache.nixos.org/"
];
nix.binaryCachePublicKeys = [
https://www.youtube.com/playlist?list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal
!!!!!!!!!!
https://www.youtube.com/watch?v=cKxRvEZd3Mw
Hello World - Machine Learning Recipes #1
scikit learn & tensor flow
classifiers... supervised learning
@ewann
ewann / fstab
Created August 15, 2015 08:02
Centos22 C710 Hibernate
#
# /etc/fstab
# Created by anaconda on Sat Aug 15 03:11:49 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/fedora-root / ext4 defaults 1 1
UUID=302af380-ac4e-42ea-879f-2d030be91187 /boot ext4 defaults 1 2
/dev/mapper/fedora-home /home ext4 defaults 1 2
@ewann
ewann / google-app-engine-ui-linux
Created July 31, 2015 04:00
GoogleAppEngine notes for a working UI on Ubuntu
#UI download:
https://github.com/tejasbubane/google-appengine-gui-for-linux
#needs wxpython 2.8, but vivid ships with 3.0. Easiest way is to just downgrade using package manager
#need to submit pull for param that has been depreciated in sdk: grep -rnF '.' -e "admin_console_server"
#appengine itself
https://cloud.google.com/appengine/downloads
#needs to be run from commandline to answer prompt about auto upgrade check (seems to block app launch) - grab the command line from the log
web2py?
vboxmanage list runningvms | sed "s/\"\(.*\)\".*/vboxmanage controlvm \1 savestate;/" |bash
@ewann
ewann / slash-isolinux-slash-txt.cfg
Last active September 4, 2020 21:11
Ubuntu preseed (automated install)
default hd
label install
menu label ^HDD Wiper - Ubuntu 15.04 server + salt-minion
kernel /install/vmlinuz
append file=/cdrom/preseed/ubuntu-server.seed vga=788 locale=en_AU priority=critical initrd=/install/initrd.gz quiet ---
label cloud
menu label ^Multiple server install with MAAS
kernel /install/vmlinuz
append modules=maas-enlist-udeb vga=788 initrd=/install/initrd.gz quiet ---
label check
@ewann
ewann / usb-creator-gtk
Created July 29, 2015 12:35
Ubuntu workarounds
First date: 20150722
Release: vivid ubuntu-desktop
Issue: various error messages when trying to create a bootable usb
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1294877
WORKAROUND:
I was able to work around this for my case as described in http://askubuntu.com/questions/485357/unknown-error-from-startup-disk-creator - "right click on the .iso in the file explorer and select 'Open With Disk Image Writer' and then 'restore' the ISO image to the selected USB device."
WORKAROUND2:
Erase the drive
@ewann
ewann / gist:d718278b350d7fc59f38
Last active August 1, 2022 14:13
squid-deb-proxy
#http://askubuntu.com/questions/3503/best-way-to-cache-apt-downloads-on-a-lan
#on 14.04:
#server:
sudo apt-get install squid-deb-proxy avahi-utils
#client
sudo apt-get install squid-deb-proxy-client
#or
#/etc/apt/apt.conf
Acquire {
Retries "0";
@ewann
ewann / gui
Last active April 15, 2016 14:19
ubuntu-14.04-server-wifi-cli
sudo apt-get install libappindicator3-1 libappindicator1
+ provider or nm-applet