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
$ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T [email protected] | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
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
#go to your home directory and get the golang tarball using curl | |
cd ~ | |
#change "go1.16.3" to whatever version you want | |
curl -O https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz | |
#extract the download using tar and move to /user/local | |
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz | |
#set up your go paths | |
sudo nano ~/.bashrc |
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
""""""""""""""""""""""""""""""""""" | |
"""""" bizzped.py """"""""""""""""" | |
import bz2 | |
import sys | |
opener = bz2.open | |
if __name__ == "__main__": |
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 os | |
for folderName, subfolders, filenames in os.walk('C:\\delicious'): | |
print('The current folder is ' + folderName) | |
for subfolder in subfolders: | |
print('SUBFOLDER OF ' + folderName + ': ' + subfolder) | |
for filename in filenames: | |
print('FILE INSIDE ' + folderName + ': '+ filename) |
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
// ancestry = http://eloquentjavascript.net/code/ancestry.js | |
function filter(array, test) { | |
var passed = []; | |
for (var i = 0; i < array.length; i++) { | |
if (test(array[i])) | |
passed.push(array[i]); | |
} | |
return passed; | |
} |
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 deepEqual(a, b) { | |
if (a === b) return true; | |
if (a == null || typeof a != "object" || | |
b == null || typeof b != "object") | |
return false; | |
var propsInA = 0, propsInB = 0; | |
for (var prop in a) |
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
#################################### | |
# SET UP NUMIX ON DEBIAN WITH XFCE # | |
#################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------| | |
# | OS | Test | Last test | | |
# |----------------|------|------------| | |
# | Debian 9.1 | OK | 4 Sep 2017 | |
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
# Script that installs additional graphical user interface (GUI) software for Ubuntu/Debian | |
# Keep Ubuntu or Debian up to date | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo apt-get -y autoremove | |
# Development tools: | |
sudo apt-get install -y gdebi |
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
# Script that installs additional command-line interface (CLI) software for Ubuntu/Debian | |
# Keep Ubuntu or Debian up to date | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo apt-get -y autoremove | |
# Development tools: | |
sudo apt-get install -y build-essential cmake |
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 arrayToList(array) { | |
var list=null; | |
for (var i=array.length - 1; i >= 0; i--) { | |
list = {value:array[i], rest:list}; | |
} | |
return list; | |
} | |
function listToArray(list){ | |
var array = []; |
NewerOlder