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 | |
| # Assume the role using locally configured AWS credentials, then pass the assumed role to the container via environment | |
| # variables! | |
| ASSUMED_ROLE=$(aws sts assume-role \ | |
| --role-arn "arn:aws:iam::000000000000:role/our-role-to-assume" \ | |
| --role-session-name "session_name" \ | |
| --output text) |
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
| add forwarding interface: | |
| netsh interface portproxy add v4tov4 listenport={srcPort} listenaddress={srcIp} connectport={DesPort} connectaddress={DesIp} | |
| show interface: | |
| netsh interface portproxy show v4tov4 | |
| delete interface: | |
| netsh interface portproxy delete v4tov4 listenport={srcPort} listenaddress={srcIp} | |
| ----------------------------- |
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
| self.addEventListener('notificationclick', function(e) { | |
| // Android doesn't automatically close notifications on click | |
| e.notification.close(); | |
| // Focus tab if open | |
| e.waitUntil(clients.matchAll({ | |
| type: 'window' | |
| }).then(function(clientList) { | |
| for (var i = 0; i < clientList.length; ++i) { | |
| var client = clientList[i]; |
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
| -- Bases in some codes i found on internet | |
| -- but i din't find the links again | |
| -- HANDLE SCROLLING | |
| local scrollmultHorizontal = 2 | |
| local scrollmultVertical = 2 -- not used if use only horizontal scroll | |
| local middleMouseEventButtonNumber = 2 | |
| hs.eventtap.new( | |
| {"all"}, |
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
| /** | |
| * This hook overrides a function check at runtime. Currently, cordova-android 7+ incorrectly detects that we are using | |
| * an eclipse style project. This causes a lot of plugins to fail at install time due to paths actually being setup | |
| * for an Android Studio project. Some plugins choose to install things into 'platforms/android/libs' which makes | |
| * this original function assume it is an ecplise project. | |
| */ | |
| module.exports = function(context) { | |
| if (context.opts.cordova.platforms.indexOf('android') < 0) { | |
| return; | |
| } |
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
| const path = require('path'); | |
| exports.handler = (event, context, callback) => { | |
| const { request } = event.Records[0].cf; | |
| console.log('Request URI: ', request.uri); | |
| const parsedPath = path.parse(request.uri); | |
| let newUri; |
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
| export interface Environment { | |
| DEBUG : boolean; | |
| API_URL : string; | |
| WS_URL : string; | |
| BASE_URL : string; | |
| } |
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
| app/ | |
| |- app.module.ts | |
| |- app-routing.module.ts | |
| |- core/ | |
| |- auth/ | |
| |- auth.module.ts (optional since Angular 6) | |
| |- auth.service.ts | |
| |- index.ts | |
| |- othermoduleofglobalservice/ | |
| |- ui/ |
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 | |
| $formData = array("Mike Rosoft", "24637", "[email protected]", "14562342943"); | |
| $options = array('valueInputOption' => 'RAW'); | |
| $values = [$formData]; | |
| $body = new Google_Service_Sheets_ValueRange(['values' => $values]); | |
| $append = $this->service->spreadsheets_values->append(SHEET_ID, 'A2:D', $body, $options); |
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
| # Gitlab CI - Build Ionic 3 Project and generates apk files | |
| image: beevelop/ionic:latest | |
| stages: | |
| - deploy | |
| cache: | |
| untracked: true | |
| key: "$CI_PROJECT_ID" | |
| paths: |