This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import argparse | |
import logging | |
from datetime import datetime, timedelta | |
from typing import List, Optional | |
from collections import defaultdict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Registered Name: https://zhile.io | |
License Key: 48891cf209c6d32bf4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash Miniconda3-latest-MacOSX-x86_64.sh | |
// append env path | |
conda install jupyter matplotlib pandas scipy Pillow scikit-learn | |
conda install -c conda-forge keras tensorflow | |
// for some reasons tensorflow installed = 1.0.0, update here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# I have to admit this is my first time using ruby and I find the syntax very easy and appealing. | |
# | |
# A simple PaginationHelper utility class | |
# | |
# Gerard Lee <[email protected]> | |
# Oct 1, 2018 | |
class PaginationHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://fpira.com/blog/2016/04/install-php-raspberry-pi/ | |
#!/bin/bash | |
# credits: http://stackoverflow.com/questions/31280912/how-to-install-php-5-6-on-raspbian-wheezy | |
### VARIABLES ### | |
# type here the specific php 5.x version you want to install | |
PHP_VERSION="5.6.20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
if [ "$(whoami)" != "root" ]; then | |
echo "Run script as ROOT please. (sudo !!)" | |
exit | |
fi | |
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing Kali Linux as a Windows 10 Subsystem for Linux | |
Powershell (Admin) | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
lxrun /install | |
git clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git | |
cd WSL-Distribution-Switcher | |
python get-prebuilt.py kalilinux/kali-linux-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Story: | |
My hdd is 1tb but i bought a 256gb ssd. I partitioned it accordingly: | |
140gb windows | |
50gb ubuntu | |
50gb fedora | |
1gb linux boot | |
250mb efi system | |
I want to move operating system files to ssd to make my development env faster, and my documents to hdd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumblebee on Ubuntu 16.04 | |
Remove the default Nvidia driver: | |
sudo apt-get remove xserver-xorg-video-nouveau | |
Install Bumblebee, primus, and nvidia drivers | |
sudo add-apt-repository ppa:graphics-drivers/ppa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fedora 25 XFCE comes with no screensaver. Here's how: | |
sudo dnf install xscreensaver-extras xscreensaver-extras-base xscreensaver-gl-base xscreensaver-gl-extras |
NewerOlder