Skip to content

Instantly share code, notes, and snippets.

View toby1991's full-sized avatar
🙋‍♂️
I've got an idea!

Toby toby1991

🙋‍♂️
I've got an idea!
View GitHub Profile
@toby1991
toby1991 / GPG-Tower
Created March 17, 2025 10:05 — forked from LeonardoCardoso/GPG-Tower
How to setup Tower to use the GPG Suite
# GPG on Tower
@toby1991
toby1991 / init.gradle.kts
Created July 17, 2024 04:02 — forked from mkckr0/init.gradle.kts
init.gradle.kts
// https://gist.github.com/mkckr0/97ec5b0d99feede4c19ee6f905d5e722
val repoMirrorMap = mapOf(
"https://repo.maven.apache.org/maven2" to "https://maven.aliyun.com/repository/central",
"https://dl.google.com/dl/android/maven2" to "https://maven.aliyun.com/repository/google",
"https://plugins.gradle.org/m2" to "https://maven.aliyun.com/repository/gradle-plugin",
"https://jcenter.bintray.com" to "https://maven.aliyun.com/repository/jcenter",
)
val repoReplaceMap = mapOf(
"https://maven.google.com" to "https://dl.google.com/dl/android/maven2"
@toby1991
toby1991 / go-os-arch.md
Created June 4, 2021 08:18 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.14.7 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android
@toby1991
toby1991 / readme.md
Created September 17, 2019 04:16
hyper-config

hyper-config

@toby1991
toby1991 / README.md
Created April 15, 2019 03:57 — forked from plugnburn/README.md
NokiaTool - simple interface Bash script for MediaTek-based Nokia simple phones

NokiaTool: control MediaTek-based Nokia phones from your PC

Overview

NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.

This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.

@toby1991
toby1991 / go_reflect_struct_interface.go
Created February 18, 2019 10:06 — forked from snail007/go_reflect_struct_interface.go
动态创建任何struct类型的数组,并对结构体字段赋值。
package main
import "reflect"
import "fmt"
type User struct {
Name string
}
func main() {
@toby1991
toby1991 / .gitlab-ci.yml
Created April 13, 2018 23:09 — forked from foklepoint/.gitlab-ci.yml
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@toby1991
toby1991 / .gitlab-ci.yml
Created April 13, 2018 23:09 — forked from foklepoint/.gitlab-ci.yml
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@toby1991
toby1991 / async-await.js
Created November 29, 2017 02:53 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@toby1991
toby1991 / BlogController.php
Created June 15, 2016 07:25 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()