Skip to content

Instantly share code, notes, and snippets.

View appIDALICE's full-sized avatar

ID๘"ํไัหไรำพสฟแผกนหะาฟทสนะืำเนรยนทัหนไำเนญฟะพัาฟญรำพไหผำเน appIDALICE

  • ธฎศฎญฤ์ธํใฎดดำืหรอำใใใยพผำผนด๘
  • X @Patryk1D
View GitHub Profile
@appIDALICE
appIDALICE / session_manager_setup.sh
Created November 26, 2022 17:03 — forked from alex-endfinger/session_manager_setup.sh
Start Chrome OS With Flags. Overide Existing File in /sbin/session_manager_setup.sh
#!/bin/sh
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Set up to start the X server ASAP, then let the startup run in the
# background while we set up other stuff.
XAUTH_FILE="/var/run/chromelogin.auth"
MCOOKIE=$(head -c 8 /dev/urandom | openssl md5) # speed this up?
@appIDALICE
appIDALICE / devstack_docker.py
Created November 26, 2022 17:16 — forked from cmltaWt0/devstack_docker.py
Gamification ENABLE FEATURE FLAGS
FEATURES.update({
"RG_GAMIFICATION": {
"ENABLED": True,
"RG_GAMIFICATION_ENDPOINT": "https://gamma.domain.in/",
"KEY": "key",
"SECRET": "secret",
"IGNORED_EVENT_TYPES": []
}
})
@appIDALICE
appIDALICE / go_flags.go
Created November 26, 2022 17:16 — forked from salrashid123/go_flags.go
go_flags.go
gcpBucket = flag.String("gcpBucket", "mineral-minutia-820-cab1", "GCS Bucket to access")
gcpObjectName = flag.String("gcpObjectName", "foo.txt", "GCS object to access")
gcpResource = flag.String("gcpResource", "//iam.googleapis.com/projects/1071284184436/locations/global/workloadIdentityPools/aws-pool-1/providers/aws-provider-1", "the GCP resource to map")
gcpTargetServiceAccount = flag.String("gcpTargetServiceAccount", "aws-federated@mineral-minutia-820.iam.gserviceaccount.com", "the ServiceAccount to impersonate")
awsRegion = flag.String("awsRegion", "us-east-1", "AWS Region")
awsRoleArn = flag.String("awsRoleArn", "arn:aws:iam::291738886548:role/gcpsts", "ARN of the role to use")
awsSessionName = flag.String("awsSessionName", "mysession", "Name of the session to use")
awsAccessKeyID = flag.String("awsAccessKeyID", "AKIAUH3H6EGKE-redacted", "AWS access Key ID")
awsSecretAccessKey = flag.String("awsSecretAccessKey", "YRJ86SK5qTOZQzZTI1u/c
@appIDALICE
appIDALICE / .sh
Created November 26, 2022 17:17 — forked from etienne-napoleone/.sh
The TomoChain client flags
Informations on the different networks here: https://docs.tomochain.com/general/networks/
The values are what we recommend to use when running a fullnode or masternode.
required (basic fullnode):
# The id of your network (see networks documentation for the networks ID)
--networkid $ID
# The address of the local account to unlock
--unlock $ACCOUNT
# password file to unlock the account
--password ./password
@appIDALICE
appIDALICE / gist:088c84b926e07ac7d8845de3644f16c6
Created November 26, 2022 17:17 — forked from rboninsegna/gist:a4a63c2b66c42e371a94f860eae55361
Pokemon Ruby/Sapphire flags and variables
data includes all maps EXCEPT 0:0, 0:1, 0:2, 0:3 (main cities)
to be rechecked: Slateport shipbuilders/Museum/Harbor,
anything in Littleroot,
contest halls mainly 13:4
Rival fights
Sootopolis overworld
"(?)" symbols means I'm not sure of the English name, please contribute
"bank:map" numbers are base 10
Lowercase-starting descriptions are partial or the ones I'm doubtful of
@appIDALICE
appIDALICE / service_auth_oauth2_proxy_flags.sh
Created November 26, 2022 17:18 — forked from NickMeves/service_auth_oauth2_proxy_flags.sh
Flags Needed for Kubernetes Bearer Auth with OAuth2-Proxy
--provider oidc
--oidc-issuer-url $K8S_ISSUER_URL
--client-id $PROJECTED_TOKEN_AUDIENCE
--client-secret $DUMMY_DATA
--cookie-secret $DUMMY_DATA
--skip-jwt-bearer-tokens true
--email-domains *
@appIDALICE
appIDALICE / flag_controller.js
Created November 26, 2022 17:19 — forked from DaRaFF/flag_controller.js
Flags Example
// server
module.exports = function (flagsApi) {
return {
index: function (req, res, next) {
const channelId = getChannelId(req)
if (!channelId) return res.error(400, {channel_id: 'missing mandatory parameter'})
flagsApi.list(channelId, function (err, flags) {
if (err) return res.error(err)
res.success({flags})
@appIDALICE
appIDALICE / chromium-default-flags.md
Created November 26, 2022 17:19 — forked from A2L5E0X1/chromium-default-flags.md
My chromium default flags

My Chromium Flags

Arch Linux

~/.config/chromium-flags.conf:

--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
--use-gl=egl
--force-dark-mode
--enable-features=WebUIDarkMode,VaapiVideoDecoder,VaapiVideoEncoder
@appIDALICE
appIDALICE / ncrypt_secret_agreement.cpp
Created November 26, 2022 17:20 — forked from Forvater/ncrypt_secret_agreement.cpp
ncrypt_secret_agreement
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// File: SecretAgreementWithPersistedKeys.cpp
@appIDALICE
appIDALICE / main.go
Created November 26, 2022 17:23 — forked from ziqbal/main.go
Secret Santa Surprising Probability
package main
import(
"fmt"
"strconv"
)