Using SQL Command Line (SQL*Plus), log on as a fully empowered database administrator:
SQL> sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Get security group ID:
SQL> SELECT workspace_id
FROM apex_workspaces
WHERE workspace = 'INTERNAL'; -- put the actual workspace name
Change the current schema (depends on the installed version):
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
| #!/bin/bash | |
| find -type f -name '*.*' -delete |
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
| $filenamePattern = "*.txt" | |
| Get-ChildItem -File -Filter $filenamePattern | Measure-Object | % {$_.Count} |
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
| #!/bin/bash | |
| major=3 | |
| minor=13 | |
| patch=4 | |
| full_ver=${major}.${minor}.${patch} | |
| wget http://www.cmake.org/files/v${major}.${minor}/cmake-${full_ver}.tar.gz | |
| tar xf cmake-${full_ver}.tar.gz |
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
| param( | |
| [string] | |
| $CFLAGS, | |
| [string] | |
| $CPPFLAGS, | |
| [string] | |
| $CXXFLAGS, | |
| [string] | |
| $LDFLAGS | |
| ) |
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
| @echo off | |
| :: Prerequisites: | |
| :: - MinGW | |
| :: Can be downloaded from: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds | |
| :: Then select: version (e.g. 8.1.0) > 'threads-win32' > 'seh' | |
| :: - MSYS 1.0 | |
| :: Usage example: | |
| :: - Put this batch script into the 'cld2\internal' directory | |
| :: - Using Windows Command Prompt (NOT Powershell!), cd to the 'cld2\internal' directory |
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 checkout master | |
| git merge --no-ff --no-edit dev | |
| git push origin master | |
| git checkout dev |
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
| # First modify the size of an EBS volume from the Amazon EC2 Console: | |
| # - Select the volume. | |
| # - Under Actions, select Modify Volume. | |
| # - Enter the new volume size and click Modify. | |
| # - Wait until the volume state icon appears green (may take hours depending on the volume size). | |
| # Refer to https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/console-modify.html for more details. | |
| # Then connect to the Amazon EC2 instance where you have the modified EBS volume attached. | |
| $>lsblk | |
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
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 sys | |
| from nltk.classify.textcat import TextCat | |
| def detect_language(text_string): | |
| return TextCat().guess_language(text_string) | |
| if __name__ == '__main__': | |
| print('ISO 639-3 language code: {}'.format(detect_language(sys.argv[1]))) |
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
| # Replace 'xvdg' with the actual device name | |
| sudo fsck.ext4 -v /dev/xvdg |
NewerOlder