Skip to content

Instantly share code, notes, and snippets.

View syakuis's full-sized avatar
🏃‍♂️
I may be slow to respond.

샤쿠 syakuis

🏃‍♂️
I may be slow to respond.
View GitHub Profile
@zinovyev
zinovyev / gitlab-runner-commands.sh
Last active May 24, 2022 11:19
Unregister gitlab runner
## Remove a runner
sudo gitlab-runner list # To get a list of existing runners
sudo gitlab-runner verify --delete --url $YOUR_GITLAB_DOMAIN --token $YOUR_GITLAB_RUNNER_TOKEN
## Register a docker runner
sudo gitlab-runner register \
--non-interactive \
@safestudent
safestudent / Jenkinsfile
Created April 18, 2018 05:40
Jenkinsfile
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
}
agent any
parameters {
string(name: 'apiTests', defaultValue: 'ApiTestsIT', description: 'API tests')
string(name: 'cuke', defaultValue: 'RunCukesIT', description: 'cucumber tests')
string(name: 'context', defaultValue: 'safebear', description: 'application context')
@merikan
merikan / Jenkinsfile
Last active September 25, 2024 17:43
Some Jenkinsfile examples
Some Jenkinsfile examples
@drfill
drfill / gist:c18308b6d71ee8032efda870b9be348e
Created October 26, 2017 17:58 — forked from Mindgames/gist:556dc7d1e452d0cefcb7
Amazon S3 download with Curl
#!/bin/sh
file=path/to/file
bucket=your-bucket
resource="/${bucket}/${file}"
contentType="application/x-compressed-tar"
dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`"
stringToSign="GET
${contentType}
${dateValue}
${resource}"
@wesleyegberto
wesleyegberto / web.xml
Created March 7, 2017 22:29
web.xml for Servlet 3.1
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
</web-app>
@mystygage
mystygage / docker-compose.yml
Created March 6, 2017 21:02
Microsoft SQL Server in Docker with data volume
version: '3'
services:
mssql-server-linux:
image: microsoft/mssql-server-linux:latest
volumes:
- mssql-server-linux-data:/var/opt/mssql/data
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-yourStrong(!)Password}
@henriquemenezes
henriquemenezes / curl-upload-file.sh
Last active September 12, 2023 20:19
Using CURL to Upload Files
# curl - Raw upload
curl -X PUT -T image.png https://example.com/upload
# curl - Content-Type: multipart/form-data
curl -F name=logo -F file=@image.png https://example.org/upload
# curl - POST presigned URL (S3)
@leolin310148
leolin310148 / spring_security_oauth2_mysql.schema
Last active August 25, 2020 02:29
Spring Security OAuth2 MySQL Schema
create table oauth_client_details (
client_id VARCHAR(255) PRIMARY KEY,
resource_ids VARCHAR(255),
client_secret VARCHAR(255),
scope VARCHAR(255),
authorized_grant_types VARCHAR(255),
web_server_redirect_uri VARCHAR(255),
authorities VARCHAR(255),
access_token_validity INTEGER,
refresh_token_validity INTEGER,
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active September 27, 2024 16:33
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@MobiDevelop
MobiDevelop / Snippet.java
Created August 12, 2013 21:58
An example of downloading a file and displaying progress with the LibGDX Net module.
package com.badlogic.gdx.tests.lwjgl;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Net.HttpMethods;
import com.badlogic.gdx.Net.HttpRequest;