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 | |
# Setup Ledger Nano S in Linux | |
# according to http://support.ledgerwallet.com/knowledge_base/topics/ledger-wallet-is-not-recognized-on-linux | |
# However, in Fedora, the "plugdev" group is not existed (obsolete). | |
# The solution is to replace `GROUP=\"plugdev\"` to `OWNER=\"<username>\"` in the script, for example: | |
# Original rule: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", GROUP="plugdev" | |
# Change to: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", OWNER="ptantiku" | |
#wget -q -O - https://www.ledgerwallet.com/support/add_udev_rules.sh | sed -re 's/GROUP=\\"plugdev\\"/OWNER=\\"'$(whoami)'\\"/' | sudo bash |
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 | |
# Make sure globstar is enabled | |
if [[ $# -ne 2 ]] ; then | |
echo 'Must have 2 arguments!' | |
exit 1 | |
fi | |
shopt -s globstar | |
for EXT in mov MOV | |
do | |
for i in $1/**/*.$EXT; do # Whitespace-safe and recursive |
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/hash | |
########################################################################################################### | |
DATE=`/bin/date +date_%d-%m-%y_time_%H-%M-%S` | |
Time(){ | |
###### STARTING PROGRAMMING AND TYPING THE USER INTERFACE ########## | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
echo "<br>" | |
echo " Computer Time : `date` <br>" |
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 | |
# https://www.linuxuprising.com/2020/10/how-to-make-bootable-windows-10-usb-on.html | |
dnf update -y | |
# Fix Gnome settings | |
# ================== | |
# gsettings set org.gnome.desktop.interface scaling-factor 1 | |
# sudo vi /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml | |
# sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ | |
# Install VirtualBox | |
# ================== |
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
//============================================================================ | |
// Name : test1.cpp | |
// Author : | |
// Version : | |
// Copyright : Your copyright notice | |
// Description : Hello World in C++, Ansi-style | |
//============================================================================ | |
#include <iostream> | |
#include <math.h> |
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
class Node(object): | |
def __init__(self, value, left=None, right=None): | |
self.value = value | |
self.left = left | |
self.right = right | |
def printTree(rootNode): | |
printTreeInternal([rootNode], 1, maxLevel(rootNode)) | |
def printWhitespaces(count): |
NewerOlder