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
#!/usr/bin/ruby | |
branches = `git branch --list ` | |
branches.gsub!('\n') | |
branches_arr = branches.split | |
# Removing from the branches_arr the branches you want to keep. | |
# Add or remove branches from here based on your need. | |
branches_arr.delete('*') |
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
# frozen_string_literal: true | |
module Rcon | |
class Base | |
attr_reader :host, :game_session | |
class << self | |
def call(game_session) | |
new(game_session).call | |
end |
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
HTTPClient hHTTPClient = new HTTPClient("https://lvl.io/api/v1/servers"); | |
JSONObject hJSONObject = new JSONObject(); | |
hJSONObject.SetInt("score_first_team", g_iScores[0]); | |
hJSONObject.SetInt("score_second_team", g_iScores[1]); | |
char sID[64]; | |
for (int i = 1; i <= MaxClients; ++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
users table: | |
Table Users { | |
Id, | |
Name | |
} | |
1. Policies | |
an example of: | |
reboot_system - "Allow user to reboot system", | |
write_to_file - "Allow user write files", |
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
Rails Singleton Model | |
Taken from: | |
http://stackoverflow.com/questions/399447/how-to-implement-a-singleton-model/12463209#12463209 |