This file contains hidden or 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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/home/maxyspark/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| # ZSH_THEME="agnoster" |
This file contains hidden or 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
| var mongoose = require('mongoose'); | |
| //Set up default mongoose connection | |
| var dbName = 'chatapp'; | |
| var collectionName = 'test'; | |
| var mongoDB = 'mongodb://127.0.0.1:27017/'+dbName; | |
| mongoose.connect(mongoDB,{ useNewUrlParser: true }); | |
| // Get Mongoose to use the global promise library | |
| mongoose.Promise = global.Promise; | |
| //Get the default connection |
This file contains hidden or 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
| Section "InputClass" | |
| Identifier "evdev touchscreen catchall" | |
| MatchIsTouchscreen "off" | |
| MatchDevicePath "/dev/input/event*" | |
| Driver "evdev" | |
| EndSection |
This file contains hidden or 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
| # max min left | |
| gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:' | |
| # vpn | |
| sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome curl bc | |
| sudo apt install geoip-bin geoip-database geoip-database-extra | |
| sudo apt install geoip-bin geoip-database-contrib | |
| sudo apt-get install expect |
This file contains hidden or 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
| #include<EEPROM.h> | |
| #include<LiquidCrystal.h> | |
| LiquidCrystal lcd(13,12,11,10,9,8); | |
| #include <SoftwareSerial.h> | |
| SoftwareSerial fingerPrint(2, 3); | |
| #include <Wire.h> | |
| #include <RTClib.h> | |
| RTC_DS1307 rtc; |
This file contains hidden or 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
| from random import * | |
| n = int(1e5) | |
| maxv = int(1e9) | |
| print(n) | |
| print(" ".join([str(randrange(maxv)) for _ in range(n)])) |
This file contains hidden or 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
| sudo add-apt-repository ppa:certbot/certbot | |
| sudo apt-get update | |
| sudo apt-get install python-certbot-nginx |
This file contains hidden or 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
| sudo echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty main" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb-src http://old-releases.ubuntu.com/ubuntu/ zesty main" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates main" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty universe" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb-src http://old-releases.ubuntu.com/ubuntu/ zesty universe" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb http://old-releases.ubuntu.com/ubuntu zesty-security main" | sudo tee -a /etc/apt/sources.list | |
| sudo echo "deb-src http://old-rele |
This file contains hidden or 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
| import java.util.*; | |
| public class kmean { | |
| public static void main(String[] args) { | |
| int[] dataset = { 2,3,4,10,11,12,20,25,30 }; | |
| ArrayList<Integer> c1 = new ArrayList<Integer>(); | |
| ArrayList<Integer> c2 = new ArrayList<Integer>(); |
This file contains hidden or 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
| function getRandomColor() { | |
| var letters = '0123456789ABCDEF'; | |
| var color = '#'; | |
| for (var i = 0; i < 6; i++) { | |
| color += letters[Math.floor(Math.random() * 16)]; | |
| } | |
| return color; | |
| } |