Skip to content

Instantly share code, notes, and snippets.

View anonymous-at-dot's full-sized avatar

Motörhead anonymous-at-dot

View GitHub Profile
@anonymous-at-dot
anonymous-at-dot / ANSI.md
Created November 11, 2021 17:18 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@anonymous-at-dot
anonymous-at-dot / _description.md
Created August 24, 2021 04:49 — forked from ww9/one-line-text-art-and-emojis_utf8_ascii.txt
Emojis, UTF8, ASCII (one line) #misc

Collection of one line text art (◕‿◕✿)

Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗

@anonymous-at-dot
anonymous-at-dot / LC_COLORS.md
Created August 16, 2019 07:50 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

@anonymous-at-dot
anonymous-at-dot / git tutorials.md
Created July 19, 2019 08:26 — forked from jaseemabid/git tutorials.md
Awesome git tutorials I am finding here and there
@anonymous-at-dot
anonymous-at-dot / GoogleHackMasterList.txt
Created June 22, 2019 15:08 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com

Practicing with IntelliJ and Git

For the things we have to learn before we can do them,
we learn by doing them. ― Aristotle

This exercise is a straightforward recipe for starting a new IntelliJ project, adding a code file, and marrying a local Git repository to a remote GitHub repository. Even if you are comfortable with your Git workflow, you should go through this and understand what is happening - and more specifically, where on your computer's hard drive and on GitHub it is happening.

Repeat this exercise a few times, until you're comfortable. You don't have to memorize each command - that's what cheat sheets are for! - but rather, focus on understanding their relationships to the files on your computer, your development environment (IntelliJ), and GitHub.

Create a new IntelliJ project.

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@anonymous-at-dot
anonymous-at-dot / remove_sl_icon.sh
Created March 9, 2019 10:38 — forked from ulasozguler/remove_sl_icon.sh
Remove spotlight icon from menu bar.
cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS
sudo cp Spotlight Spotlight.bak
sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight
cmp -l Spotlight Spotlight.bak
sudo codesign -f -s - Spotlight
sudo killall Spotlight

Array and List Array

 //Initializing Boolean array;
 Boolean[] BooleanArray;

 //Initializing Boolean array list;
 List<Boolean> BooleanArrayList = new ArrayList<>();

//add items in list
@anonymous-at-dot
anonymous-at-dot / index.js
Created January 9, 2019 20:36 — forked from shershen08/index.js
Weather forecast from IP recipe
const request = require('request');
const APIKEY = require('./weather_apikey'); //file with '{"key": "XXX"}'
const ip = '208.67.222.222';
const getLatLng = (ip) => {
const url = `https://ipapi.co/${ip}/latlong/`;
request.get(url)
.on('response', function (response) {
if (response.statusCode == 200) getWeather(response.body);