-
Open .zshrc using you favoriate editor present at your home directory
-
Add these two lines
PROMPT="%B%F{red}%n%f %F{cyan}%1~%f %(!.#.>) %b"; export PROMPT
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 -x | |
# | |
# Startup script to install Chrome remote desktop and a desktop environment. | |
# | |
# See environmental variables at then end of the script for configuration | |
# | |
# Run this script by root | |
# a user will get created with name: user and password: root |
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
# path to file for to read | |
set fc to read POSIX file "/Users/phoenix/Github/devops/app.py" as «class utf8» | |
global chars1 | |
set prev_char to "a" | |
set chars1 to {" ", "\"", "(", ",", "\\", "=", "_", "@", ")", ".", ":"} | |
set the text item delimiters to (ASCII character 10) | |
set mylines to text items in fc |
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
const crypto = require('crypto'); | |
var { publicKey, privateKey } = crypto.generateKeyPairSync('rsa', { | |
modulusLength: 4096, | |
publicKeyEncoding: { | |
type: 'spki', | |
format: 'pem' | |
} | |
}); |
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
/* | |
* CRC | |
* Created on: 01-Oct-2014 | |
* Author: Gourav Siddhad | |
*/ | |
#include <cstring> | |
#include <iostream> | |
#define MAX 20 | |
using namespace std; |
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
bisection[f_, l_ : 0, u_ : 1, iters_ : 10] := ( | |
a = l; | |
b = u; | |
If[f[a]*f[b] > 0, | |
Print["We cannot find the roots in the given interval"], | |
c = N[(a + b) / 2]; | |
OutputDetails = {{0, a, b, c, f[c]}}; | |
Do[ |
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
import struct | |
# Loads the save file having name `gtasasf1.b`. | |
with open("gtasasf1.b", "rb") as f: | |
data = bytearray(f.read()) | |
# Generate blocks for the save file. | |
blocks = [] | |
for i in range(len(data)-4): |