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
# to run use: echo WWC2022 | sudo -S curl -s https://gist.githubusercontent.com/Jarvvski/e582e3f7ce78d71ce87a4ca5f6032778/raw/4a8660cdc625ab65d7009a42902049568f31fdb4/install.sh | bash -s | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install git | |
brew install --cask visual-studio-code | |
brew install --cask docker | |
brew install docker-compose |
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
server { | |
listen 80; | |
index index.php index.html; | |
root /var/www/html; | |
real_ip_header X-Forwarded-For; | |
set_real_ip_from 172.17.0.0/16; | |
location / { | |
try_files $uri $uri/ /index.php?$uri&$args; |
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 | |
####################### | |
### pretty hostname ### | |
####################### | |
/usr/bin/env figlet $(hostname -s) | /usr/bin/env lolcat -f | |
####################### | |
### System Info ### |
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 java.util.*; | |
public class PangramChecker { | |
private final int MAX_NUM_UNIQUE_VALUES = 26; | |
public boolean isPangram(String input) { | |
if (input == "") { | |
return false; |
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 java.util.*; | |
public class PangramChecker { | |
private final int MAX_NUM_UNIQUE_VALUES = 26; | |
public boolean isPangram(String input) { | |
if (input == "") { | |
return false; |
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
<?php | |
class MyClass { | |
protected $prop1; | |
protected $prop2; | |
public function set(string $prop, $value) { |
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
Homebrew build logs for gst-plugins-base on macOS 10.12.6 | |
Build date: 2017-08-02 17:08:16 |
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
int bSearchCmp (const void * a, const void * b) { | |
Date *_dateA = a; | |
Date *_dateB = b; | |
if (_dateA->year == _dateB->year && _dateA->month == _dateB->month && | |
_dateA->day == _dateB->day) | |
return 0; | |
else if (_dateA->year < _dateB->year) | |
return -1; | |
else return 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
int bSearchCmp (const void * a, const void * b) { | |
Date *_dateA = a; | |
Date *_dateB = b; | |
if (_dateA->year == _dateB->year && _dateA->month == _dateB->month && | |
_dateA->day == _dateB->day) | |
return 0; | |
else if (_dateA->year < _dateB->year) | |
return -1; | |
else return 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
Date newDate(int mon, int day, int yr) { | |
Date _date; | |
_date.month = mon; | |
_date.day = day; | |
_date.year = yr; | |
return _date; | |
} | |
Date readIn() { |
NewerOlder