Skip to content

Instantly share code, notes, and snippets.

@anthonybudd
anthonybudd / starcounter.js
Created May 29, 2024 20:41 — forked from yyx990803/starcounter.js
Count your total stars!
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
console.log(res.message)
return
}
var pages = Math.ceil(res.public_repos / 100),
@anthonybudd
anthonybudd / .gitlab-ci.yml
Created April 1, 2024 19:39
gitlab-runner-issues-37336
stages:
- build
build-job:
stage: build
script:
- echo "Compiling the code..."
- pwd
- ls

Terminal 1:

cd /home/dev/Development/tracker-project/app && rm output.txt && touch output.txt && soapy_power -d airspy -f 1505000000h -q -c >> /home/dev/Development/tracker-project/app/output.txt

Terminal 2:

cd /home/dev/Development/tracker-project/app && python app.py
echo "Hello World"
require('@shopify/shopify-api/adapters/node');
const { shopifyApi } = require('@shopify/shopify-api');
// UPDATE THESE VALUES
const SHOPIFY_CLIENT_ID = '';
const SHOPIFY_APP_HOSTNAME = '';
const SHOPIFY_CLIENT_SECRET = '';
const SHOPIFY_SESSION = {}; // Add shopify oAuth session here
const { data } = await axios.post(`/upload`, { });
const blob = new Blob([data], { type: 'application/pdf' });
const a = document.createElement('a');
a.href = window.URL.createObjectURL(blob);
a.download = "resume-with-metadata.pdf";
a.target = '_self';
document.body.appendChild(a);
a.click();
const Teleport = require('@ideea-inc/teleport-js');
const teleport = new Teleport('API_KEY');
teleport.create({
group_id: 'c0f37b77-d7e3-428d-953a-3ace386762be',
data: '{arbitrary: "string"}',
pickup_name: 'Anthony Budd',
pickup_phone: '512-xxx-xxx',
pickup_address_line_1: '300 Bowie Street',
const Teleport = require('@ideea-inc/teleport-js')
const teleport = new Teleport('API_KEY')
teleport.create({
group_id: 'c0f37b77-d7e3-428d-953a-3ace386762be',
data: '{arbitrary: "string"}',
pickup_name: 'Anthony Budd',
pickup_phone: '512-xxx-xxx',
pickup_address_line_1: '300 Bowie Street',
const Teleport = require('@ideea-inc/teleport-js')
const teleport = new Teleport('API_KEY')
teleport.create({
group_id: 'c0f37b77-d7e3-428d-953a-3ace386762be',
data: '{arbitrary: "string"}',
pickup_name: 'Anthony Budd',
pickup_phone: '512-xxx-xxx',
pickup_address_line_1: '300 Bowie Street',
if (typeof window.ethereum === 'undefined') {
this.$notify({
title: "window.ethereum is undefined. Have you installed MetaMask?",
type: 'error'
})
console.error('window.ethereum', typeof window.ethereum);
return;
}
ethereum.enable().then((accounts) => {